Format String crashes

Discuss suspected defects before submitting a bug report

Moderator: electrogear

Format String crashes

Postby mwvdlee on Fri May 14, 2010 6:36 pm

Whenever I accidentally type a wrong format into the Format String modules, S|M consistently crashes.

For instance, "%#014.3f" works fine. If I accidentally type "%$014.3f", S|M crashes. It seems to crash for pretty much every incorrect format.

No repro schematic, as this is easy to replicate from the description above.
My current top SynthMaker bug:
    1. MIDI Input issue (showstopper, no workaround)
    2. All my previous bugs in SM1.7, because bug 1 makes SM2 worse than SM1.7
User avatar
mwvdlee
smanatic
 
Posts: 552
Joined: Thu Dec 03, 2009 8:42 am
Location: NL

Re: Format String crashes

Postby oddson on Fri May 14, 2010 8:12 pm

Format string was a quick 'one-off' done by Malc and is likely in near-permanent 'R&D' status. It was done in a hurry as a bit of a favour but he never got around to adding error checking to the primitive.

If you want a reliable version I've built a module (or 2) that prevents you from feeding it invalid strings.

See this thread:

viewtopic.php?f=12&t=5929
oddson
wiki guru
 
Posts: 3883
Joined: Sun Jul 03, 2005 6:44 pm

Re: Format String crashes

Postby tor on Sun May 16, 2010 7:32 pm

me too experience this. but also quite frustrating is this:

Image

same if i replace "g" with "f"

is it possible to have 3 decimals constant?
Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke, "Profiles of The Future", 1961 (Clarke's third law)

http://www.audioteknikk.net
User avatar
tor
essemilian
 
Posts: 462
Joined: Wed Apr 14, 2010 8:52 pm

Re: Format String crashes

Postby oddson on Sun May 16, 2010 7:54 pm

Try "%0.3f" - although yours should work too. The four in the length field won't have any effect if there are three decimals. The string should be fully formed before you connect. If you are typing a string and it updates before the string is properly formatted it will crash.

Did you check out the thread on my last post. The module will build the string for you and it purges when saved into VST/exe so there's no real downside to it.
oddson
wiki guru
 
Posts: 3883
Joined: Sun Jul 03, 2005 6:44 pm

Re: Format String crashes

Postby tor on Sun May 16, 2010 9:36 pm

yes i read the other thread. it is really strange. if i replace "%4.3g" with "%0.3f" it still does not work. at some values i get three decimals but mostly it seems random. but when i replace the format component with your format string module it works correctly. i dont get this. they are the same except from the generator you added. inside it is exactly the same.

any how thank you :D
Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke, "Profiles of The Future", 1961 (Clarke's third law)

http://www.audioteknikk.net
User avatar
tor
essemilian
 
Posts: 462
Joined: Wed Apr 14, 2010 8:52 pm

Re: Format String crashes

Postby Andrew J on Mon May 17, 2010 12:22 am

tor,

I think the problem is that you've formatted to string then converted back to float. If you connect the string format output to a string box it should look correct. I'm guessing that you've got the preference to show display floats as 32bit binary representations turned on in your advanced options.

-Andrew
Andrew J
smanatic
 
Posts: 616
Joined: Tue May 29, 2007 4:53 am
Location: Australia

Re: Format String crashes

Postby tor on Mon May 17, 2010 10:46 am

Andrew you are completely correct. I really did not think that it mattered. I thought of the format component as a filter on the incoming float value. But the text component I'm sending it to has string input. Thank you for making me aware of this. Slowly learning :)

Tor
Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke, "Profiles of The Future", 1961 (Clarke's third law)

http://www.audioteknikk.net
User avatar
tor
essemilian
 
Posts: 462
Joined: Wed Apr 14, 2010 8:52 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests