- edited description
Critical error when opening FPG Edit generated FPGs
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)
-
reporter -
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.
-
-
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).
-
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.
-
repo owner - changed title to Critical error when opening FPG Edit generated FPGs
- marked as enhancement
- marked as critical
Cannot be considered a bug of Smart Fpg Editor as it is misbehaviour of another tool. Moved the priority to critical as I understand it will be an impediment to anyone that hasworked with FPG Edit and wants to start using Smart Fpg Editor.
Solution might be rather easy.
-
repo owner - attached SmartFpgEditor.fpg
- attached FpgEdit.fpg
Sample files added. The file created with FpgEdit will open in SmartFpgEditor if the last 68 bytes are removed.
-
repo owner While I make the amendments I can suggest the following (if you wish to use those FPGs with Smart Fpg Editor):
-
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)
-
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.
-
-
reporter Thank you for your workaround.
-
repo owner - changed status to resolved
Solved in 068b90d.
-
repo owner Release 0.4.8 fixes this. Remember to uninstall your previous version before installing a new one.
- Log in to comment