Skip to content

Crash on cold boot of app via labnex: URL when not on Dynamic theme #134

@Terrance

Description

@Terrance

I confirm that I have searched the issue tracker

Before opening an issue, take a few minutes to search the issue tracker (both open and closed issues) for the problem you are facing. This will reduce the need for issue triage and save time.

  • I confirm that I have searched the issue tracker

Describe the bug

Launching the app from a URL leads to a crash if the app isn't currently running. Either of the following mitigate it:

  • Opening the app from the launcher (works fine, and opening URLs after that is also fine)
  • Switching to the Dynamic theme (all of Dark, Light and System appear to lead to the crash)

To Reproduce

  1. Set theme to System (or something other than Dynamic)
  2. Stop the app (swipe out of recents / force-stop)
  3. Open labnex://gitlab.com (or any other URL, it's not path- or host-specific as far as I can tell)

Expected behavior

Relevant screen to open successfully.

Logs

Crash log (using System theme)
com.labnex.app  E  AndroidRuntime  FATAL EXCEPTION: main
com.labnex.app  E  AndroidRuntime  Process: com.labnex.app, PID: 23562
com.labnex.app  E  AndroidRuntime  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.labnex.app/com.labnex.app.activities.DeepLinksActivity}: android.view.InflateException: Binary XML file line #8 in com.labnex.app:layout/activity_deeplinks: Binary XML file line #8 in com.labnex.app:layout/activity_deeplinks: Error inflating class androidx.coordinatorlayout.widget.CoordinatorLayout
com.labnex.app  E  AndroidRuntime      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3864)
com.labnex.app  E  AndroidRuntime      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4006)
com.labnex.app  E  AndroidRuntime      at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:111)
com.labnex.app  E  AndroidRuntime      at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
com.labnex.app  E  AndroidRuntime      at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
com.labnex.app  E  AndroidRuntime      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2462)
com.labnex.app  E  AndroidRuntime      at android.os.Handler.dispatchMessage(Handler.java:106)
com.labnex.app  E  AndroidRuntime      at android.os.Looper.loopOnce(Looper.java:240)
com.labnex.app  E  AndroidRuntime      at android.os.Looper.loop(Looper.java:351)
com.labnex.app  E  AndroidRuntime      at android.app.ActivityThread.main(ActivityThread.java:8377)
com.labnex.app  E  AndroidRuntime      at java.lang.reflect.Method.invoke(Native Method)
com.labnex.app  E  AndroidRuntime      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
com.labnex.app  E  AndroidRuntime      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
com.labnex.app  E  AndroidRuntime  Caused by: android.view.InflateException: Binary XML file line #8 in com.labnex.app:layout/activity_deeplinks: Binary XML file line #8 in com.labnex.app:layout/activity_deeplinks: Error inflating class androidx.coordinatorlayout.widget.CoordinatorLayout
com.labnex.app  E  AndroidRuntime  Caused by: android.view.InflateException: Binary XML file line #8 in com.labnex.app:layout/activity_deeplinks: Error inflating class androidx.coordinatorlayout.widget.CoordinatorLayout
com.labnex.app  E  AndroidRuntime  Caused by: java.lang.reflect.InvocationTargetException
com.labnex.app  E  AndroidRuntime      at java.lang.reflect.Constructor.newInstance0(Native Method)
com.labnex.app  E  AndroidRuntime      at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
com.labnex.app  E  AndroidRuntime      at android.view.LayoutInflater.createView(LayoutInflater.java:857)
com.labnex.app  E  AndroidRuntime      at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1009)
com.labnex.app  E  AndroidRuntime      at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:964)
com.labnex.app  E  AndroidRuntime      at android.view.LayoutInflater.inflate(LayoutInflater.java:663)
com.labnex.app  E  AndroidRuntime      at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
com.labnex.app  E  AndroidRuntime      at com.labnex.app.databinding.ActivityDeeplinksBinding.inflate(ActivityDeeplinksBinding.java:98)
com.labnex.app  E  AndroidRuntime      at com.labnex.app.databinding.ActivityDeeplinksBinding.inflate(ActivityDeeplinksBinding.java:92)
com.labnex.app  E  AndroidRuntime      at com.labnex.app.activities.DeepLinksActivity.onCreate(DeepLinksActivity.java:45)
com.labnex.app  E  AndroidRuntime      at android.app.Activity.performCreate(Activity.java:8397)
com.labnex.app  E  AndroidRuntime      at android.app.Activity.performCreate(Activity.java:8370)
com.labnex.app  E  AndroidRuntime      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1403)
com.labnex.app  E  AndroidRuntime      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3837)
com.labnex.app  E  AndroidRuntime      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4006)
com.labnex.app  E  AndroidRuntime      at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:111)
com.labnex.app  E  AndroidRuntime      at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
com.labnex.app  E  AndroidRuntime      at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
com.labnex.app  E  AndroidRuntime      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2462)
com.labnex.app  E  AndroidRuntime      at android.os.Handler.dispatchMessage(Handler.java:106)
com.labnex.app  E  AndroidRuntime      at android.os.Looper.loopOnce(Looper.java:240)
com.labnex.app  E  AndroidRuntime      at android.os.Looper.loop(Looper.java:351)
com.labnex.app  E  AndroidRuntime      at android.app.ActivityThread.main(ActivityThread.java:8377)
com.labnex.app  E  AndroidRuntime      at java.lang.reflect.Method.invoke(Native Method)
com.labnex.app  E  AndroidRuntime      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
com.labnex.app  E  AndroidRuntime      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
com.labnex.app  E  AndroidRuntime  Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 13: TypedValue{t=0x2/d=0x7f040428 a=-1}, theme={InheritanceMap=[id=0x7f13000bcom.labnex.app:style/AppTheme, id=0x7f13028bcom.labnex.app:style/Theme.Material3.Dark.NoActionBar, id=0x7f130285com.labnex.app:style/Theme.Material3.Dark, id=0x7f13005ccom.labnex.app:style/Base.Theme.Material3.Dark, id=0x7f1300b5com.labnex.app:style/Base.V24.Theme.Material3.Dark, id=0x7f13008fcom.labnex.app:style/Base.V14.Theme.Material3.Dark, id=0x7f1302a3com.labnex.app:style/Theme.MaterialComponents, id=0x7f130068com.labnex.app:style/Base.Theme.MaterialComponents, id=0x7f1300aacom.labnex.app:style/Base.V21.Theme.MaterialComponents, id=0x7f130097com.labnex.app:style/Base.V14.Theme.MaterialComponents, id=0x7f130098com.labnex.app:style/Base.V14.Theme.MaterialComponents.Bridge, id=0x7f130158com.labnex.app:style/Platform.MaterialComponents, id=0x7f130269com.labnex.app:style/Theme.AppCompat, id=0x7f13004ecom.labnex.app:style/Base.Theme.AppCompat, id=0x7f1300bccom.labnex.app:style/Base.V28.Theme.AppCompat, id=0x7f1300b9com.labnex.app:style/Base.V26.Theme.AppCompat, id=0x7f1300b3com.labnex.app:style/Base.V23.Theme.AppCompat, id=0x7f1300b1com.labnex.app:style/Base.V22.Theme.AppCompat, id=0x7f1300a6com.labnex.app:style/Base.V21.Theme.AppCompat, id=0x7f1300becom.labnex.app:style/Base.V7.Theme.AppCompat, id=0x7f130156com.labnex.app:style/Platform.AppCompat, id=0x7f130161com.labnex.app:style/Platform.V25.AppCompat, id=0x103022eandroid:style/Theme.Material.NoActionBar, id=0x1030224android:style/Theme.Material, id=0x1030005android:style/Theme], Themes=[com.labnex.app:style/AppTheme, forced, com.labnex.app:style/Theme.AppCompat.Empty, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]}
com.labnex.app  E  AndroidRuntime      at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:1007)
com.labnex.app  E  AndroidRuntime      at android.content.res.TypedArray.getDrawable(TypedArray.java:991)
com.labnex.app  E  AndroidRuntime      at android.view.View.<init>(View.java:5616)
com.labnex.app  E  AndroidRuntime      at android.view.ViewGroup.<init>(ViewGroup.java:707)
com.labnex.app  E  AndroidRuntime      at android.view.ViewGroup.<init>(ViewGroup.java:703)
com.labnex.app  E  AndroidRuntime      at androidx.coordinatorlayout.widget.CoordinatorLayout.<init>(CoordinatorLayout.java:216)
com.labnex.app  E  AndroidRuntime      at androidx.coordinatorlayout.widget.CoordinatorLayout.<init>(CoordinatorLayout.java:211)
com.labnex.app  E  AndroidRuntime      ... 26 more

Versions (please complete the following information)**

  • LabNex: 7.0.0
  • Android: 13
  • GitLab: Any

GitLab instance

  • gitlab.com
  • framagit.org
  • Self-hosted instance
  • Other service (Name/URL: )

Mode of installation

  • Google Play Store
  • F-droid
  • APK
  • Built from source
  • OpenAPK
  • Other stores (Name: )

Declaration

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions