Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StatusBarService crashes on iOS #110

Closed
dlemmermann opened this issue Apr 28, 2020 · 3 comments · Fixed by #137
Closed

StatusBarService crashes on iOS #110

dlemmermann opened this issue Apr 28, 2020 · 3 comments · Fixed by #137

Comments

@dlemmermann
Copy link

dlemmermann commented Apr 28, 2020

I have a nicely working app on my iPhone, but when I add the StatusBarService to set the color of the bar items the app crashes as soon as the app calls the service.

Attach version 4.0.7
GraalVM: graalvm-svm-darwin-20.1.0-ea+28

Default-Info.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleIdentifier</key>
	<string>uk.co.senapt.mobile.EvXcenApp</string>
	<key>CFBundleVersion</key>
	<string>1.0</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleExecutable</key>
	<string>evXcen</string>
	<key>CFBundleIconName</key>
	<string>AppIcon</string>
	<key>CFBundleName</key>
	<string>evXcen</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>LSRequiresIPhoneOS</key>
	<true/>
	<key>UISupportedInterfaceOrientations</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<!--
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
		<string>UIInterfaceOrientationPortraitUpsideDown</string>
		-->
	</array>
	<key>UISupportedInterfaceOrientations~ipad</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<!--
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
		<string>UIInterfaceOrientationPortraitUpsideDown</string>
		-->
	</array>
	<key>UIRequiredDeviceCapabilities</key>
	<array>
		<string>arm64</string>
	</array>
	<key>UIDeviceFamily</key>
	<array>
		<integer>1</integer>
		<integer>2</integer>
	</array>
	<key>MinimumOSVersion</key>
	<string>11.0</string>
	<key>UIRequiresFullScreen</key>
	<string>YES</string>
	<!--
	<key>UIStatusBarStyle</key>
    <string>UIStatusBarStyleLightContent</string>
    -->
    <key>NSLocationUsageDescription</key>
    <string>evXcen needs to find your current location</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>evXcen needs to find your current location</string>
    <key>UIViewControllerBasedStatusBarAppearance</key>
    <true/>
</dict>
</plist>

Code:

Services.get(StatusBarService.class).ifPresent(service -> service.setColor(color));

Dump:

