wei-spring / codenameone

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

After entering some value in a input TextField the form gets blacked out in iOS #105

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have a form with TextField input component and other button components.
2. After entering some value in the input text field, touch or click outside of 
the text field
3.

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

The focus should move to the other component. Instead the screen becomes black, 
except the TextField is visible. All other components are not visible. Then if 
you click again on some other component, the screen display is restored.

I have attached the screenshot of the screens when the problem happens and the 
screen when all the components are shown.

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

The public beta version released on March 15, 2012. Development OS is mac OS 
and device is iPhone 4 (os ver 5.1)

Please provide any additional information below.

Original issue reported on code.google.com by nir...@nvsoft.com on 16 Mar 2012 at 10:06

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Shai,

This error - where the form gets blacked out when trying to enter some value in 
a text field is still happening. 

This will be very important to make the iOS app production ready.

Any idea how to fix it?

Thanks,
Nirmal

Original comment by nir...@nvsoft.com on 6 Aug 2012 at 6:28

GoogleCodeExporter commented 9 years ago
I agree, do you have a consistent way to reproduce this with one of our demos 
(e.g. kitchen sink?)

Original comment by shai.almog on 6 Aug 2012 at 12:47

GoogleCodeExporter commented 9 years ago
Hi Shai,

I can reproduce it with the KitchenSink demo. Please follow this steps to 
reproduce it:

1. Open Kitchen Sink demo app.
2. Choose Mail option
3. Click on the "TO:" TextField.
4. And while the virtual keyboard is showing, click on other TextFields like 
"Codename One Is Cool".
5. This causes the screen to go blank.

This happens most of the time and sometime, if it does not happen you might 
have to try clicking on different textfields.

I have attached a screen shot of the screen before and after black out.

Thanks,
Nirmal
PS. this is happening with the latest demo source built today.

Original comment by nir...@nvsoft.com on 10 Aug 2012 at 6:48

Attachments:

GoogleCodeExporter commented 9 years ago
This is really weird, I've been playing with this for an hour and the best I 
could achieve was a very short blink. Which OS version/device are you using?

Original comment by shai.almog on 10 Aug 2012 at 4:28

GoogleCodeExporter commented 9 years ago
I am using iPhone 4 with OS version 5.1.1 (9B206).

It almost always happens when you start the app first time. After sometime the 
frequency of it happening is less when you visit the same form again.

Looks like some race condition.

Original comment by nir...@nvsoft.com on 10 Aug 2012 at 7:48

GoogleCodeExporter commented 9 years ago
After upgrading to 5.1.1 I was able to reproduce this. Must be a minor 
difference between OS's or maybe even a bug on their end.
Took some effort to reproduce though so even if I find the cause I'm not sure 
if I'll be able to fix it.

Original comment by shai.almog on 10 Aug 2012 at 8:56

GoogleCodeExporter commented 9 years ago
I have an attempted fix for this on the server. Since its a bit hard to 
reproduce I'm not 100% sure I got it but I did fix a bug for sure.

Original comment by shai.almog on 12 Aug 2012 at 8:07

GoogleCodeExporter commented 9 years ago
Hi Shai,

I can still reproduce the error with the new build, however it is happening 
with less frequency for now.

Will test more and if I get it more often then we can reopen.

Original comment by nir...@nvsoft.com on 12 Aug 2012 at 3:15

GoogleCodeExporter commented 9 years ago
I'll have another try at this. 

Original comment by shai.almog on 12 Aug 2012 at 6:03

GoogleCodeExporter commented 9 years ago
I made another attempt at improving this.

Original comment by shai.almog on 13 Aug 2012 at 1:47

GoogleCodeExporter commented 9 years ago
Hi Shai,

Unfortunately it is still happening.

Thanks,
Nirmal

-- 

NVSoft

http://www.nvsoft.com

DISCLAIMER: This e-mail and any attachment(s) is for authorized use by the
intended recipient(s) only. It may contain proprietary material,
confidential information and/or be subject to the legal privilege of the
sender of this email. If you have received this message in error, please
notify the originator immediately and destroy the material in its entirety,
whether electronic or hard copy. If you are not the intended recipient, you
are notified that you are strictly prohibited from retaining, using,
copying, alerting or disclosing the content of this message. Please note
that any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of Net Vigil Software Private
Limited. The recipient should check this email and any attachments for the
presence of viruses. Net Vigil Software Private Limited accepts no
liability for any damage caused by any virus transmitted by this email.
Thank you for your co-operation.

Original comment by nir...@nvsoft.com on 20 Aug 2012 at 12:12

GoogleCodeExporter commented 9 years ago
Do you reproduce it with your code or with the kitchen sink?

Original comment by shai.almog on 20 Aug 2012 at 12:26

GoogleCodeExporter commented 9 years ago
I tried it with my code now. I will also try with Kitchen sink and let you
know.

-- 

NVSoft

http://www.nvsoft.com

