#142 Fuppes crashes when encountering corrupt jpg file

open
nobody
None
5
2010-04-21
2010-04-21
Anonymous
No

1. added folder
2. Updated library
3. Fuppes crashes when it hits a corrupt 0kb jpg file

Windows server 2008 64bit

cmd line output below:

terminate called after throwing an instance of 'Exiv2::Error'
what(): D:\Files\Images\MobileImages\My Documents\IMAGE_00019.jpg: The file c
ontains data of an unknown image type

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Discussion

  • You are right we should handle this gracefully. Maybe by returning an error code, or file not found and then writing an error to the log file.

     
  • This actually works nicely on linux. I am going to have to test this out when I next compile it for windows.

     
  • mikl974
    mikl974
    2010-04-30

    Hi, I have the same probleme

    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.

    is there any news on this problem ?

    Tx

     
  • Well since two people have asked here is a quick update: basically I cannot use the crosscompile script to compile fuppes for windows. There is a crosscompile_win32.sh script in the fuppes directory that is meant for using mingw32 to compile fuppes on a linux system to a windows one but I cannot for the life of me get it to fully compile with everything supported. Uli was the one that wrote it and he must be doing something or know something that I do not. I am going to ask him soon exactly what it is that he does to make it work like that. I'll forward this on to Uli and see if he can help until I manage a successful windows compile.