Reputation: 301
My Javascript build apps is running fine on any browser on Android/PC. But when come to Safari (iOS,Mac) it dies when reaching the code while trying to read data from Storage, after troubleshot and track for few days.
This happen while the apps is loading, and reading initial setup from storage, which stored after first run. (First run is ok, and after initial setup, second run hang while reach the code as shown in picture)
I have tried using both method:
Storage.getInstance().readObject("setup");
and
String setup = Preferences.get("setup", null)
;
Both facing same problems.
Surprisingly this happening apps already working for many months with no problems, this problem just happen recently, might be Safari engine/storage updated by Apple?
I have tried to resend the Javascript build, and still facing same problem.
Below is the stack copied which break while running in Simulator using Netbeans.
"EDT"
at userclasses.StateMachine.postLoginForm(StateMachine.java:2412)
at generated.StateMachineBase.postShow(StateMachineBase.java:2774)
at com.codename1.ui.util.UIBuilder.postShowImpl(UIBuilder.java:2602)
at com.codename1.ui.util.UIBuilder.showForm(UIBuilder.java:2520)
at com.codename1.ui.util.UIBuilder.showForm(UIBuilder.java:2565)
at generated.StateMachineBase.startApp(StateMachineBase.java:66)
at generated.StateMachineBase.<init>(StateMachineBase.java:31)
at generated.StateMachineBase.<init>(StateMachineBase.java:118)
at userclasses.StateMachine.<init>(StateMachine.java:170)
at com.mycompany.project.wclient.CMAIN.start(CMAIN.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.codename1.impl.javase.Executor$1$1.run(Executor.java:123)
at com.codename1.ui.Display.processSerialCalls(Display.java:1152)
at com.codename1.ui.Display.mainEDTLoop(Display.java:969)
at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
Please advice.
Upvotes: 1
Views: 40
Reputation: 4716
Thanks for reporting this. Looks like Safari 10 broke some things in the storage library we use (LocalForage). I have fixed the problem on the build server. It will be available in the next build server update on Friday.
Upvotes: 2