DISCLAIMER: This e-mail and any attachment(s) is for authorized use by the
intended recipient(s) only. It may contain proprietary material,
confidential information and/or be subject to the legal privilege of the
sender of this email. If you have received this message in error, please
notify the originator immediately and destroy the material in its entirety,
whether electronic or hard copy. If you are not the intended recipient, you
are notified that you are strictly prohibited from retaining, using,
copying, alerting or disclosing the content of this message. Please note
that any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of Net Vigil Software Private
Limited. The recipient should check this email and any attachments for the
presence of viruses. Net Vigil Software Private Limited accepts no
liability for any damage caused by any virus transmitted by this email.
Thank you for your co-operation.

Original comment by nir...@nvsoft.com on 20 Aug 2012 at 12:36

GoogleCodeExporter commented 9 years ago
Hi Shai,

I tried it again with latest build of kitchen sink and it is also reproduced in 
it. 

It seems to happen very frequently with my app where I have a text field with 
numeric password input and another numeric field. However with kitchen sink now 
I had to try it a couple times to try and touch different input fields to 
reproduce in the mail option.

Original comment by nir...@nvsoft.com on 20 Aug 2012 at 2:16

GoogleCodeExporter commented 9 years ago
Can you distil a short stub that reproduces this more easily?
I tried the kitchen sink back and forth quite a bit without success.

Original comment by shai.almog on 21 Aug 2012 at 4:29

GoogleCodeExporter commented 9 years ago
Hi Shai,

I have created a simple form where there is a numeric password and a
numeric text field. I was able to re-produce the problem first time when I
tried after installing the app. However after that I am not able to
re-produce it for couple of tries.

Can you also try to see, if you are able to have the problem during first
try. Mainly, the steps I followed was:

1. Touch the pin entry box and enter 1234.

2. after that touch the mobile number input textfield

And you should get a blank screen.

Unfortunately, its not very frequent with this simple app as well. Not
sure, why it happens so frequently with my app.

Regards,
Nirmal

PS. I have attached the StateMachine.java and the GUI builder resource file.

-- 

NVSoft

http://www.nvsoft.com

DISCLAIMER: This e-mail and any attachment(s) is for authorized use by the
intended recipient(s) only. It may contain proprietary material,
confidential information and/or be subject to the legal privilege of the
sender of this email. If you have received this message in error, please
notify the originator immediately and destroy the material in its entirety,
whether electronic or hard copy. If you are not the intended recipient, you
are notified that you are strictly prohibited from retaining, using,
copying, alerting or disclosing the content of this message. Please note
that any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of Net Vigil Software Private
Limited. The recipient should check this email and any attachments for the
presence of viruses. Net Vigil Software Private Limited accepts no
liability for any damage caused by any virus transmitted by this email.
Thank you for your co-operation.

Original comment by nir...@nvsoft.com on 21 Aug 2012 at 5:44

GoogleCodeExporter commented 9 years ago
Further when I tried the simple app(attached in my previous comment), again
after 30 mins, I was able to reproduce it for the first try. So it seems to
happen when the app is started again after a gap.

-- 

NVSoft

http://www.nvsoft.com

DISCLAIMER: This e-mail and any attachment(s) is for authorized use by the
intended recipient(s) only. It may contain proprietary material,
confidential information and/or be subject to the legal privilege of the
sender of this email. If you have received this message in error, please
notify the originator immediately and destroy the material in its entirety,
whether electronic or hard copy. If you are not the intended recipient, you
are notified that you are strictly prohibited from retaining, using,
copying, alerting or disclosing the content of this message. Please note
that any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of Net Vigil Software Private
Limited. The recipient should check this email and any attachments for the
presence of viruses. Net Vigil Software Private Limited accepts no
liability for any damage caused by any virus transmitted by this email.
Thank you for your co-operation.

Original comment by nir...@nvsoft.com on 21 Aug 2012 at 6:15

GoogleCodeExporter commented 9 years ago
I'm unable to reproduce anything more than a short flicker with my current app. 
I think you forgot to attach the app in the previous comment. Do you have 
something?

Original comment by shai.almog on 22 Aug 2012 at 1:15

GoogleCodeExporter commented 9 years ago
Hi Shai,

I did attach the source file and resource file in my reply in the email. Looks 
like file attached in email reply are probably not attached to the Issue. 
Anyway, here's the simple app which I created using the GUI builder which has a 
simple form with two input text fields. I have attached the zip of the files in 
the src folder of the project created in NetBeans. Let me know you want me to 
attach all the files including the codenameone library jars.

Thanks,
Nirmal

Original comment by nir...@nvsoft.com on 22 Aug 2012 at 1:23

Attachments:

GoogleCodeExporter commented 9 years ago
I'm running your code both on a newer device and on an older 4.2 device and 
can't seem to reproduce the issue at all. Only a rare occasional flicker. Since 
its possibly a race condition or something similar can you distil something 
about that from your application?

Original comment by shai.almog on 22 Aug 2012 at 2:17

GoogleCodeExporter commented 9 years ago
This looks like it may well be the same as I've seen on Android, issue 1087:
http://code.google.com/p/codenameone/issues/detail?id=1087

Original comment by noelmart...@gmail.com on 27 Mar 2014 at 12:43