openGeeksLab / codenameone

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

newVm crash and null pointer exception sample test case project #1298

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please clearly state whether the issue relates to a device/the simulator or
the tools.
Device iOS
If related to a device be sure to specify exactly which device with as much
details as possible.
iPhone 4, iOS ver 7.1.2

What steps will reproduce the problem?
1. Run the sample project and on the main screen first press checkTime
2. after that press nextForm button
3. In the next Form enter some pin value and some amount value and press submit
4. And press Back button.
5. Play around with nextForm and back button for 2 to 3 times

What is the expected output? What do you see instead?

The app should run without causing any crash or null pointer exception.

We see the null pointer exception when the app is started the first time and 
you enter the nextForm and enter some pin value and then enter some amount 
value. Also after some time the app will crash when you perform this a few 
times.

What version of the product are you using? On what operating system?

Latest cn1 newVM build server.

Please provide any additional information below.

The sample project with source code and resource file is attached. Please note 
the null pointer exception comes some time and not always. Here is the stack 
trace from it:

Jan 21 10:59:26 Nirmal-Juthanis-iPhone MyApplication[16260] <Warning>: 
java.lang.NullPointerException
        at com_codename1_impl_ios_IOSImplementation_6.run:493
        at com_codename1_ui_Display.processSerialCalls:1110
        at com_codename1_ui_Display.edtLoopImpl:1054
        at com_codename1_ui_Display.invokeAndBlock:1164
        at com_codename1_ui_Display.invokeAndBlock:1199
        at com_codename1_impl_ios_IOSImplementation.editString:510
        at com_codename1_impl_CodenameOneImplementation.editStringImpl:289
        at com_codename1_ui_Display.editString:1474
        at com_codename1_ui_Display.editString:1446
        at com_nvsoft_s2pay_pos_sawin_MyApplication_9_1.run:198
        at com_codename1_ui_Display.processSerialCalls:1110
        at com_codename1_ui_Display.edtLoopImpl:1054
        at com_codename1_ui_Display.mainEDTLoop:960
        at com_codename1_ui_RunnableWrapper.run:120
        at com_codename1_impl_CodenameOneThread.run:176
        at java_lang_Thread.runImpl:153
Jan 21 10:59:26 Nirmal-Juthanis-iPhone MyApplication[16260] <Warning>: 

Original issue reported on code.google.com by nir...@nvsoft.com on 21 Jan 2015 at 5:37

Attachments:

GoogleCodeExporter commented 9 years ago
This issue is created with test case project for the problems reported in 
Issue: 1279.

Original comment by nir...@nvsoft.com on 21 Jan 2015 at 5:39

GoogleCodeExporter commented 9 years ago
Another observation is that, when we click from pin field to the amount 
field(which is a decimal field), sometimes the decimal keyboard is shown and 
then it gets replaced by the only numeric keyboard(without the decimal point 
'.')

Original comment by nir...@nvsoft.com on 27 Jan 2015 at 2:12

GoogleCodeExporter commented 9 years ago
After fixing issue 1278, I can't reproduce this issue on the new VM.  Fix will 
be available in next update.

Original comment by st...@weblite.ca on 27 Jan 2015 at 11:44

GoogleCodeExporter commented 9 years ago
Has the new code updated on build server?

With the latest build, the sample project is still giving null pointer 
exception as given in the stack trace below:

Jan 28 11:21:09 Rivans-ipad MyApplication[498] <Warning>: 
java.lang.NullPointerException
        at com_codename1_impl_ios_IOSImplementation_6.run:493
        at com_codename1_ui_Display.processSerialCalls:1115
        at com_codename1_ui_Display.edtLoopImpl:1059
        at com_codename1_ui_Display.invokeAndBlock:1169
        at com_codename1_ui_Display.invokeAndBlock:1204
        at com_codename1_impl_ios_IOSImplementation.editString:510
        at com_codename1_impl_CodenameOneImplementation.editStringImpl:289
        at com_codename1_ui_Display.editString:1479
        at com_codename1_ui_Display.editString:1451
        at com_nvsoft_s2pay_pos_sawin_MyApplication_9_1.run:198
        at com_codename1_ui_Display.processSerialCalls:1115
        at com_codename1_ui_Display.edtLoopImpl:1059
        at com_codename1_ui_Display.mainEDTLoop:965
        at com_codename1_ui_RunnableWrapper.run:120
        at com_codename1_impl_CodenameOneThread.run:176
        at java_lang_Thread.runImpl:153
Jan 28 11:21:09 Rivans-ipad MyApplication[498] <Warning>: 

Original comment by nir...@nvsoft.com on 28 Jan 2015 at 5:55

GoogleCodeExporter commented 9 years ago
No it hasn't.   I'm not sure what Shai's schedule is for updating it.  It may 
be a few days.

Original comment by steve.ha...@codenameone.com on 28 Jan 2015 at 6:30

GoogleCodeExporter commented 9 years ago
Thanks Steve for the update. Any way to check the build server version, so that 
we can know when new changes are applied to it? If not, would you please 
announce on the discussion thread, so that I can verify the fix.

Original comment by nir...@nvsoft.com on 28 Jan 2015 at 7:40