Critical error when opening FPG Edit generated FPGs

Issue #4 resolved
Benjamin Hoffmann created an issue

When I open a FPG file (using Open with... > SFGPE in file context menu), I get a error :

----------------------------------------------------------
SMART FPG EDITOR ERROR REPORT
----------------------------------------------------------
Date: 2016.02.08@19:42:38
Smart Fpg Editor version: 0.4.6
bennulib version: 1.0.18

Error #5#:
'Invalid procedure call or argument'

Call Stack:
SmartFpgEditor.mnuActions@OpenFpgAction
bennulib.BennulibGlobals@CreateFpgFromFile
----------------------------------------------------------

Comments (10)

  1. Darío Cutillas Carrillo repo owner

    Thanks for reporting!

    • Does it happen with all FPGs you have try, or only with one?

    • Do you know with which tool were they created?

    • Do you know if they are 8, 16 or 32bpp?

    • Which operative system are you using?

    The easiest for me would be to try the problematic Fpg if you wish to share it. Otherwise I will se what I can do.

    Thanks in advance.

  2. Benjamin Hoffmann reporter
    • It happen with all FPGs I have tried.
    • It appears that the FPGs where created with FPG Edit (r84).
    • They are 16bpp.
    • I'm using Windows 10 64bits.
    • I will share the FPG as soon as I can (I'm not at home today).
  3. Darío Cutillas Carrillo repo owner

    I have reproduced the problem by creating a FPG with FPGEdit.

    FPGEdit fpgs are non-conforming with the FPG format described in Bennu. FPG Edit FPGs seem to come with 68 extra bytes with information about the version of FPG edit used to generate the FPG.

    It is not really nice to have to deal with non-conforming formats that tight the format to an specific tool but I will see what I can do.

  4. Darío Cutillas Carrillo repo owner

    While I make the amendments I can suggest the following (if you wish to use those FPGs with Smart Fpg Editor):

    1. Open the file with a Hex editor, remove the last 68bytes (I have only tested 1 FPG, but I guess the information is always the same)

    2. Open the FPG with Bennu and Save it with save_fpg. BennuGd will probably ignore the "extra-data".

    I will however provide a solution for this in a few days.

  5. Darío Cutillas Carrillo repo owner

    Release 0.4.8 fixes this. Remember to uninstall your previous version before installing a new one.

  6. Log in to comment