It is currently Sat Apr 21, 2018 11:49 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [Done] UseGIFImageDecoder() causes crashes with PNG files
PostPosted: Sun Aug 20, 2017 3:10 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 11, 2004 7:07 am
Posts: 533
If I add UseGIFImageDecoder() + UsePNGImageDecoder() + UseJPEGImageDecoder() to my code and I try to load PNG files only, then LoadImage() crashes in 90 % of the loaded PNG files!! If I remove UseGIFImageDecoder() then I can load any PNG file!

don't work:
Code:
UseGIFImageDecoder()
UseJPEGImageDecoder()
UsePNGImageDecoder()

Debug LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/world.png")
Debug LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/ToolBar/New.png")

works:
Code:
UseGIFImageDecoder()
UsePNGImageDecoder()

Debug LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/world.png")
Debug LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/ToolBar/New.png")

works:
Code:
UseJPEGImageDecoder()
UsePNGImageDecoder()

Debug LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/world.png")
Debug LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/ToolBar/New.png")


Top
 Profile  
Reply with quote  
 Post subject: Re: UseGIFImageDecoder() causes crashes while loading PNG fi
PostPosted: Sun Oct 15, 2017 10:16 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 11, 2004 7:07 am
Posts: 533
Can anyone confirm this?
I use Mac OS 10.10.5


Top
 Profile  
Reply with quote  
 Post subject: Re: UseGIFImageDecoder() causes crashes while loading PNG fi
PostPosted: Sun Oct 15, 2017 10:30 am 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 850
Yes, i can confirm

Similar, older fixed problems with the coder arrangement and amount i know also on other OS

_________________
http://www.nachtoptik.de - The home of GFX_Wizzard_BF (BF) and QUICK_AES_256


Top
 Profile  
Reply with quote  
 Post subject: Re: UseGIFImageDecoder() causes crashes while loading PNG fi
PostPosted: Sun Oct 15, 2017 1:44 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 21, 2005 2:38 pm
Posts: 1498
Location: Germany
I have done tests with different versions of MacOS:

On MacOS 10.6.8 'Snow Leopard' with PB 5.61 x86 all three examples work like a charm.

On the following MacOS versions with both PB 5.61 x86 and x64 the first example always terminates with this error message:
Error message in example 1 wrote:
[ERROR] Line 5
[ERROR] Program aborted (by external library)

- MacOS 10.7.5 'Lion'
- MacOS 10.8.5 'Mountain Lion'
- MacOS 10.9.5 'Mavericks'
- MacOS 10.11.6 'El Capitan'
- MacOS 10.12.5 'Sierra'
- MacOS 10.13 'High Sierra'


Top
 Profile  
Reply with quote  
 Post subject: Re: UseGIFImageDecoder() causes crashes while loading PNG fi
PostPosted: Thu Nov 02, 2017 8:11 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5760
Location: Germany
fixed.

_________________
quidquid Latine dictum sit altum videtur


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 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