[GEM-dev] [ pd-gem-Bugs-3430199 ] pix_kaleidoscope help crashes Pd (64bit)

SourceForge.net noreply at sourceforge.net
Mon Oct 31 15:42:45 CET 2011


Bugs item #3430199, was opened at 2011-10-29 18:26
Message generated for change (Comment added) made by ricardofabbri
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=507079&aid=3430199&group_id=64325

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Pixes (pix_ objects)
Group: linux
>Status: Open
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Ricardo Fabbri (ricardofabbri)
Assigned to: Nobody/Anonymous (nobody)
Summary: pix_kaleidoscope help crashes Pd (64bit)

Initial Comment:
By clicking on "Create Window" in the pix_kaleidoscope help, Pd crashes.

I am using the latest gem git with pd-extended svn under Linux with the mesa drivers (Ubuntu 11.10).

----------------------------------------------------------------------

>Comment By: Ricardo Fabbri (ricardofabbri)
Date: 2011-10-31 12:42

Message:
Hi,

yes, my system is 64bit. I will do a git pull and test your fix.

----------------------------------------------------------------------

Comment By: IOhannes m zmölnig (zmoelnig)
Date: 2011-10-31 11:26

Message:
i think i found the culprit

in src/Utils/PetesPlugins.h there is a "typedef unsigned long U32", which
is definitely wrong on LP64 architectures (e.g. linux/64bit)

i replaced that to use "int32_t", which should fix this bug.

----------------------------------------------------------------------

Comment By: IOhannes m zmölnig (zmoelnig)
Date: 2011-10-31 11:00

Message:
i can now reproduce the bug on 64bit debian/squeeze

unfortunately, it seems to be unrelated to the "memory problem thread"
pointed to in my other comment.

instead, all ports of Pete's Plugins seem to be affected, here's the list
(i haven't tested all of them, though)
- pix_backlight
- pix_colorreduce
- pix_halftone
- pix_kaleidoscope
- pix_levels
- pix_lumaoffset
- pix_metaimage

----------------------------------------------------------------------

Comment By: IOhannes m zmölnig (zmoelnig)
Date: 2011-10-31 07:50

Message:
is this a 64bit system?

there seems to be a nasty memory problem somewhere.
see also the gem-dev thread starting at
http://lists.puredata.info/pipermail/gem-dev/2011-10/005504.html


----------------------------------------------------------------------

Comment By: Ricardo Fabbri (ricardofabbri)
Date: 2011-10-31 01:00

Message:
pix_luma_offset also crashes ...

I can help trace this tomorrow.

----------------------------------------------------------------------

Comment By: Ricardo Fabbri (ricardofabbri)
Date: 2011-10-31 00:58

Message:
pix_metaimage-help.pd also crashes in the same way, upon creating the
gemwin.

I tried opening another image file as you mentioned. For most images, the
crash occurs directly. For a specific png file I opened, I get the
following assersion error followed by the watchdog messages:

$ pd-extended
open: /etc/pd/gem.conf: No such file or directory
open: /home/rfabbri/.pd/gem.conf: No such file or directory
open: ./gem.conf: No such file or directory
load plugins 'image' in '/usr/lib/pd-extended/extra/Gem/'
pattern : /usr/lib/pd-extended/extra/Gem/gem_image*.so
dylib loading file '/usr/lib/pd-extended/extra/Gem/gem_imageJPEG.so'!
dylib loading file '/usr/lib/pd-extended/extra/Gem/gem_imageMAGICK.so'!
dylib loading file '/usr/lib/pd-extended/extra/Gem/gem_imageSGI.so'!
dylib loading file '/usr/lib/pd-extended/extra/Gem/gem_imageTIFF.so'!
pd-extended: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr)
(((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct
malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >=
(unsigned long)((((__builtin_offsetof (struct malloc_chunk,
fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) -
1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) ==
0)' failed.
Pd: signal 6
watchdog: signaling pd...
watchdog: signaling pd...
watchdog: signaling pd...
watchdog: signaling pd...


----------------------------------------------------------------------

Comment By: Ricardo Fabbri (ricardofabbri)
Date: 2011-10-30 22:52

Message:
This also happens with pix_refraction-help.pd.

I will investigate later.

----------------------------------------------------------------------

Comment By: IOhannes m zmölnig (zmoelnig)
Date: 2011-10-30 18:35

Message:
unable to reproduce (on debian wheezy/sid with mesa)

can this be related to the image not being found?
does it work if you add the path to the Gem binary manually
e.g.
$ cd .../Gem
$ pd -lib ./Gem -path . help/pix_kaleidoscope.pd

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=507079&aid=3430199&group_id=64325



More information about the GEM-dev mailing list