Hi, I am having trouble using the display.save() methods in an app I am building. Whenever I call display.save() or similar method like display.captureScreen(), the emulator crashes. At first I thought it was the version of the corona simulator that I was using, but I installed the latest version and I am still having the same problem. I have used the sample code in the doucumentation but it still crashes the emulator. I am using a windows 7 laptop. Any help will be greatly appreciated. Thanks.
Hi @sleepyoj89,
You’ll probably need to show some code for the community/staff to help you. There are too many factors in a scenario like this. Please remember to surround your code with “lua” tags for clarity:
[lua] --code [/lua]
Best regards,
Brent
[lua]
local myObject1 = display.newRect( 50, 50, 100, 150 ) – Create a rectangle object
local myObject2 = display.newCircle( 100, 300, 50 ) – Create a circle object
local group = display.newGroup()
group:insert( myObject1 )
group:insert( myObject2 )
display.save( group, { filename=“entireGroup.png”, baseDir=system.DocumentsDirectory, isFullResolution=true, backgroundColor={0, 0, 0, 0} } )
[/lua]
Hi @sleepyoj89,
Just to clarify, you’re running this code in the Corona Simulator, and it crashes every time?
Is this the entire chunk of code within main.lua? Do you have other modules loaded? Are you using any plugins?
Brent
Yes this is all the code in the main.lua file.
I’ve filed a bug report. Case ID 41519
Rob
OK. Thank you. What am I supposed to do next ? Is there a post where bugs are resolved?
Still in the queue to be worked on.
Rob
Has there been any progress on this ?
The same issue seems to have been raised in July 2014
Hi @sleepyoj89,
You’ll probably need to show some code for the community/staff to help you. There are too many factors in a scenario like this. Please remember to surround your code with “lua” tags for clarity:
[lua] --code [/lua]
Best regards,
Brent
[lua]
local myObject1 = display.newRect( 50, 50, 100, 150 ) – Create a rectangle object
local myObject2 = display.newCircle( 100, 300, 50 ) – Create a circle object
local group = display.newGroup()
group:insert( myObject1 )
group:insert( myObject2 )
display.save( group, { filename=“entireGroup.png”, baseDir=system.DocumentsDirectory, isFullResolution=true, backgroundColor={0, 0, 0, 0} } )
[/lua]
Hi @sleepyoj89,
Just to clarify, you’re running this code in the Corona Simulator, and it crashes every time?
Is this the entire chunk of code within main.lua? Do you have other modules loaded? Are you using any plugins?
Brent
Yes this is all the code in the main.lua file.
I’ve filed a bug report. Case ID 41519
Rob
OK. Thank you. What am I supposed to do next ? Is there a post where bugs are resolved?
Still in the queue to be worked on.
Rob
Has there been any progress on this ?
The same issue seems to have been raised in July 2014