It is currently Wed Aug 12, 2020 2:34 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Load PNG Image bug still in PB5.41 LTS
PostPosted: Fri Dec 11, 2015 11:58 am 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 930
Hi,
the Image bug is not gone in 5.41 LTS, PB crashes,
if the images have a CRC error or some structural errors.
If the debugger on, the bug is gone, so, you have the bug always in a executable !

PB 5.31 have the bug not, also PB 5.4xx for Linux is OK

Here temporary a little test picture with a CRC error in the IDAT chunk
http://www.quick-aes-256.de/temporary/testpic.zip

The old thread:
viewtopic.php?f=4&t=63985

_________________
http://www.nachtoptik.de


Last edited by walbus on Mon Jan 18, 2016 3:07 pm, edited 7 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Load PNG Image bug still in PB5.41 LTS
PostPosted: Sun Dec 20, 2015 4:30 pm 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 930
Many PNG pictures have structural errors, a pre checking PNG pictures is very complex, difficult and absolutely not sure.

Here you can load a lot damaged PNG files, mostly from this files make a crash with LoadImage in PB 5.41 LTS

https://code.google.com/p/javapng/downloads/detail?name=brokensuite-20070715.zip&can=2&q=

_________________
http://www.nachtoptik.de


Last edited by walbus on Sat Feb 06, 2016 9:11 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Load PNG Image bug still in PB5.41 LTS - now Demo Video
PostPosted: Thu Dec 24, 2015 11:00 am 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 930
Please check the small demo video above for looking the bug !

_________________
http://www.nachtoptik.de


Top
 Profile  
Reply with quote  
 Post subject: Re: Load PNG Image bug still in PB5.41 LTS - now Demo Video
PostPosted: Thu Dec 24, 2015 1:05 pm 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1907
walbus wrote:
the Image bug is not gone in 5.41 LTS

Reported bugs don't always get fixed with a new release. The team's policy is to mark it with [Done] when it gets fixed, so if you don't see that, then it's not fixed, and you'll have to wait for another release later.

Read what Fred said here: viewtopic.php?p=472942#p472942


Top
 Profile  
Reply with quote  
 Post subject: Re: Load PNG Image bug still in PB5.41 LTS - now Demo Video
PostPosted: Thu Dec 24, 2015 1:16 pm 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 930
I see not a problem,
fred wrote that he had probably fixed the bug and you need to test in a another beta.
Now, the betas are gone and i have tested !
And better than in the small video you can not see it yet ...

_________________
http://www.nachtoptik.de


Top
 Profile  
Reply with quote  
 Post subject: Re: Load PNG Image bug still in PB5.41 LTS
PostPosted: Thu Feb 04, 2016 7:15 pm 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 930
same problems with CatchImage PB5.42b1

Sample for test from my code :
Code:
    file=OpenFile(#PB_Any, picture_source_file_path_0$)
    If file
      *image=AllocateMemory(Lof(file))
      If Not *image Or Not ReadData(file, *image, Lof(file)) Or Not CatchImage(#QAES_image_2, *image)
        return_string$="ERROR ##04PE Can not open the image"
        free_memory_4
        CloseFile(file)
        ProcedureReturn return_string$
      EndIf
      CloseFile(file)
    EndIf
   
    ; If Not LoadImage(#QAES_Image_2, picture_source_file_path_0$)
    ;   return_string$="ERROR ##04PE Can not open the image"
    ;   free_memory_4
    ;   ProcedureReturn return_string$
    ; EndIf

_________________
http://www.nachtoptik.de


Top
 Profile  
Reply with quote  
 Post subject: Re: Load PNG Image bug still in PB5.41 LTS
PostPosted: Thu Feb 04, 2016 7:54 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14065
Location: France
Please don't bump the subject, if there is no news, then we have no clue about the fix. Thank you !


Top
 Profile  
Reply with quote  
 Post subject: Re: Load PNG Image bug still in PB5.41 LTS
PostPosted: Fri Feb 05, 2016 12:34 am 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1907
Code moved here: viewtopic.php?f=12&t=74117


Last edited by Dude on Fri Nov 29, 2019 12:43 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Load PNG Image bug still in PB5.41 LTS
PostPosted: Fri Feb 05, 2016 12:43 pm 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 930
Great Dude,
many thanks, this works fine !

_________________
http://www.nachtoptik.de


Top
 Profile  
Reply with quote  
 Post subject: Re: Load PNG Image bug still in PB5.41 LTS
PostPosted: Sat Feb 06, 2016 1:45 am 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1907
Glad it helped. So if this works, then the PNG lib must have issues, but I understand it's not written by Fred and therefore a problem he can't fix? Unless there's a newer fixed version of it that he can incorporate into PureBasic.


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

All times are UTC + 1 hour


Who is online

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