labnex/LabNex
2
6
Fork
You've already forked LabNex
0

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

Closed
opened 2026年02月07日 23:42:26 +01:00 by Terrance · 0 comments
Terrance commented 2026年02月07日 23:42:26 +01:00 (Migrated from github.com)
Copy link

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

### 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. - [x] 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 <details> <summary>Crash log (using System theme)</summary> ``` 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 ``` </details> ### Versions (please complete the following information)** - LabNex: 7.0.0 - Android: 13 - GitLab: Any ### GitLab instance - [x] gitlab.com - [ ] framagit.org - [x] Self-hosted instance - [ ] Other service (Name/URL: ) ### Mode of installation - [ ] Google Play Store - [x] F-droid - [ ] APK - [ ] Built from source - [ ] OpenAPK - [ ] Other stores (Name: ) ### Declaration - [x] I have carefully read and agree to follow the [contribution guidelines](https://github.com/labnex/LabNex/wiki/Contributing).
Sign in to join this conversation.
No Branch/Tag specified
main
release-8.0
release-7.0
release-6.0
release-5.0
release-4.0
release-3.0
release-2.0
release-1.0
8.0.1
8.0.0
8.0.0-rc2
8.0.0-rc1
7.0.0
6.0.1
6.0.0
5.0.0
4.0.0
3.0.0
2.0.0
1.0.2
1.0.1
Labels
Clear labels
⚔️ Wontfix
This will not be worked on
⚙️ CI
Update
⛏️ Breaking
Fixed
Duplicate
This issue or pull request already exists
Invalid
This doesn't seem right
Question
❤️ Support
➡️ Frontport
➡️ Needs-frontport
🌐 Translation
🎉 Feature
🎯 Enhancement
🏗️ Build
🐛 Bug
Something isn't working
👋 Good-first-issue
💀 Deprecation
💡 Suggestion
💬 Discussion
💭 Brainstorming
💰 Sponsored
A feature which is sponsored by someone
💻 UI/UX
📄 Documentation
Improvements or additions to documentation
📈 Performance
📌 Priority-critical
📌 Priority-high
📍 Priority-low
📍 Priority-medium
📡 Needs-feedback
📱 F-droid
📸 Release
🔒 Security
🔙 Backport
Bugfix ported to a release branch for point release
🔙 Has-backport
🔙 Needs-backport
🔙 Regression
🔭 Cannot-reproduce
🗄️ Repository
🗒️ Changelog
🗓️ Summary
🤾 Google-play
🥑 Ready
🧪 Testing
🧺 Cleanup
🧺 Needs-cleanup
🧾 Confirmed
🧾 To-confirm
🩹 External-dependecy
🪒 Refactor
🪜 Upstream
🙇‍♂️ Help-wanted
Extra attention is needed
🚀 Improvement
🚨 Investigate
🛡️ Blocked
🛰️ API-dependency
🟦 Website
No labels
⚔️ Wontfix
⚙️ CI
Update
⛏️ Breaking
Fixed
Duplicate
Invalid
Question
❤️ Support
➡️ Frontport
➡️ Needs-frontport
🌐 Translation
🎉 Feature
🎯 Enhancement
🏗️ Build
🐛 Bug
👋 Good-first-issue
💀 Deprecation
💡 Suggestion
💬 Discussion
💭 Brainstorming
💰 Sponsored
💻 UI/UX
📄 Documentation
📈 Performance
📌 Priority-critical
📌 Priority-high
📍 Priority-low
📍 Priority-medium
📡 Needs-feedback
📱 F-droid
📸 Release
🔒 Security
🔙 Backport
🔙 Has-backport
🔙 Needs-backport
🔙 Regression
🔭 Cannot-reproduce
🗄️ Repository
🗒️ Changelog
🗓️ Summary
🤾 Google-play
🥑 Ready
🧪 Testing
🧺 Cleanup
🧺 Needs-cleanup
🧾 Confirmed
🧾 To-confirm
🩹 External-dependecy
🪒 Refactor
🪜 Upstream
🙇‍♂️ Help-wanted
🚀 Improvement
🚨 Investigate
🛡️ Blocked
🛰️ API-dependency
🟦 Website
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
labnex/LabNex#134
Reference in a new issue
labnex/LabNex
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?