[Tue Apr 28 16:11:33 CEST 2020][INFO] [SUB] 2020-04-28 16:10:31.844503+0200 evXcen[17919:7180600] *** Assertion failure in -[UIApplication _createStatusBarWithRequestedStyle:orientation:hidden:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore/UIKit-3901.4.5/UIApplication.m:5330
[Tue Apr 28 16:11:33 CEST 2020][INFO] [SUB] Process 17919 stopped
[Tue Apr 28 16:11:33 CEST 2020][INFO] [SUB] * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x434c4e47432b2bb8)
[Tue Apr 28 16:11:33 CEST 2020][INFO] [SUB]     frame #0: 0x00000001041f7008 evXcen`IsolateEnterStub_LLVMExceptionUnwind_personality_6715a663d94f995518d057e92a9c4ae4293ffca2_f13871289d9839292ba0106f623976b447e2efd4 + 156
[Tue Apr 28 16:11:33 CEST 2020][INFO] [SUB] evXcen`IsolateEnterStub_LLVMExceptionUnwind_personality_6715a663d94f995518d057e92a9c4ae4293ffca2_f13871289d9839292ba0106f623976b447e2efd4:
[Tue Apr 28 16:11:33 CEST 2020][INFO] [SUB] ->  0x1041f7008 <+156>: ldr    w8, [x21, #0xb8]
[Tue Apr 28 16:11:33 CEST 2020][INFO] [SUB]     0x1041f700c <+160>: dmb    ish
[Tue Apr 28 16:11:33 CEST 2020][INFO] [SUB]     0x1041f7010 <+164>: cbnz   w8, 0x1041f7034           ; <+200>
[Tue Apr 28 16:11:33 CEST 2020][INFO] [SUB]     0x1041f7014 <+168>: add    x8, x21, #0xc0            ; =0xc0 
[Tue Apr 28 16:11:33 CEST 2020][INFO] [SUB] Target 0: (evXcen) stopped.
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB] * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x434c4e47432b2bb8)
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]   * frame #0: 0x00000001041f7008 evXcen`IsolateEnterStub_LLVMExceptionUnwind_personality_6715a663d94f995518d057e92a9c4ae4293ffca2_f13871289d9839292ba0106f623976b447e2efd4 + 156
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #1: 0x00000001d1ac0abc libunwind.dylib`_Unwind_RaiseException + 360
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #2: 0x000000019bf02c10 libc++abi.dylib`__cxa_throw + 116
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #3: 0x000000019be5e0d0 libobjc.A.dylib`objc_exception_throw + 356
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #4: 0x000000019c038e88 CoreFoundation`+[NSException raise:format:arguments:] + 96
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #5: 0x000000019c46e654 Foundation`-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 128
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #6: 0x00000001a01bdbbc UIKitCore`-[UIApplication _createStatusBarWithRequestedStyle:orientation:hidden:] + 244
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #7: 0x00000001a01be1a4 UIKitCore`-[UIApplication statusBarWindow] + 32
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #8: 0x000000019c3f16f8 Foundation`-[NSObject(NSKeyValueCoding) valueForKey:] + 304
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #9: 0x000000010571c0a0 evXcen`Java_com_gluonhq_attach_statusbar_impl_IOSStatusBarService_setNativeColor + 96
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #10: 0x00000001041d3f80 evXcen`__llvm_jni_wrapper_f_isVoidi64i64f64f64f64f64f_native + 28
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #11: 0x00000001041d3e88 evXcen`IOSStatusBarService_setNativeColor_9f5f04fba99338e438ad2d84bddd5839f169a362 + 256
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #12: 0x00000001041d3ce0 evXcen`IOSStatusBarService_setColor_e833c997582ad7582d84b1bf3dc89db9d8069b88 + 64
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #13: 0x000000010564887c evXcen`EvXcenApp$$Lambda$934f27528deff07a2b5fe8861db3bdf9eb2cbfe9_accept_e74f9ee46bce40c3184eb90b5176383d201c7c8a + 92
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #14: 0x0000000104c78784 evXcen`Optional_ifPresent_2a7e51fc40ee2cf76fd0e2e9c3f40f8565db8c52 + 96
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #15: 0x0000000105648e10 evXcen`EvXcenApp_lambda$hideNode$4_1a0c7fdf06e078d6be2b4d87b762c9514703377a + 192
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #16: 0x0000000105648a64 evXcen`EvXcenApp$$Lambda$d431d4bca39e213811831cb6b9e9cb9e52fd1371_handle_c24858d76526f7eea3707b6383e644009e30e877 + 96
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #17: 0x0000000104da908c evXcen`Animation_finished_a2255ad73005903f709738455db565e0cc9ef2ed + 272
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #18: 0x00000001049f70f0 evXcen`SingleLoopClipEnvelope_timePulse_d87db6f86d9209bf83f8bcba4dce0f4c29fbdab4 + 380
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #19: 0x0000000104da8eb0 evXcen`Animation_doTimePulse_2a246682ef35f14f902653ae20580fc241513d2c + 72
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #20: 0x0000000104da714c evXcen`Animation$1_lambda$timePulse$0_ddbc34b84a6f215e92327e11ef03a6b897fe3c3f + 44
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #21: 0x0000000104da70e4 evXcen`Animation$1$$Lambda$4cde6aa0b037b714ce5ec234c5563cbf71a2959b_run_ecec97e59f6034aac91c36c1e2c4cc4764688806 + 52
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #22: 0x0000000104b53664 evXcen`AccessController_doPrivileged_29ba6f9be6fba299a35cb9d393925bfbcdbde17b + 64
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #23: 0x0000000104da7228 evXcen`Animation$1_timePulse_dfc976f0f3edb28e1a32313b972f1050666250d9 + 160
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #24: 0x00000001049e9338 evXcen`AbstractMasterTimer_timePulseImpl_685ac2d4c01592f02e7506463c0cedf90ca64431 + 264
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #25: 0x00000001049e85b8 evXcen`AbstractMasterTimer$MainLoop_run_bf60f91a1f55f408c545c8f0bdf0b0901252586a + 148
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #26: 0x00000001046b92e8 evXcen`QuantumToolkit_pulse_bde485bfff8eb7d14d4ae4df8b84300ffa9a5400 + 404
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #27: 0x00000001046b9844 evXcen`QuantumToolkit_pulseFromQueue_1a7c2efb1076567bde95b8823b3b60a5e100c66a + 52
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #28: 0x00000001046b14e0 evXcen`QuantumToolkit$$Lambda$0baa125f8e71049785147df1f35e0b93d15dfdfa_run_148142fd26ad0402b9f6049cef6886c1f4956ccc + 44
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #29: 0x0000000104270dd4 evXcen`JNIJavaCallWrappers__jniInvoke__VARARGS_003aLjava__lang__Runnable__2__0002erun__00028__00029V__6fbdae6ba9bb33ce1ba347a70d40d64a30da615a + 184
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #30: 0x000000010569984c evXcen`-[GlassRunnable run](self=0x0000000280bf0900, _cmd="run") at GlassApplication.m:255:13
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #31: 0x000000019c51f224 Foundation`__NSThreadPerformPerform + 232
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #32: 0x000000019c0b4a00 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #33: 0x000000019c0b4958 CoreFoundation`__CFRunLoopDoSource0 + 80
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #34: 0x000000019c0b40f0 CoreFoundation`__CFRunLoopDoSources0 + 180
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #35: 0x000000019c0af23c CoreFoundation`__CFRunLoopRun + 1080
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #36: 0x000000019c0aeadc CoreFoundation`CFRunLoopRunSpecific + 464
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #37: 0x00000001a604f328 GraphicsServices`GSEventRunModal + 104
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #38: 0x00000001a01bc63c UIKitCore`UIApplicationMain + 1936
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #39: 0x00000001041cd09c evXcen`main + 156
[Tue Apr 28 16:11:34 CEST 2020][INFO] [SUB]     frame #40: 0x000000019bf38360 libdyld.dylib`start + 4
@dlemmermann
Copy link
Author

This one is really the only thing left for me to make happen. I am now using the latest client plugin version. I switched from 0.1.21 to 0.1.23 and I still see this issue. The design of my app could be pixel perfect, if only this service would work.

@dlemmermann
Copy link
Author

I would love to upload a new video showcasing the app on YouTube, but want to wait until I have figured out how to properly control the statusbar.

@dlemmermann
Copy link
Author

Awesome, thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant