[PD-dev] [ pure-data-Patches-2030557 ] number2 labels ending with '%' cause PD crash
SourceForge.net
noreply at sourceforge.net
Tue Apr 14 03:45:58 CEST 2009
Patches item #2030557, was opened at 2008-07-28 14:12
Message generated for change (Comment added) made by eighthave
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2030557&group_id=55736
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: puredata
Group: None
Status: Open
>Resolution: Fixed
Priority: 8
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Miller Puckette (millerpuckette)
Summary: number2 labels ending with '%' cause PD crash
Initial Comment:
In a number2 atom, when a label ending with '%' (or '%_', as well) is used, right-clicking on the number2 box and selecting "Properties" will cause PD to crash.
I have not found any other characters that cause this, and it does not happen with regular number atoms.
pkstone at ucdavis.edu
----------------------------------------------------------------------
>Comment By: Hans-Christoph Steiner (eighthave)
Date: 2009-04-13 21:45
Message:
So it turns out that BSD's sprintf() isn't as fault-tolerant as GNU's. It
was crashing on unescaped %, I guess it was trying to replace them and
failing miserably. This patch fixes it by only running the first % pattern
thru the sprintf() then just copying the rest before sending it to
sys_gui();
Committed to Pd-extended 0.41.4, here's the commit:
http://pure-data.svn.sourceforge.net/viewvc/pure-data?view=rev&revision=11017
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave)
Date: 2009-04-13 20:28
Message:
this happens on Mac OS X 10.5.6/Intel using Pd-vanilla 0.42-4 and Pd
version 0.41.4-extended-20090413. Seems like GNU/Linux is not affected.
----------------------------------------------------------------------
Comment By: Holger (waffenladen)
Date: 2009-02-11 16:06
Message:
I did some checks and the properties don`t show up (no crash here, too) if
you:
- take any iemgui-object
- set the label to anything%
- set the x offset to 0 (which is the default for vslider and number2)
If you change it to anything not zero, it works (again).
Tested on yesterday`s svn of pd-extended on Linux.
----------------------------------------------------------------------
Comment By: Holger (waffenladen)
Date: 2009-02-11 16:04
Message:
I did some checks and the properties don`t show up (no crash here, too) if
you:
- take any iemgui-object
- set the label to anything%
- set the x offset to 0 (which is the default for vslider and number2)
If you change it to anything not zero, it works (again).
Tested on yesterday`s svn of pd-extended on Linux.
----------------------------------------------------------------------
Comment By: Frank Barknecht (fbar)
Date: 2008-07-29 13:43
Message:
Logged In: YES
user_id=569446
Originator: NO
Sorry, this is with 0.41.4 vanilla on Linux.
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave)
Date: 2008-07-29 13:39
Message:
Logged In: YES
user_id=27104
Originator: NO
Frank, please give more detail, like exact Pd version and exact platform.
----------------------------------------------------------------------
Comment By: Frank Barknecht (fbar)
Date: 2008-07-28 18:02
Message:
Logged In: YES
user_id=569446
Originator: NO
Pd 0.41 doesn't crash, but produces this instead of opening the Properties
dialog:
wrong # args: should be "pdtk_iemgui_dialog id mainheader dim_header wdt
min_wdt wdt_label hgt min_hgt hgt_label rng_header min_rng min_rng_label
max_rng max_rng_label rng_sched lin0_log1 lilo0_label lilo1_label loadbang
steady num_label num snd rcv gui_name gn_dx gn_dy gn_f gn_fs bcol fcol
lcol"
vslider acts the same but interestingly hslider is not affected!
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave)
Date: 2008-07-28 16:28
Message:
Logged In: YES
user_id=27104
Originator: NO
Confirmed on Mac OS X 10.4.11/Intel using Pd-extended
0.40.3-extended-20080708 and Pd-0.41-4.
File Added: num2_%_crash.pd
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-07-28 14:18
Message:
Logged In: NO
Forgot to mention, this is happening on Pd version
0.40.3-extended-20080724, and also on 0.40.3-extended-20080603.
I don't have any older versions handy to test.
I'm running Intel OS X 10.4.11.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2030557&group_id=55736
More information about the Pd-dev
mailing list