darksoil-studio / p2p-shipyard

Ship cross-platform p2p apps
http://darksoil.studio/p2p-shipyard/
11 stars 3 forks source link

Black screen on Android with freshly scaffolded example app #23

Closed nick-stebbings closed 3 months ago

nick-stebbings commented 3 months ago

I cannot get past this black screen (inside a Tauri window on my mobile) using: Linux Mint 21.1, Android 14 on a Samsung Galaxy A15

After

The app appears in a tauri window on my laptop OK. I assume this might be some kind of networking issue between the processes that is not properly sharing the UI.

Here is the output:

    Info Detected connected device: SM-A155F with target "aarch64-linux-android"
[1] 
[1] [TypeScript] Found 0 errors. Watching for file changes.
[1] [ESLint] Found 0 error and 0 warning
[2]     Info Watching /home/nickstebb/Code/hello/src-tauri for changes...
[2]     Info Watching /home/nickstebb/Code/hello/dnas/world/zomes/coordinator/test for changes...
[2]     Info Watching /home/nickstebb/Code/hello/dnas/world/zomes/integrity/test for changes...
[2]     Info Watching /home/nickstebb/Code/hello/src-tauri for changes...
[2]    Compiling hello v0.0.0 (/home/nickstebb/Code/hello/src-tauri)
    Info Using 192.168.1.220 to access the development server.                
[3]     Info detected host target triple "x86_64-unknown-linux-gnu"
[3]     Blocking waiting for file lock on build directory
    Finished dev [optimized + debuginfo] target(s) in 35.70s
