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

Missing libtor.so #2328

Closed
kingalg opened this issue Mar 4, 2024 · 12 comments
Closed

Missing libtor.so #2328

kingalg opened this issue Mar 4, 2024 · 12 comments
Assignees
Labels
android bug Something isn't working

Comments

@kingalg
Copy link
Collaborator

kingalg commented Mar 4, 2024

Android: [email protected]

Issue: App on android crashes when the user tries to open it. It just blinks for a second and closes. Backend is still running and the app tries to connect.

Below you can see logs. Among them there is this ERROR:

03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE: [Nest] 13468  - 1709547937497   ERROR [ExceptionHandler] Command failed: /data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/lib/arm64/libtor.so --quiet --hash-password 1c1b711d663b175d38eec1fa51613929
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE: /system/bin/sh: /data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/lib/arm64/libtor.so: inaccessible or not found

Full logs:

rumblefish@rumblefish-Lenovo-IdeaPad-Z510:~$ adb logcat --pid=$(adb shell pidof -s com.quietmobile)
--------- beginning of main
03-04 11:25:19.466 13468 13468 I com.quietmobile: Using CollectorTypeCMC GC.
03-04 11:25:19.471 13468 13468 E com.quietmobile: Not starting debugger since process cannot load the jdwp agent.
03-04 11:25:19.482 13468 13468 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10264; state: ENABLED
03-04 11:25:19.482 13468 13468 D CompatibilityChangeReporter: Compat change id reported: 242716250; UID 10264; state: ENABLED
03-04 11:25:19.492 13468 13468 W ziparchive: Unable to open '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.arm64_v8a.dm': No such file or directory
03-04 11:25:19.492 13468 13468 W ziparchive: Unable to open '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.arm64_v8a.dm': No such file or directory
03-04 11:25:19.492 13468 13468 W com.quietmobile: Entry not found
03-04 11:25:19.493 13468 13468 W ziparchive: Unable to open '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.en.dm': No such file or directory
03-04 11:25:19.493 13468 13468 W ziparchive: Unable to open '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.en.dm': No such file or directory
03-04 11:25:19.494 13468 13468 W com.quietmobile: Entry not found
03-04 11:25:19.494 13468 13468 W ziparchive: Unable to open '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.pl.dm': No such file or directory
03-04 11:25:19.494 13468 13468 W ziparchive: Unable to open '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.pl.dm': No such file or directory
03-04 11:25:19.494 13468 13468 W com.quietmobile: Entry not found
03-04 11:25:19.494 13468 13468 W ziparchive: Unable to open '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.xxhdpi.dm': No such file or directory
03-04 11:25:19.494 13468 13468 W ziparchive: Unable to open '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.xxhdpi.dm': No such file or directory
03-04 11:25:19.495 13468 13468 W com.quietmobile: Entry not found
03-04 11:25:19.496 13468 13468 D nativeloader: Configuring clns-4 for other apk /data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/base.apk:/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.arm64_v8a.apk:/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.en.apk:/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.pl.apk:/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.xxhdpi.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/lib/arm64:/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/base.apk!/lib/arm64-v8a:/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.arm64_v8a.apk!/lib/arm64-v8a:/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.en.apk!/lib/arm64-v8a:/data/app/~~5EtRGvjlNCJ
03-04 11:25:19.505 13468 13468 V GraphicsEnvironment: Currently set values for:
03-04 11:25:19.505 13468 13468 V GraphicsEnvironment:   angle_gl_driver_selection_pkgs=[]
03-04 11:25:19.505 13468 13468 V GraphicsEnvironment:   angle_gl_driver_selection_values=[]
03-04 11:25:19.505 13468 13468 V GraphicsEnvironment: ANGLE GameManagerService for com.quietmobile: false
03-04 11:25:19.505 13468 13468 V GraphicsEnvironment: com.quietmobile is not listed in per-application setting
03-04 11:25:19.505 13468 13468 V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
03-04 11:25:19.511 13468 13468 D WM-WrkMgrInitializer: Initializing WorkManager with default configuration.
03-04 11:25:19.517 13468 13468 V SoLoader: Init System Loader delegate
03-04 11:25:19.527 13468 13468 D JavaScriptCore.Version: 250231.0.0
03-04 11:25:19.531 13468 13485 D CompatibilityChangeReporter: Compat change id reported: 160794467; UID 10264; state: ENABLED
03-04 11:25:19.535 13468 13468 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=com.quietmobile/androidx.work.impl.foreground.SystemForegroundService (has extras) }
03-04 11:25:19.536 13468 13485 D CompatibilityChangeReporter: Compat change id reported: 194532703; UID 10264; state: ENABLED
03-04 11:25:19.536 13468 13485 D CompatibilityChangeReporter: Compat change id reported: 253665015; UID 10264; state: ENABLED
03-04 11:25:35.420 13468 13509 D vulkan  : searching for layers in '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/lib/arm64'
03-04 11:25:35.421 13468 13509 D vulkan  : searching for layers in '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/base.apk!/lib/arm64-v8a'
03-04 11:25:35.421 13468 13509 D vulkan  : searching for layers in '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.arm64_v8a.apk!/lib/arm64-v8a'
03-04 11:25:35.421 13468 13509 D vulkan  : searching for layers in '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.en.apk!/lib/arm64-v8a'
03-04 11:25:35.421 13468 13509 D vulkan  : searching for layers in '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.pl.apk!/lib/arm64-v8a'
03-04 11:25:35.421 13468 13509 D vulkan  : searching for layers in '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/split_config.xxhdpi.apk!/lib/arm64-v8a'
03-04 11:25:35.433 13468 13468 D AppCompatDelegate: Checking for metadata for AppLocalesMetadataHolderService : Service not found
03-04 11:25:35.447 13468 13485 D CompatibilityChangeReporter: Compat change id reported: 263076149; UID 10264; state: ENABLED
03-04 11:25:35.454 13468 13468 D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10264; state: DISABLED
03-04 11:25:35.462 13468 13468 D InstallReferrerState: OK
03-04 11:25:35.500 13468 13487 I WM-Processor: Moving WorkSpec (14035ee1-09da-4234-85e3-2f969d1c3287) to the foreground
03-04 11:25:35.500 13468 13538 D TrafficStats: tagSocket(118) with statsTag=0xffffffff, statsUid=-1
03-04 11:25:35.509 13468 13468 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=com.quietmobile/androidx.work.impl.foreground.SystemForegroundService (has extras) }
03-04 11:25:35.513 13468 13546 D TrafficStats: tagSocket(118) with statsTag=0xffffffff, statsUid=-1
03-04 11:25:35.518 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
03-04 11:25:35.521 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
03-04 11:25:35.522 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
03-04 11:25:35.523 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollContainerViewManager
03-04 11:25:35.524 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
03-04 11:25:35.524 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
03-04 11:25:35.525 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
03-04 11:25:35.525 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
03-04 11:25:35.526 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
03-04 11:25:35.526 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
03-04 11:25:35.527 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
03-04 11:25:35.527 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
03-04 11:25:35.527 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
03-04 11:25:35.528 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager
03-04 11:25:35.528 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode
03-04 11:25:35.528 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
03-04 11:25:35.529 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextShadowNode
03-04 11:25:35.529 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
03-04 11:25:35.530 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
03-04 11:25:35.530 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
03-04 11:25:35.531 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
03-04 11:25:35.531 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
03-04 11:25:35.531 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
03-04 11:25:35.532 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextShadowNode
03-04 11:25:35.532 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.unimplementedview.ReactUnimplementedViewManager
03-04 11:25:35.532 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.dylanvann.fastimage.FastImageViewManager
03-04 11:25:35.532 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.gesturehandler.react.RNGestureHandlerRootViewManager
03-04 11:25:35.533 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.gesturehandler.react.RNGestureHandlerButtonViewManager
03-04 11:25:35.533 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.th3rdwave.safeareacontext.SafeAreaProviderManager
03-04 11:25:35.533 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.th3rdwave.safeareacontext.SafeAreaViewManager
03-04 11:25:35.534 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.th3rdwave.safeareacontext.SafeAreaViewShadowNode
03-04 11:25:35.534 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenContainerViewManager
03-04 11:25:35.534 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenViewManager
03-04 11:25:35.535 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackViewManager
03-04 11:25:35.535 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackHeaderConfigViewManager
03-04 11:25:35.535 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackHeaderSubviewManager
03-04 11:25:35.536 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.SearchBarManager
03-04 11:25:35.536 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$DefsViewManager
03-04 11:25:35.537 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.VirtualViewManager$RenderableShadowNode
03-04 11:25:35.537 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$MarkerManager
03-04 11:25:35.538 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$ForeignObjectManager
03-04 11:25:35.538 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$EllipseViewManager
03-04 11:25:35.539 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$LineViewManager
03-04 11:25:35.539 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$LinearGradientManager
03-04 11:25:35.540 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$GroupViewManager
03-04 11:25:35.540 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$TextViewManager
03-04 11:25:35.541 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$ImageViewManager
03-04 11:25:35.541 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$ClipPathViewManager
03-04 11:25:35.542 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$RadialGradientManager
03-04 11:25:35.542 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$MaskManager
03-04 11:25:35.542 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$SymbolManager
03-04 11:25:35.543 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$PatternManager
03-04 11:25:35.543 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$RectViewManager
03-04 11:25:35.544 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$TextPathViewManager
03-04 11:25:35.544 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.SvgViewManager
03-04 11:25:35.545 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$PathViewManager
03-04 11:25:35.545 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$UseViewManager
03-04 11:25:35.546 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$CircleViewManager
03-04 11:25:35.546 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.horcrux.svg.RenderableViewManager$TSpanViewManager
03-04 11:25:35.547 13468 13528 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.webview.RNCWebViewManager
03-04 11:25:36.004 13468 13468 W DefaultDispatch: type=1400 audit(0.0:101): avc:  denied  { ioctl } for  path="/sys/kernel/tracing/trace_marker" dev="tracefs" ino=11797 ioctlcmd=0x5451 scontext=u:r:untrusted_app:s0:c8,c257,c512,c768 tcontext=u:object_r:debugfs_trace_marker:s0 tclass=file permissive=0 app=com.quietmobile
03-04 11:25:36.004 13468 13468 W DefaultDispatch: type=1400 audit(0.0:102): avc:  denied  { ioctl } for  path="/apex/com.android.art/javalib/core-oj.jar" dev="dm-20" ino=40 ioctlcmd=0x5451 scontext=u:r:untrusted_app:s0:c8,c257,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.quietmobile
03-04 11:25:36.004 13468 13468 W DefaultDispatch: type=1400 audit(0.0:103): avc:  denied  { ioctl } for  path="/apex/com.android.art/javalib/core-libart.jar" dev="dm-20" ino=39 ioctlcmd=0x5451 scontext=u:r:untrusted_app:s0:c8,c257,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.quietmobile
03-04 11:25:36.004 13468 13468 W DefaultDispatch: type=1400 audit(0.0:104): avc:  denied  { ioctl } for  path="/apex/com.android.art/javalib/okhttp.jar" dev="dm-20" ino=41 ioctlcmd=0x5451 scontext=u:r:untrusted_app:s0:c8,c257,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.quietmobile
03-04 11:25:36.004 13468 13468 W DefaultDispatch: type=1400 audit(0.0:105): avc:  denied  { ioctl } for  path="/apex/com.android.art/javalib/bouncycastle.jar" dev="dm-20" ino=38 ioctlcmd=0x5451 scontext=u:r:untrusted_app:s0:c8,c257,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.quietmobile
03-04 11:25:36.853 13468 13527 W ReactNativeJS: `new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.
03-04 11:25:36.853 13468 13527 W ReactNativeJS: `new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.
03-04 11:25:36.928 13468 13528 D CompatibilityChangeReporter: Compat change id reported: 289878283; UID 10264; state: ENABLED
03-04 11:25:36.992 13468 13546 D TrafficStats: tagSocket(141) with statsTag=0xffffffff, statsUid=-1
03-04 11:25:37.019 13468 13527 I ReactNativeJS: Running "QuietMobile
03-04 11:25:37.066 13468 13527 I ReactNativeJS: 'LAUNCHED APPLICATION: ', 'blesch'
03-04 11:25:37.127 13468 13560 I NODEJS-MOBILE: WARNING: Missing strong random number source
03-04 11:25:37.215 13468 13527 I ReactNativeJS: INIT_NAVIGATION: Skipping deep link flow.
03-04 11:25:37.230 13468 13527 I ReactNativeJS: 'WEBSOCKET', 'Entered blind connection saga', false, { dataPort: 0, socketIOSecret: '' }
03-04 11:25:37.232 13468 13527 I ReactNativeJS: INIT_NAVIGATION: Waiting for websocket connection before proceeding.
03-04 11:25:37.367 13468 13560 I NODEJS-MOBILE: options {
03-04 11:25:37.367 13468 13560 I NODEJS-MOBILE:   torBinary: '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/lib/arm64/libtor.so',
03-04 11:25:37.367 13468 13560 I NODEJS-MOBILE:   dataPath: '/data/user/0/com.quietmobile/files/backend/files2',
03-04 11:25:37.367 13468 13560 I NODEJS-MOBILE:   dataPort: '11000',
03-04 11:25:37.367 13468 13560 I NODEJS-MOBILE:   platform: 'mobile',
03-04 11:25:37.367 13468 13560 I NODEJS-MOBILE:   socketIOSecret: '4liw7n8msYxfXwVHcVRU'
03-04 11:25:37.367 13468 13560 I NODEJS-MOBILE: }
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE: configOptions {
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:   socketIOPort: '11000',
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:   socketIOSecret: '4liw7n8msYxfXwVHcVRU',
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:   httpTunnelPort: null,
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:   torAuthCookie: null,
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:   torControlPort: 40631,
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:   torBinaryPath: '/data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/lib/arm64/libtor.so',
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:   options: {
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:     env: {
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:       appDataPath: '/data/user/0/com.quietmobile/files/backend/files2'
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:     },
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:     createPaths: false
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:   },
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:   env: {},
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:   bootstrapMultiaddrs: [],
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE:   createPaths: true
03-04 11:25:37.370 13468 13560 I NODEJS-MOBILE: }
03-04 11:25:37.372 13468 13560 I NODEJS-MOBILE: [Nest] 13468  - 1709547937372     LOG [NestFactory] Starting Nest application...
03-04 11:25:37.407 13468 13560 I NODEJS-MOBILE: ok
03-04 11:25:37.408 13468 13560 I NODEJS-MOBILE: [Nest] 13468  - 1709547937408     LOG [InstanceLoader] RegistrationModule dependencies initialized +37ms
03-04 11:25:37.492 13468 13561 E NODEJS-MOBILE: /system/bin/sh: /data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/lib/arm64/libtor.so: inaccessible or not found
03-04 11:25:37.497 13468 13560 I NODEJS-MOBILE: [Nest] 13468  - 1709547937497     LOG [InstanceLoader] IpfsFileManagerModule dependencies initialized +89ms
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE: [Nest] 13468  - 1709547937497   ERROR [ExceptionHandler] Command failed: /data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/lib/arm64/libtor.so --quiet --hash-password 1c1b711d663b175d38eec1fa51613929
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE: /system/bin/sh: /data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/lib/arm64/libtor.so: inaccessible or not found
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE: 
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE: Error: Command failed: /data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/lib/arm64/libtor.so --quiet --hash-password 1c1b711d663b175d38eec1fa51613929
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE: /system/bin/sh: /data/app/~~5EtRGvjlNCJosTXJj2WcOQ==/com.quietmobile-MpWKhZxnot8V-2sMTAjIXg==/lib/arm64/libtor.so: inaccessible or not found
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE: 
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE:     at checkExecSyncError (node:child_process:841:11)
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE:     at Object.execSync (node:child_process:912:15)
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE:     at InstanceWrapper.useFactory [as metatype] (webpack://@quiet/backend/./src/nest/tor/tor.module.ts?:56:75)
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE:     at Injector.instantiateClass (webpack://@quiet/backend/./node_modules/@nestjs/core/injector/injector.js?:368:55)
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE:     at callback (webpack://@quiet/backend/./node_modules/@nestjs/core/injector/injector.js?:65:45)
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE:     at async Injector.resolveConstructorParams (webpack://@quiet/backend/./node_modules/@nestjs/core/injector/injector.js?:144:24)
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE:     at async Injector.loadInstance (webpack://@quiet/backend/./node_modules/@nestjs/core/injector/injector.js?:70:13)
03-04 11:25:37.498 13468 13561 E NODEJS-MOBILE:     at async Injector.loadProvider (webpack://@quiet/backend/./node_modules/@nestjs/core/injector/injector.js?:97:9)
03-04 11:25:37.522 13468 13540 I BpBinder: onLastStrongRef automatically unlinking death recipients:
@kingalg kingalg added bug Something isn't working android labels Mar 4, 2024
@kingalg kingalg added this to Quiet Mar 4, 2024
@kingalg kingalg moved this to Sprint in Quiet Mar 4, 2024
@siepra
Copy link
Contributor

siepra commented Mar 4, 2024

Looks like it didn't find tor binary. How did you install the app?
EDIT: OK, I tried to install from Google Play and I see the problem

@siepra
Copy link
Contributor

siepra commented Mar 4, 2024

Here're contents of the application files in v2.1.2

Screenshot 2024-03-04 at 15 07 04

@holmesworcester holmesworcester changed the title App on android crushes when the user tries to open it App on android crashes when the user tries to open it Mar 4, 2024
@siepra
Copy link
Contributor

siepra commented Mar 4, 2024

In the last working version, the contents of the same dir looks as follows:

Screenshot 2024-03-04 at 16 03 23

@siepra
Copy link
Contributor

siepra commented Mar 4, 2024

I know what the problem is. So far we've been using deprecated android.bundle.enableUncompressedNativeLibs = false flag which happens to be removed in version 8.1 of the Android Gradle plugin.
Yet we point to the compressed tor binary file which causes the error

@siepra
Copy link
Contributor

siepra commented Mar 5, 2024

I don't think there's a way to directly access tor binary from the level of code anymore.

I looked into the implementation of guardian-project's tor library for Android
https://github.com/guardianproject/tor-android/blob/master/tor-android-binary/src/main/java/org/torproject/jni/TorService.java#L335

It spawns a separate thread for tor to run within. I'm not sure if it would work well along with our worker which is probably gonna be better long living and resource trimming resistant.

But what's worse is that it uses ControlSocket instead of ControlPort by default. Why is it worse? Because we already have our NodeJS backend adapted to work with CP (it's how it operates on iOS).

I see the following options:

  1. Downgrade Android Gradle Plugin below 8.1 EDIT: This doesn't seem possible without downgrading RN
  2. Add CP connection feature to the guardian-project library
  3. Make our own tor service out of guardian-project library
  4. Adjust backend to work with CS
  5. Rollback RN upgrade

@holmesworcester thoughts?

@holmesworcester
Copy link
Contributor

It sounds like we're sure that rolling back RN will work, which then gives us some time to decide when we want to do this.

Are there any options we think might be as easy as rolling back RN? If so we could gamble and try one, to try to protect the RN upgrade. If not, it seems best to rollback and then decide when we want to tackle this.

If it's helpful to ask Guardian Projects questions, we should do that! Do we have any questions that would be helpful to have answers to?

@siepra siepra moved this from Sprint to In progress in Quiet Mar 5, 2024
@siepra siepra self-assigned this Mar 5, 2024
@siepra
Copy link
Contributor

siepra commented Mar 13, 2024

I'm referring to this thread now
https://stackoverflow.com/a/60898370

readelf showed the following results:

Image

@siepra siepra moved this from In progress to Waiting for review in Quiet Mar 18, 2024
@leblowl
Copy link
Collaborator

leblowl commented Mar 21, 2024

For future reference, we can also look into this: https://stackoverflow.com/a/77490782 it might remove the need to include the Tor binary like we are doing in #2366

@leblowl leblowl moved this from Waiting for review to (Mobile) Ready for QA in Quiet Mar 21, 2024
@kingalg
Copy link
Collaborator Author

kingalg commented Mar 22, 2024

Version: 2.1.2-alpha.13

I'm not sure if this is a connected issue or something new, but I checked two Android devices and had problems with both of them.
On the first device, I managed to open the app and create a community, but after turning it off and on a few times, I was left with a white screen.
On the second device, there was a white screen from the beginning—I installed it, opened it, and saw a white screen.

Below, you have a screenshot explaining what I mean by "white screen" and logs from the second app. Let me know if you think that it still should be handled in this issue or if this is something new that "deserves" it's own github issue.
Screenshot_20240322_102148_Quiet
logs.andrid.2103.txt

@kingalg kingalg changed the title App on android crashes when the user tries to open it Missing libtor.so Mar 22, 2024
@holmesworcester
Copy link
Contributor

This blocks release for sure.

@kingalg
Copy link
Collaborator Author

kingalg commented Mar 22, 2024

As per @siepra checks, the issue with the white screen that I mentioned above deserves its own issue as the backend started and Tor bootstrapped, so it's definitely not the same issue. This is a new issue: #2381

This one will be closed as an issue with missing libtor.so that was a main problem in initial post is resolved.

@kingalg
Copy link
Collaborator Author

kingalg commented Mar 22, 2024

@holmesworcester as per my message above - the white-screen "thing" is an issue and a blocker, but it doesn't have the same origin as #2328, so I'm closing it, and the new issue is moved to another task that I put in the Sprint column.

@kingalg kingalg closed this as completed Mar 22, 2024
@kingalg kingalg moved this from (Mobile) Ready for QA to Done in Quiet Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

4 participants