substrate icon indicating copy to clipboard operation
substrate copied to clipboard

Cannot get Console Log under iOS

Open LordTylus opened this issue 1 year ago • 0 comments

Whenever I run my App using maven with iOS using: ./mvnw gluonfx:install gluonfx:nativerun -Pios

the App starts fine (I previously compiled and packaged it of course). But pretty much immediately after the App has launched the console output stops happening. and only shows:

[Di. Aug. 01 09:50:44 MESZ 2023][INFORMATION] [SUB] [....] Waiting for iOS device to be connected
[Di. Aug. 01 09:50:44 MESZ 2023][INFORMATION] [SUB] [....] Using 5de704f62875a2ddda879ace8367e3b9c170e83a (D101AP, iPhone 7, iphoneos, arm64, 15.7.3, 19H307) a.k.a. 'IPHONEMYSAM002'.
[Di. Aug. 01 09:50:44 MESZ 2023][INFORMATION] [SUB] ------ Debug phase ------
[Di. Aug. 01 09:50:44 MESZ 2023][INFORMATION] [SUB] Starting debug of 5de704f62875a2ddda879ace8367e3b9c170e83a (D101AP, iPhone 7, iphoneos, arm64, 15.7.3, 19H307) a.k.a. 'IPHONEMYSAM002' connected through USB...
[Di. Aug. 01 09:50:45 MESZ 2023][INFORMATION] [SUB] [  0%] Looking up developer disk image
[Di. Aug. 01 09:50:45 MESZ 2023][INFORMATION] [SUB] [ 95%] Developer disk image mounted successfully
[Di. Aug. 01 09:50:45 MESZ 2023][INFORMATION] [SUB] Symbol Path: /Users/developer/Library/Developer/Xcode/iOS DeviceSupport/15.7.3 (19H307)/Symbols
[Di. Aug. 01 09:50:46 MESZ 2023][INFORMATION] [SUB] [100%] Connecting to remote debug server
[Di. Aug. 01 09:50:46 MESZ 2023][INFORMATION] [SUB] -------------------------
[Di. Aug. 01 09:50:46 MESZ 2023][INFORMATION] [SUB] (lldb) command source -s 0 '/tmp/A195AA8D-E942-4B93-84F5-5A755B6BB9CF/fruitstrap-lldb-prep-cmds-5de704f62875a2ddda879ace8367e3b9c170e83a'
[Di. Aug. 01 09:50:46 MESZ 2023][INFORMATION] [SUB] Executing commands in '/tmp/A195AA8D-E942-4B93-84F5-5A755B6BB9CF/fruitstrap-lldb-prep-cmds-5de704f62875a2ddda879ace8367e3b9c170e83a'.
[Di. Aug. 01 09:50:46 MESZ 2023][INFORMATION] [SUB] (lldb)     platform select remote-'ios' --sysroot '/Users/developer/Library/Developer/Xcode/iOS DeviceSupport/15.7.3 (19H307)/Symbols'
[Di. Aug. 01 09:50:46 MESZ 2023][INFORMATION] [SUB]   Platform: remote-ios
[Di. Aug. 01 09:50:46 MESZ 2023][INFORMATION] [SUB]  Connected: no
[Di. Aug. 01 09:50:46 MESZ 2023][INFORMATION] [SUB]   SDK Path: "/Users/developer/Library/Developer/Xcode/iOS DeviceSupport/15.7.3 (19H307)/Symbols"
[Di. Aug. 01 09:50:46 MESZ 2023][INFORMATION] [SUB] (lldb)     target create "/Users/devekiper/app/app-client/app-client-gui/target/gluonfx/arm64-ios/app-client-gui.app"
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] Current executable set to '/Users/developer/app/app-client/app-client-gui/target/gluonfx/arm64-ios/app-client-gui.app' (arm64).
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] (lldb)     script fruitstrap_device_app="/private/var/containers/Bundle/Application/26977933-92B1-40A2-89E9-E572929C5931/app-client-gui.app"
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] (lldb)     script fruitstrap_connect_url="connect://127.0.0.1:49494"
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] (lldb)     script fruitstrap_output_path=""
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] (lldb)     script fruitstrap_error_path=""
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] (lldb)     target modules search-paths add /usr "/Users/developer/Library/Developer/Xcode/iOS DeviceSupport/15.7.3 (19H307)/Symbols/usr" /System "/Users/developer/Library/Developer/Xcode/iOS DeviceSupport/15.7.3 (19H307)/Symbols/System" "/private/var/containers/Bundle/Application/26977933-92B1-40A2-89E9-E572929C5931" "/Users/developer/app/app-client/app-client-gui/target/gluonfx/arm64-ios" "/var/containers/Bundle/Application/26977933-92B1-40A2-89E9-E572929C5931" "/Users/developer/app/app-client/app-client-gui/target/gluonfx/arm64-ios" /Developer "/Users/developer/Library/Developer/Xcode/iOS DeviceSupport/15.7.3 (19H307)/Symbols/Developer"
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] (lldb)     command script import "/tmp/A195AA8D-E942-4B93-84F5-5A755B6BB9CF/fruitstrap_5de704f62875a2ddda879ace8367e3b9c170e83a.py"
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] (lldb)     command script add -f fruitstrap_5de704f62875a2ddda879ace8367e3b9c170e83a.connect_command connect
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] (lldb)     command script add -s asynchronous -f fruitstrap_5de704f62875a2ddda879ace8367e3b9c170e83a.run_command run
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] (lldb)     command script add -s asynchronous -f fruitstrap_5de704f62875a2ddda879ace8367e3b9c170e83a.autoexit_command autoexit
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] (lldb)     command script add -s asynchronous -f fruitstrap_5de704f62875a2ddda879ace8367e3b9c170e83a.safequit_command safequit
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] (lldb)     connect
[Di. Aug. 01 09:50:51 MESZ 2023][INFORMATION] [SUB] (lldb)     run
[Di. Aug. 01 09:50:52 MESZ 2023][INFORMATION] [SUB] success
[Di. Aug. 01 09:50:52 MESZ 2023][INFORMATION] [SUB] (lldb)     autoexit

