#48 Export to Bitmap generates invalid XPM?

Any
open
5
2010-05-16
2010-05-14
TwinDad
No

Using 4.0.3a under OSX 10.6.3 with XQuartz 2.3.5

I have two XTC files (one attached). As recent as yesterday, I could successfully Export to Bitmap to generate an XPM file that could be imported by GIMP for conversion or whatever. Yesterday evening I modified jazzbass_2.xtc by adding some structures and adding/modifying some filled polygons and rectangles. I tried to export. XTrackCAD gave no error. GIMP claims the XPM file is invalid.

I tested against a second file, musicman.xtc, which has NOT been modified since the last time I generated a valid XPM file from it. It, too, now generates an invalid XPM file.

I created a brand new, simple file with only a circle of Atlas 9.75" curve track segments. This export DID create a valid XPM file.

Not sure what the problem is. Appreciate any help. Will run whatever tests you like, but I haven't figured out how to compile source yet...

Discussion

  • TwinDad
    TwinDad
    2010-05-14

    XTC file that generates invalid XPM.

     
    Attachments
  • TwinDad
    TwinDad
    2010-05-14

    other XTC file that generates invalid XPM

     
    Attachments
  • TwinDad
    TwinDad
    2010-05-14

    INvalid XPM file from musicman.xtc

     
    Attachments
  • TwinDad
    TwinDad
    2010-05-14

    Simple circle - valid XPM file from same install.

     
    Attachments
  • TwinDad
    TwinDad
    2010-05-14

    Sorry. the jazzbass.xpm file was too large to upload.

    If this is a PBKAC error, I'm happy to modify the chair-occupying-module...

     
  • Martin Fischer
    Martin Fischer
    2010-05-16

    • assigned_to: nobody --> m_fischer
     
  • Martin Fischer
    Martin Fischer
    2010-05-16

    Hi,

    just played around with the musicman.xtc files. I can see what the problem in the XPM file is. XTrackCAD assumes a too big number of colors. Eg. on my Linux box the layout has 47 colors, your Mac claims 94. I have no clue where this difference comes from. The second problem is that XTrackCAD creates a wrong XPM for this larger number of colors. That's something I can look into.

    Regards
    Martin

     
  • TwinDad
    TwinDad
    2010-05-17

    Thanks, Martin. Perhaps the 47/94 difference is simply something about the OS's.

    If there's anything I can do to help with the debug I'll certainly try. Just ask.

     
  • TwinDad
    TwinDad
    2010-05-18

    Tried the "Export immediately after opening" test. It failed. Files are too large to attach here.
    Placed in the "Mark's Files" folder of the XTrackCAD Yahoo Group files area:

    jazzbass_2.xtc : test XTC file
    jazzbass_2t.xpm : failed XPM file created immediately after loading above file on a cold boot.
    empty.xpm : valid XPM file created on a clean program start (not a cold boot) of just borders + grid.