Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#10 "failed to allocate image" on 64 bit distributions

admin
closed
Nick Copeland
5
2008-01-28
2008-01-04
Nick Copeland
No

The synth window will not correctly display (white screen) and this error message is printed several times on some 64bit distributions.

The error message is printed when the XCreateImage() fails due to erroneous use of long variable that may get interpreted as 32 to 64 depending on system and compiler.

Workaround should be to use the -pixmap routines, slower but with a different interface that had previously been tested on 64 bit distibutions.

Discussion

  • Nick Copeland
    Nick Copeland
    2008-01-04

    Logged In: YES
    user_id=1426398
    Originator: YES

    The code section here does actually playing around with 'long's, their interpretation may be 4 or 8 bytes depending on compiler. Cleaning this up should resolve the issue however I am not going to be able to test it here due to shortage of a 64bit system.
    The variable is bit bitmap_pad I think and it has diverse values from code examples I have. The correct selection should be 8, 16 or 32 depending on bitdepth and packing format.

     
  • Nick Copeland
    Nick Copeland
    2008-01-19

    • status: open --> pending
     
  • Nick Copeland
    Nick Copeland
    2008-01-19

    Logged In: YES
    user_id=1426398
    Originator: YES

    The changes that have been incorporated should have resolved this issue. The case is going into pending status - I cannot really close it as the fix has not been tested and confirmed here however I cannot do that at the moment, and this being opensource I cannot justify going out to buy a new system to do that check.

     
  • Nick Copeland
    Nick Copeland
    2008-01-28

    • status: pending --> closed