Can't find any evidence of a bug that I submitted.

I submitted a bug report in mid-july regarding device orientation on android devices and received an email confirming that it had bee received. The email had the case as:

(Case 25010) App freezes when device orientation has changed 4-5 times.

However I haven’t heard anything since, and I can’t see any sign of the bug in the bug tracker. Can anyone at Corona let me know what the deal is with the bug?

In case anyone else has the same bug, our problem was that if we rotated the device 4 or 5 times, the app freezes.  

We use a

Runtime:addEventListener( “orientation”, onOrientationChange )

function to change the app’s layout on orientation change, but this works fine for the first few rotations. After 4 or 5 though, it always freezes.

Hi @AlanPlantPot,

I believe the better solution (added not too long ago) is to use the “resize” event.

http://docs.coronalabs.com/api/event/resize/index.html

Can you test this functionality and see if you’re still getting a crash?

Thanks,

Brent

Ah ok, I’ll try that in the morning and let you know if it fixes the problem. Thanks

Problem is still happening.

On a Galaxy s4 I seem to be able to rotate it more times than on other devices, but ultimately still get the crash after 10-15 rotations. Even the Mac simulator will crash sometimes, but with no lua error message.

As I said in the bug report (I think), I don’t get any error messages. The app totally locks up, even the android back button doesn’t work; I have to wait for the “app not responding” popup to appear in order to exit the app.

Hi @AIanPlantPot,

Can you please submit a new bug report for this? It will be useful to see this occurring with the more recent “resize” event in addition to the classic “orientation” event.

http://developer.coronalabs.com/content/bug-submission

When done, please note the bug number for tracking.

Thanks,

Brent

Hi @AlanPlantPot,

I believe the better solution (added not too long ago) is to use the “resize” event.

http://docs.coronalabs.com/api/event/resize/index.html

Can you test this functionality and see if you’re still getting a crash?

Thanks,

Brent

Ah ok, I’ll try that in the morning and let you know if it fixes the problem. Thanks

Problem is still happening.

On a Galaxy s4 I seem to be able to rotate it more times than on other devices, but ultimately still get the crash after 10-15 rotations. Even the Mac simulator will crash sometimes, but with no lua error message.

As I said in the bug report (I think), I don’t get any error messages. The app totally locks up, even the android back button doesn’t work; I have to wait for the “app not responding” popup to appear in order to exit the app.

Hi @AIanPlantPot,

Can you please submit a new bug report for this? It will be useful to see this occurring with the more recent “resize” event in addition to the classic “orientation” event.

http://developer.coronalabs.com/content/bug-submission

When done, please note the bug number for tracking.

Thanks,

Brent

Just an update - it turns out it wasn’t a Corona bug. My scene had a repeat loop with a small chance of getting stuck in an infinite loop, rotating the device would redraw the scene, which increased the odds of seeing the bug. The infinite loop didn’t throw any errors, which is why the app would just hang. Doh!

Just an update - it turns out it wasn’t a Corona bug. My scene had a repeat loop with a small chance of getting stuck in an infinite loop, rotating the device would redraw the scene, which increased the odds of seeing the bug. The infinite loop didn’t throw any errors, which is why the app would just hang. Doh!