[2] 
[2] (process:64088): Gtk-WARNING **: 17:06:06.486: Locale not supported by C library.
[2]     Using the fallback 'C' locale.
[2] Gtk-Message: 17:06:06.487: Failed to load module "xapp-gtk3-module"
[3]    Compiling tauri v2.0.0-beta.25
[3]    Compiling wry v0.41.0
[3]    Compiling tauri-plugin-log v2.0.0-beta.9
[3]    Compiling tauri-plugin-holochain v0.0.0 (https://github.com/darksoil-studio/p2p-shipyard?branch=main#da6be8ee)
[3]    Compiling hello v0.0.0 (/home/nickstebb/Code/hello/src-tauri)
[3]    Compiling tauri-runtime-wry v2.0.0-beta.21
[2] # lair-keystore connection_url # unix:///tmp/nix-shell.Wd3ldT/hello.0M3gHQAT6wKY/keystore/socket?k=Y1wj-jdQCRMhZ4SrUgM93u7IWi-8n_SSCMlFZqIJUgU #
[2] # lair-keystore running #
[2] [2024-07-29][16:06:07][holochain::conductor::state][WARN] Using default NetworkCompatParams
[2] 
[2] ###HOLOCHAIN_SETUP###
[2] ###ADMIN_PORT:23310###
[2] ###HOLOCHAIN_SETUP_END###
[2] [2024-07-29][16:06:07][holochain_websocket][WARN] WebsocketReceiver Error err=Custom { kind: Other, error: "ReceivedCloseFrame: None" }
[2] [2024-07-29][16:06:09][holochain::core::ribosome::real_ribosome][WARN] 'cache.get(cache_key, &wasm)' exceeded MID time threshold elapsed=1.120583187s intervals=[1, 1000, 10000]
[2] [2024-07-29][16:06:09][holochain_websocket][WARN] WebsocketReceiver Error err=Custom { kind: Other, error: "ReceivedCloseFrame: None" }
[2] [2024-07-29][16:06:09][holochain_websocket][WARN] WebsocketReceiver Error err=Custom { kind: Other, error: "ReceivedCloseFrame: None" }
[2] [2024-07-29][16:06:09][holochain_websocket][WARN] WebsocketReceiver Error err=Custom { kind: Other, error: "ReceivedCloseFrame: None" }
[2] 
[2] (process:64246): Gtk-WARNING **: 17:06:09.297: Locale not supported by C library.
[2]     Using the fallback 'C' locale.
[2] Gtk-Message: 17:06:09.298: Failed to load module "xapp-gtk3-module"
[2] MESA-LOADER: failed to open iris: /run/opengl-driver/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
[2] MESA-LOADER: failed to open kms_swrast: /run/opengl-driver/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
[2] MESA-LOADER: failed to open swrast: /run/opengl-driver/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
[2] Failed to create GBM device for render device: /dev/dri/renderD128: No such file or directory
[2] [2024-07-29][16:06:12][libmdns][WARN] Failed to register IPv6 receiver: Os { code: 98, kind: AddrInUse, message: "Address already in use" }
[2] [2024-07-29][16:06:17][libmdns][WARN] Failed to register IPv6 receiver: Os { code: 98, kind: AddrInUse, message: "Address already in use" }
[2] [2024-07-29][16:06:22][libmdns][WARN] Failed to register IPv6 receiver: Os { code: 98, kind: AddrInUse, message: "Address already in use" }
[3]     Finished dev [optimized + debuginfo] target(s) in 54.74s
[3]     Info symlinking lib "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so" in jniLibs dir "/home/nickstebb/Code/hello/src-tauri/gen/android/app/src/main/jniLibs/arm64-v8a"
[3]     Info "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so" requires shared lib "liblog.so"
[3]     Info "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so" requires shared lib "libdl.so"
[3]     Info "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so" requires shared lib "libandroid.so"
[3]     Info "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so" requires shared lib "libm.so"
[3]     Info "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so" requires shared lib "libc.so"
[3]     Info symlink at "/home/nickstebb/Code/hello/src-tauri/gen/android/app/src/main/jniLibs/arm64-v8a/libtauri_app_lib.so" points to "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so"
[3] WARNING: The option setting 'android.aapt2FromMavenOverride=/nix/store/bfaxh4xfrafrxhvza9b2rzw14qhlbdn4-aapt-8.4.1-11315950/bin/aapt2' is experimental.
[2] [2024-07-29][16:06:27][libmdns][WARN] Failed to register IPv6 receiver: Os { code: 98, kind: AddrInUse, message: "Address already in use" }
[3] ?WARN? The "workspaces" field in package.json is not supported by pnpm. Create a "pnpm-workspace.yaml" file instead.
[3] 
[3] > hello-dev@ tauri /home/nickstebb/Code/hello
[3] > tauri "android" "android-studio-script" "--target" "aarch64"
[3]     Info connection; remote_addr=127.0.0.1:50426 conn_id=0
[3]    Compiling tauri v2.0.0-beta.25
[3]    Compiling wry v0.41.0
[3]    Compiling tauri-plugin-log v2.0.0-beta.9
[3]    Compiling tauri-plugin-holochain v0.0.0 (https://github.com/darksoil-studio/p2p-shipyard?branch=main#da6be8ee)
[3]    Compiling hello v0.0.0 (/home/nickstebb/Code/hello/src-tauri)
[3]    Compiling tauri-runtime-wry v2.0.0-beta.21
[2] [2024-07-29][16:06:32][libmdns][WARN] Failed to register IPv6 receiver: Os { code: 98, kind: AddrInUse, message: "Address already in use" }
[2] [2024-07-29][16:06:37][libmdns][WARN] Failed to register IPv6 receiver: Os { code: 98, kind: AddrInUse, message: "Address already in use" }
[2] [2024-07-29][16:06:42][libmdns][WARN] Failed to register IPv6 receiver: Os { code: 98, kind: AddrInUse, message: "Address already in use" }
[2] [2024-07-29][16:06:47][libmdns][WARN] Failed to register IPv6 receiver: Os { code: 98, kind: AddrInUse, message: "Address already in use" }
[3]     Finished dev [optimized + debuginfo] target(s) in 18.46s
[3]     Info symlinking lib "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so" in jniLibs dir "/home/nickstebb/Code/hello/src-tauri/gen/android/app/src/main/jniLibs/arm64-v8a"
[3]     Info "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so" requires shared lib "liblog.so"
[3]     Info "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so" requires shared lib "libdl.so"
[3]     Info "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so" requires shared lib "libandroid.so"
[3]     Info "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so" requires shared lib "libm.so"
[3]     Info "/home/nickstebb/Code/hello/target/aarch64-linux-android/debug/libtauri_app_lib.so" requires shared lib "libc.so"
[2] [2024-07-29][16:06:52][libmdns][WARN] Failed to register IPv6 receiver: Os { code: 98, kind: AddrInUse, message: "Address already in use" }
[3] 
[3] Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
[3] 
[3] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
[3] 
[3] For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
[2] [2024-07-29][16:06:57][libmdns][WARN] Failed to register IPv6 receiver: Os { code: 98, kind: AddrInUse, message: "Address already in use" }
[3] Performing Streamed Install
[3] Success
[3] Starting: Intent { cmp=com.myapp.test/.MainActivity }

Any help would be appreciated :) Cheers

guillemcordoba commented 3 months ago

Hi Nick! At first glance I can't really tell what's going wrong... Things that could help:

Hope this helps!

nick-stebbings commented 3 months ago

Great, it works! It was the final bullet point that did it (the release candidate fixes all the display issues).

Thanks for your help Guillem (and the whole team for all the hard work on this)!