Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: fovmester on Thu 21/12/2006 16:21:36

Title: AGS 2.72.650 crash when importing tga image
Post by: fovmester on Thu 21/12/2006 16:21:36
I was working as usual with AGS, and was importing sprites into the sprites editor. When I tried to import a certain tga-file, the AGS-editor crashed with the following exception message:

(Exception 0x00000000 at EIP=0x00000000,
AGSEDIT 2.72.650, SIP=26)

This happened just after I had chosen the file and clicked OK. The file can be opened by Photoshop, so there seems to be nothing wrong with the file itself. And it worked when I copied and pasted from Photoshop.

Title: Re: AGS 2.72.650 crash when importing tga image
Post by: strazer on Thu 21/12/2006 16:28:23
Did it happen just this one time or does it happen every time with this file?
Title: Re: AGS 2.72.650 crash when importing tga image
Post by: Akatosh on Thu 21/12/2006 17:08:53
We already had something similar in the past with .txt files. Did you have the file opened in the background in photoshop?
Title: Re: AGS 2.72.650 crash when importing tga image
Post by: Pumaman on Thu 21/12/2006 22:04:20
If that particular TGA file always causes a crash, can you upload it so we can take a look?
Title: Re: AGS 2.72.650 crash when importing tga image
Post by: fovmester on Fri 22/12/2006 07:20:32
It happened at least two times in a row with this particular file. I haven't had any problem with importing before. I did have it opened in PS when importing, but I always have that so that shouldn't be the problem.

I have a theory though. Usually I draw my images in Gale, save them as tga, open them in PS to make alpha-channel, and then save them again from PS. This time though, I didn't actually edit and save it in PS (since there where no semitransparent areas in the pic). Could it be that Gale makes some error in the tga-save that PS can handle but AGS can't? And that a save in PS cleans up the file?

Here is the file:
http://www.fovmester.se/AGSforum/UD_side.tga
Title: Re: AGS 2.72.650 crash when importing tga image
Post by: Pumaman on Fri 22/12/2006 17:07:41
Hmm, this TGA definitely does crash the editor, but the problem seems to be inside Allegro's TGA loader -- which isn't something I've really got time to investigate. Can you use PNG instead?
Title: Re: AGS 2.72.650 crash when importing tga image
Post by: fovmester on Sun 24/12/2006 23:21:42
I can't use png without causing a headache, but it's ok. Like I said, this problem has never occurred with any other tga-file, so I should be fine. Just wanted to let you know, if it was a problem with AGS. Besides, I think it would be nice to have some exception catching here, so the whole editor doesn't crash just because the import code breaks down. It should be possible, right?