AGS 2.72.650 crash when importing tga image

Started by fovmester, Thu 21/12/2006 16:21:36

Previous topic - Next topic

fovmester

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.


strazer

Did it happen just this one time or does it happen every time with this file?

Akatosh

We already had something similar in the past with .txt files. Did you have the file opened in the background in photoshop?

Pumaman

If that particular TGA file always causes a crash, can you upload it so we can take a look?

fovmester

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

Pumaman

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?

fovmester

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?

SMF spam blocked by CleanTalk