wei-spring / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Display.getInstance().execute() causes iOS app to crash to the home screen #1340

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Run Display.getInstance().execute()
2. App crashes to the home screen but is not really terminated. Safari is not 
opened.
3. Open app again by double clicking the home button and selecting it.
4. Run Display.getInstance().execute() again. Now it works

What is the expected output? What do you see instead?
I expect Safari to be opened with the passed URL. Instead, the app crashes to 
the home screen.

What version of the product are you using? On what operating system?
iPhone 5S iOS 8.1.3

Please provide any additional information below.

Original issue reported on code.google.com by Marcel.G...@gmail.com on 7 Feb 2015 at 1:03

GoogleCodeExporter commented 9 years ago
This works for me, I suggest submitting with a test case.

Original comment by shai.almog on 7 Feb 2015 at 3:58

GoogleCodeExporter commented 9 years ago
Hi Shai,

Was Safari already active?
This only happens when the app and Safari were not already loaded. Please kill 
them before trying.
A test project only takes us so far here because other factors outside the app 
are involved here.

Original comment by Marcel.G...@gmail.com on 7 Feb 2015 at 6:00

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2102.

Original comment by shai.almog on 9 Feb 2015 at 9:33

GoogleCodeExporter commented 9 years ago
Was a bit hard to reproduce but its fixed in SVN. It was triggered due to a 
race condition between the GC and the asynchronous execute implementation.

Original comment by shai.almog on 9 Feb 2015 at 9:35