When i use splitfile in this way, it crashes pd without prompting...
IOhannes m zmoelnig a écrit :
Romain Vuillet wrote:
i have this problem with iem 1.15 The problem is still here when i compile the libs...
could you send me a tiny(!) patch that reliably triggers the crash? ideal would be a messagebox connected to [splitfilename]. like
[symbol /this/message/crashes/splitfilename( | [splitfilename /]
mfg.adsr IOhannes
#N canvas 281 228 346 158 10; #X obj 45 82 splitfilename .; #X obj 45 63 symbol; #X obj 45 43 openpanel; #X obj 45 23 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X symbolatom 45 122 30 0 0 0 - - -; #X symbolatom 145 104 10 0 0 0 - - -; #X text 257 122 filename; #X text 218 103 extension; #X connect 0 0 4 0; #X connect 0 1 5 0; #X connect 1 0 0 0; #X connect 2 0 1 0; #X connect 3 0 2 0;
Romain Vuillet wrote:
When i use splitfile in this way, it crashes pd without prompting...
are you sure? your patch does not crash here ;-)
the patch you send me is just one of the standard ways to use [splitfilname]. (it really looks like a help-patch)
of course, [openpanel] might output a symbol that crashes [splitfilename], but it didn't do so with any random file i opened. this was exactly the reason why i asked for a crashpatch: have a _reliable_ and _reproducible_ way to trigger a crash. (not just sometimes).
in order to proceed could you please: find a file that always crashes pd when you select it with the openpanel in the patch you sent me. then make a patch like:
[bng] | [openpanel] | [set symbol $1( | [ ( | [splitfilename]
press bang and select the filename that crashes [splitfilename]. press "ok" in the openpanel-dialog. save the patch. verify that it crashes by clicking on the messagebox which shows the filename. send me the patch with the bad symbol.
mfg.adsr IOhannes
On Tue, 21 Nov 2006, IOhannes m zmoelnig wrote:
of course, [openpanel] might output a symbol that crashes [splitfilename], but it didn't do so with any random file i opened. this was exactly the reason why i asked for a crashpatch: have a _reliable_ and _reproducible_ way to trigger a crash. (not just sometimes). in order to proceed could you please: find a file that always crashes pd when you select it with the openpanel in the patch you sent me.
Not all bugs that cause crashes, can be made to crash 100% of the time (I have a damn lot of experience suffering from that kind of bug).
It can help to use the valgrind / valkyrie debugger, which detects a lot more bugs than gdb (but isn't a replacement for gdb: it's more like the Purify program).
Beyond that, there are some bugs that still are unexplainable using valgrind, but those are a lot rarer.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
This patch always crashes Pd on several machines (FC6 & Windows)
IOhannes m zmoelnig a écrit :
Romain Vuillet wrote:
When i use splitfile in this way, it crashes pd without prompting...
are you sure? your patch does not crash here ;-)
the patch you send me is just one of the standard ways to use [splitfilname]. (it really looks like a help-patch)
of course, [openpanel] might output a symbol that crashes [splitfilename], but it didn't do so with any random file i opened. this was exactly the reason why i asked for a crashpatch: have a _reliable_ and _reproducible_ way to trigger a crash. (not just sometimes).
in order to proceed could you please: find a file that always crashes pd when you select it with the openpanel in the patch you sent me. then make a patch like:
[bng] | [openpanel] | [set symbol $1( | [ ( | [splitfilename]
press bang and select the filename that crashes [splitfilename]. press "ok" in the openpanel-dialog. save the patch. verify that it crashes by clicking on the messagebox which shows the filename. send me the patch with the bad symbol.
mfg.adsr IOhannes
#N canvas 281 228 420 234 10; #X obj 45 82 splitfilename .; #X obj 45 63 symbol; #X symbolatom 45 122 30 0 0 0 - - -; #X symbolatom 145 104 10 0 0 0 - - -; #X text 257 122 filename; #X text 218 103 extension; #X msg 45 43 /home/romain/Desktop/aaa.wav; #X connect 0 0 2 0; #X connect 0 1 3 0; #X connect 1 0 0 0; #X connect 6 0 1 0;
Romain Vuillet wrote:
This patch always crashes Pd on several machines (FC6 & Windows)
thanks a lot. this is exactly what i was looking for.
it crashes with an old iemlib (r1.16); it does _not_ crash with the current CVS version of iemlib. (btw, the same happened to me this weekend: i got reproducible crashes with [splitfilename] during the rehearsals for a concert; but i couldn't reproduce them when i tried later on my dev-machine)
so i suggest you upgrade to the latest and greatest version of iemlib.
mfg.adsr. IOhannes