codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.
https://www.codenameone.com/
Other
1.67k stars 403 forks source link

Lightweight Picker Hanging on iOS #2882

Open diamondobama opened 4 years ago

diamondobama commented 4 years ago

Using setUseLightweightPopup, the most recent build for iOS is freezing whenever I try to spin Picker values. I have to minimize the App and restore to have it working.

It works fine on Android and Sim.

I'm using iOS 13 beta 6 release. A previous build of the same App works fine on the same OS.

diamondobama commented 4 years ago

In addition to this, Text editing on Android is crashing the App that previously worked smoothly.

jegesh commented 4 years ago

I'm also experiencing similar issues - an otherwise totally smooth-working app gets UI freezes in iOS 13. The public release is in just two weeks, so a fix would be great!

kutoman commented 4 years ago

yes it's still an issue unfortunately

kutoman commented 4 years ago

Bildschirmfoto 2020-02-03 um 14 33 08

stack trace:

#0  0x0000000103453a1e in -[CodenameOne_GLViewController pickerView:titleForRow:forComponent:] at /Users/SoftwareDev/Downloads/sources 35/dist/MainApp-src/CodenameOne_GLViewController.m:3675
#1  0x00007fff470f0db3 in -[UIPickerView _delegateTitleForRow:forComponent:] ()
#2  0x00007fff470f4299 in -[UIPickerView tableView:cellForRowAtIndexPath:] ()
#3  0x00007fff470e966f in -[UIPickerColumnView tableView:cellForRowAtIndexPath:] ()
#4  0x00007fff47360e4b in -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] ()
#5  0x00007fff4732a3c6 in -[UITableView _updateVisibleCellsNow:] ()
#6  0x00007fff4734a318 in -[UITableView layoutSubviews] ()
#7  0x00007fff470ec3f7 in __35-[UIPickerTableView layoutSubviews]_block_invoke ()
#8  0x00007fff47628a26 in +[UIView(Animation) performWithoutAnimation:] ()
#9  0x00007fff470ec3a7 in -[UIPickerTableView layoutSubviews] ()
#10 0x00007fff47636722 in -[UIView(CALayerDelegate) layoutSublayersOfLayer:] ()
#11 0x00007fff2b030ef9 in -[CALayer layoutSublayers] ()
#12 0x00007fff2b0358ff in CA::Layer::layout_if_needed(CA::Transaction*) ()
#13 0x00007fff2b041fe4 in CA::Layer::layout_and_display_if_needed(CA::Transaction*) ()
#14 0x00007fff2af8a4a8 in CA::Context::commit_transaction(CA::Transaction*, double) ()
#15 0x00007fff2afbfab3 in CA::Transaction::commit() ()
#16 0x00007fff2afc041a in CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) ()
#17 0x00007fff23afaeb7 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ ()
#18 0x00007fff23af594e in __CFRunLoopDoObservers ()
#19 0x00007fff23af5fca in __CFRunLoopRun ()
#20 0x00007fff23af56b6 in CFRunLoopRunSpecific ()
#21 0x00007fff3815cbb0 in GSEventRunModal ()
#22 0x00007fff47162a67 in UIApplicationMain ()
#23 0x00000001037d8358 in com_codename1_impl_ios_IOSNative_initVM__ at /Users/SoftwareDev/Downloads/sources 35/dist/MainApp-src/IOSNative.m:306
#24 0x0000000103465f77 in com_codename1_impl_ios_IOSImplementation_postInit__ at /Users/SoftwareDev/Downloads/sources 35/dist/MainApp-src/com_codename1_impl_ios_IOSImplementation.m:1233
#25 0x000000010332124a in virtual_com_codename1_impl_CodenameOneImplementation_postInit__ at /Users/SoftwareDev/Downloads/sources 35/dist/MainApp-src/com_codename1_impl_CodenameOneImplementation.m:14941
#26 0x0000000102c0012a in com_codename1_ui_Display_init___java_lang_Object at /Users/SoftwareDev/Downloads/sources 35/dist/MainApp-src/com_codename1_ui_Display.m:1252
#27 0x00000001033485ae in org_igmg_app_MainAppStub_main___java_lang_String_1ARRAY at /Users/SoftwareDev/Downloads/sources 35/dist/MainApp-src/org_igmg_app_MainAppStub.m:335
#28 0x0000000103348609 in main at /Users/SoftwareDev/Downloads/sources 35/dist/MainApp-src/org_igmg_app_MainAppStub.m:344
shannah commented 4 years ago

The address of the bad access error is cut off, so I can't see if arr is nil, or if it is another value. If nil it will be an easier fix. Can you share the rest of that bad access error?

kutoman commented 4 years ago

Thread 1: EXC_BAD_ACCESS (code=1, address=0x38)