When I uncomment --physics.setDrawMode( “hybrid” ) and try to move objects on the simulator it freezes and crashes. What is that about?
Thanks for any help. [import]uid: 17539 topic_id: 16255 reply_id: 316255[/import]
When I uncomment --physics.setDrawMode( “hybrid” ) and try to move objects on the simulator it freezes and crashes. What is that about?
Thanks for any help. [import]uid: 17539 topic_id: 16255 reply_id: 316255[/import]
Hey Mike,
Is that line below where you require and set up physics?
What version of Corona are you running?
EDIT: Just tested this on .591 using MultiPuck sample code, adding [lua]physics.setDrawMode(“hybrid”)[/lua] on line 24. Zero issues. [import]uid: 52491 topic_id: 16255 reply_id: 60494[/import]
The version I am using is Version 2011.632 (2011.8.2)
[lua]_W = display.contentWidth;
_H = display.contentHeight;
display.setStatusBar( display.HiddenStatusBar )
local physics = require(“physics”);
physics.start()
local ui = require( “ui”)
local gameUI = require( “gameUI”)
physics.setGravity( 0, 9 )
–physics.setDrawMode( “hybrid” ) --uncomment this line and it crashes
local scaleFactor = 1;
local physicsData = (require “bUspider”).physicsData(scaleFactor);[/lua]
This is the error I get in the terminal window and I get a crash report that I have sent to apple.
/Applications/CoronaSDK/Corona Terminal: line 9: 6822 Segmentation fault “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
logout
[import]uid: 17539 topic_id: 16255 reply_id: 60536[/import]
That is not a stable build, it is a daily build.
Daily builds should be presumed stable or even mildly functional 
Please try the same code on build .591 and let me know results.
Peach
[import]uid: 52491 topic_id: 16255 reply_id: 60669[/import]
Thanks for the help Peach.
I am not sure how to get 591 back. When I click on the corona icon 632 starts. I did try the old 268 and I didn’t have a problem.
[import]uid: 17539 topic_id: 16255 reply_id: 60759[/import]
You can download it here; https://developer.anscamobile.com/downloads/coronasdk
Let me know if you have any other issues 
Peach [import]uid: 52491 topic_id: 16255 reply_id: 60919[/import]
In the last 2 daily builds I ran the Air Hockey templet “as-is” no mods, except for uncommenting the physics.setDrawMode ( “hybrid” ) line and the OSX simulator crashed. I’m using OSX Lion with the latest patches from Apple.
physics.setDrawMode ( “debug” ) also makes the Simulator crash.
-David
[import]uid: 96411 topic_id: 16255 reply_id: 62254[/import]
Hello Mrs. Peach,
I can confirm that the Corona Simulator is really crashing after we set the “physics.setDrawMode ( “debug” ) or using any other accepted parameter as well”.
A simple way to reproduce the issue is running any sample app that use physics and set the DrawMode line with any parameter and the simulator will crash after some time/“clicks”.
PS: I`ve used the Daily Build 2011.640 for testing the trouble.
EDIT: Just ran the latest daily build (2011.643) and the problem is still there as well. 
Regards, [import]uid: 89165 topic_id: 16255 reply_id: 62259[/import]
I am glad I am not the only programmer who is having trouble. Since I was the first to spot the bug do I get a cupcake.
[import]uid: 17539 topic_id: 16255 reply_id: 62262[/import]
Just FYI… I filled a bug report last night on this issue.
-David [import]uid: 96411 topic_id: 16255 reply_id: 62383[/import]
Hey David,
Thank you for doing that!
PS: I was going to do it right now when I checked up this thread again. =]
Regards,
Rodrigo. [import]uid: 89165 topic_id: 16255 reply_id: 62403[/import]
Hey David, could you post the bug # in the thread please?
Thanks
[import]uid: 52491 topic_id: 16255 reply_id: 62440[/import]
The bug is filed as case 8817.
-David [import]uid: 96411 topic_id: 16255 reply_id: 62457[/import]
Good catch! This is fixed in tomorrow’s daily build. [import]uid: 26 topic_id: 16255 reply_id: 62468[/import]
Thank you for the attention on this issue Walter and Peach!
Ansca - The Amazing Team.
=] [import]uid: 89165 topic_id: 16255 reply_id: 62471[/import]
I brought it to the attention of this forum on 10/11/11. I was first. I didn’t know about the bug report. [import]uid: 17539 topic_id: 16255 reply_id: 62577[/import]
… Do you want a cookie?
Always file a bug report for bugs. The forum is great but we need to track them properly 
Peach [import]uid: 52491 topic_id: 16255 reply_id: 62747[/import]
“… Do you want a cookie?”
Yes Please.
[import]uid: 17539 topic_id: 16255 reply_id: 62749[/import]
[import]uid: 52491 topic_id: 16255 reply_id: 62759[/import]