It is currently Tue Jul 14, 2020 8:17 am

All times are UTC + 1 hour

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Crash on certain PNG image when TGA decoder is loaded.
PostPosted: Thu Jun 20, 2019 9:13 pm 
User avatar

Joined: Sat Feb 28, 2015 1:20 pm
Posts: 45
Again, another problem with an image that when passed to LoadImage() crashed the program without any possible interference on my side to prevent the crash.

Here is the example code:

If FileSize("image.png") <= 0
  ReceiveHTTPFile("", "image.png")

; image.png can not be loaded with UsePNGImageDecoder()
; if TGAImageDecoder is also used in the program, the program crashes without any further notice.

; UseTGAImageDecoder() ; uncomment to let the program crash.

Debug "try to load image:"
If LoadImage(0, "image.png")
  Debug "ok." ; this is never reached!
  Debug "could not load image, but no crash"


The image is downloaded when executing the code.
Code and image can be downloaded manually as well: ... sp=sharing

Programming on Windows 10 Pro / Windows 7 Enterprise / Linux Mint 19 / Manjaro Linux with PB 5, Python 3 and Go

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour

Who is online

Users browsing this forum: No registered users and 5 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye