[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Attn Tim Re: [sc-dev] trying to build sc for iPhone



PyrSlots are the backend storage of interpreter objects.
I just fixed those kind of crashes by adding the NDEBUG preprocessor definition to the project, can you update once more and give it a try ?

axel

Le 23 déc. 09 à 02:46, Jonatan Liljedahl a écrit :

Cool, now it builds and starts, but it crashes at startup:

WARNING:
No valid temp directory found. Please set this manually using PathName.tmp_
Help files scanned in 1.539883852005 seconds
Class tree inited in 2.05 seconds
WARNING:
GeneralHID.fromID : The HID scheme 'osx_hid' is not installed
The current scheme is still 'nil'!
starting up iPhone Platform !
Assertion failed: (IsInt(slot)), function slotRawInt, file /Users/ jonatan/SuperCollider3/Headers/lang/PyrSlot32.h, line 319.
Program received signal:  “SIGABRT”.

(gdb) bt
#0  0x31dd594c in __kill ()
#1  0x31dd5940 in kill ()
#2  0x31dd5934 in raise ()
#3  0x31deccfe in abort ()
#4  0x31dd9112 in __assert_rtn ()
#5  0x00012af4 in slotRawInt (slot=0x36ddcf8) at PyrSlot32.h:319
#6 0x000b3f98 in prSCView_SetProperty (g=0x216784, numArgsPushed=3) at /Users/jonatan/SuperCollider3/Source/app/iPhone/iPhoneSCView.mm: 2284 #7 0x00060248 in doPrimitive (g=0x216784, meth=0x37491c0, numArgsPushed=3) at /Users/jonatan/SuperCollider3/Source/lang/ LangPrimSource/PyrPrimitive.cpp:3533 #8 0x0002216c in Interpret (g=0x216784) at /Users/jonatan/ SuperCollider3/Source/lang/LangSource/PyrInterpreter3.cpp:2189 #9 0x00022da0 in runInterpreter (g=0x216784, selector=0x34f57f0, numArgsPushed=1) at /Users/jonatan/SuperCollider3/Source/lang/ LangSource/PyrInterpreter3.cpp:124 #10 0x000245c4 in compileSucceeded () at /Users/jonatan/ SuperCollider3/Source/lang/LangSource/PyrLexer.cpp:2194 #11 0x0002ba48 in compileLibrary () at /Users/jonatan/SuperCollider3/ Source/lang/LangSource/PyrLexer.cpp:2262 #12 0x000be88c in -[iSCLangController start:] (self=0x315d60, _cmd=0x300c79c8, arg=0x0) at /Users/jonatan/SuperCollider3/Source/ app/iPhone/iSCLangController.mm:442
#13 0x3050e66e in __NSFireDelayedPerform ()
#14 0x30254a0e in CFRunLoopRunSpecific ()
#15 0x3025416a in CFRunLoopRunInMode ()
#16 0x320452a4 in GSEventRunModal ()
#17 0x308f037c in -[UIApplication _run] ()
#18 0x308eea94 in UIApplicationMain ()
#19 0x000bd178 in main (argc=1, argv=0x2ffff588) at /Users/jonatan/ SuperCollider3/Source/app/iPhone/isclang_main.m:14

PS. What is PyrSlot?

/Jonatan

Axel Balley wrote:
Hi,
I just committed fixes to the projects and some files so that it now builds.
Best,
Axel
Le 22 déc. 09 à 11:46, Jonatan Liljedahl a écrit :
Dan Stowell wrote:
2009/12/22 Jonatan Liljedahl <lijon@xxxxxxxxxxxx>:
Dan Stowell wrote:
2009/12/21 Jonatan Liljedahl <lijon@xxxxxxxxxxxx>:
I'm trying to build iPhone_Synth.xcode project and it fails because
Source/common/g_fmt.c and dtoa.c is missing...
Looks like Tim removed them deliberately:

9602 6 days timblech remove obsolete dtoa and g_fmt
parts

Tim wrote: "i removed these two files, since i got some sclang crashes when using them [1] ... instead of calling g_fmt, one can simply call
sprintf ...
[1]

http://tim.klingt.org/git?p=supercollider.git;a=commitdiff;h=31f15e433e2202ec1937295f21f78e2984993764
"

...so although I haven't tried it myself, maybe if you just delete those files from the xcode project it'll work? I would hope that Tim
had updated things before deleting files.
I tried that and it worked for scsynth, at least it built. But sclang didn't build, I got thousands of build errors, but it was late and I don't remember what the problem was. It might have been something else than these files...
Will try it out some more.
Jonatan - you may need to find some of those calls which tim mentions (in my quote above) and replace them. If you're not confident in doing that then please just post the errors and we'll try and get it fixed
interactively.

Sure, I'm confident with that. But I'm not entirely sure the problem was leftover calls to g_fmt, so don't blame Tim yet :) but I'll take a closer look as soon as I have time, hopefully this evening.

Tim - it's a shame that the files were removed without more fanfare
since it has broken things (iphone proj) and no-one seemed to know
they needed fixing. Can you advise in any more detail?
Dan
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/



_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/