When looking in the logs in the Target folder I get a few more information:

2023-08-01 09:42:29.716944+0200 app-client-gui[856:21763] Done creating user.home at /var/mobile/Containers/Data/Application/A162C1F6-6753-42CB-A53D-205F69C9844C/Library/gluon



determineCpuFeaures



determineCpuFeaures
Aug. 01, 2023 9:42:40 AM com.sun.javafx.application.PlatformImpl startup
WARNUNG: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @4563e9ab'
IOSWindowSystemInterface : share 0 view 0 pf otready 
GL_VERSION string = OpenGL ES 2.0 Metal - 94.5
GL_VERSION (major.minor) = 0.0
  initialize() returns 4477524176
IOSWindowSystemInterface : share 82de7540 view 0 pf otready 
GL_VERSION string = OpenGL ES 2.0 Metal - 94.5
GL_VERSION (major.minor) = 0.0
CTXINFO vendor
CTXINFO renderer
CTXINFO glExtensions
CTXINFO GL_ARB_pixel_buffer_object
CTXINFO allocate the structure
CTXINFO set function pointers
IOSWindowSystemInterface : share 82de7540 view 0 pf otready 
GL_VERSION string = OpenGL ES 2.0 Metal - 94.5
GL_VERSION (major.minor) = 0.0
CTXINFO vendor
CTXINFO renderer
CTXINFO glExtensions
CTXINFO GL_ARB_pixel_buffer_object
CTXINFO allocate the structure
CTXINFO set function pointers
09:42:40.465 [ INFO] [DeviceCacheFolderProvider] Cache Verzeichnis auf /var/mobile/Containers/Data/Application/A162C1F6-6753-42CB-A53D-205F69C9844C/Library/Caches gesetzt.
375.000000 667.000000
375.000000 667.000000
375.000000 667.000000
375.000000 667.000000
375.000000 667.000000
375.000000 667.000000
375.000000 667.000000

PROCESS_STOPPED
  thread #1: tid = 0x54d9, 0x00000001bb62aaac libsystem_kernel.dylib`mach_msg_trap + 8, queue = 'com.apple.main-thread', stop reason = signal SIGKILL
    frame #0: 0x00000001bb62aaac libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x00000001bb62b07c libsystem_kernel.dylib`mach_msg + 72
    frame #2: 0x0000000180cd7cc8 CoreFoundation`__CFRunLoopServiceMachPort + 368
    frame #3: 0x0000000180cdbfd0 CoreFoundation`__CFRunLoopRun + 1160
    frame #4: 0x0000000180cef194 CoreFoundation`CFRunLoopRunSpecific + 572
    frame #5: 0x00000001a181a988 GraphicsServices`GSEventRunModal + 160
    frame #6: 0x00000001834f1a88 UIKitCore`-[UIApplication _run] + 1080
    frame #7: 0x000000018328afc8 UIKitCore`UIApplicationMain + 336
    frame #8: 0x0000000100dd40ac app-client-gui`main + 88
    frame #9: 0x000000010ab544d0 dyld`start + 444

As you can see, it seemed to have logged something from me using log4j once before it failed. Still, the app kept running.

The interesting thing is, under iOS the App start needs between 5 to 30 seconds. And I have seen it even longer on different devices, which is much longer than Android, where it works fine, logs fine, and the app is open near instantly.

does anyone have an Idea on what exactly I am doing wrong, the system is doing wrong, what can help me solving this problem? I am currently investigating a difference where my iOS app is not showing a view correctly, which on Android however works just fine. I don't seem to be getting any exceptions, because none is written to my own log files. But yeah, it's pretty complicated to figure out right now.

Expected Behavior

I would of course expect that the log keeps running, or at least gives me a a little more to work with on why the logs seem to fail.

Steps to Reproduce

For me it's enough to just run the command written above deploy the app on my iPhone 7 to have it fail like this.

Your Environment

max OS Ventura 13.2.1 GraalVM graalvm-svm-java17-darwin-gluon-22.1.0.1-Final IDEA 2023.1.1 CE JDK Corretto 11.0.12.7.2 Xcode 14.2 GluonFX-maven-plugin Version 1.0.16

LordTylus avatar Aug 01 '23 08:08 LordTylus