[T2Di 1.3] Simulator and Device crash with long text string
by William Grupp · in iTorque 2D · 01/06/2010 (7:49 pm) · 5 replies
I'm seeing a 'Program received signal: "EXC_BAD_ACCESS" error on the Simulator and Device when the following function is called:
Same result with:
Both of these work fine in TGB and in the 1.3beta version. Short strings also work fine. I did
not have time to nail down the exact length where the crash occurs.
Interestingly, if I add another function call after the end of the string, it does not crash:
Overall, the 1.3 version has been really good. Loads much faster, smaller image. Keep up the good work!
function testFunction(%this)
{
%textString = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" @
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" @
"CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC" @
"DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD" @
"EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE";
}Same result with:
function testFunction(%this)
{
%textString = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE";
}Both of these work fine in TGB and in the 1.3beta version. Short strings also work fine. I did
not have time to nail down the exact length where the crash occurs.
Interestingly, if I add another function call after the end of the string, it does not crash:
function testFunction(%this)
{
%textString = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" @
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" @
"CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC" @
"DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD" @
"EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE";
echo("This Works fine");
}Overall, the 1.3 version has been really good. Loads much faster, smaller image. Keep up the good work!
About the author
Recent Threads
#2
The text of my original string was some long copyright/trademark
notice that a bunch of lawyers think we need.
I figured I didn't need to bother you with that bunch of nonsense.
Thanks,
bill
01/07/2010 (7:32 pm)
hah! The text of my original string was some long copyright/trademark
notice that a bunch of lawyers think we need.
I figured I didn't need to bother you with that bunch of nonsense.
Thanks,
bill
#3
I just realised. You didnt mention if you debugged. Have you looked at the callstack? looked at which variable is null/invalid where? This is crucial information and you should try see what the problem might be.
01/07/2010 (8:25 pm)
Hey william, I just realised. You didnt mention if you debugged. Have you looked at the callstack? looked at which variable is null/invalid where? This is crucial information and you should try see what the problem might be.
#5
Thanks for the picture, its helpful to see where.
01/08/2010 (2:45 pm)
Really weird that its in Audio , though. Thanks for the picture, its helpful to see where.

Associate Sven Bergström
Luma Arcade
But of course, it is strange and we can check it out sometime.