LinkHub icon indicating copy to clipboard operation
LinkHub copied to clipboard

v 1.6.5 on Android crashes upon opening

Open junaidd09 opened this issue 2 months ago • 17 comments

Describe the bug When I try to open the app, it crashes. The app doesn't open at all.

To Reproduce Steps to reproduce the behavior:

  1. Click on app.
  2. App crashes and gives an error.

Expected behavior The app is supposed to open and give the linkhub main page to view and add new links.

Smartphone (please complete the following information):

  • Device: Google Pixel 7
  • OS: Android
  • Version: 16

Additional context The problem started when I updated the app from the previous version. And since I don't have a backup of my links, I'm concerned that that I'll lose them forever if the app doesn't work again.

junaidd09 avatar Oct 28 '25 05:10 junaidd09

Similar here. Android 13 Fairphone 3 App v1.6.5 (1.6.4 worked)

uli-on avatar Oct 28 '25 15:10 uli-on

Here is what LogFox caught:

Process: com.amrdeveloper.linkhub, PID: 27571
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.amrdeveloper.linkhub/com.amrdeveloper.linkhub.ui.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3644)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3781)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:138)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2306)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7918)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
	at com.amrdeveloper.linkhub.ui.MainActivity.onCreate(SourceFile:203)
	at android.app.Activity.performCreate(Activity.java:8342)
	at android.app.Activity.performCreate(Activity.java:8321)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3625)
	... 12 more```

uli-on avatar Oct 28 '25 15:10 uli-on

Thank you for providing the crash log. I reverted #85 and created a new release, please try it

AmrDeveloper avatar Oct 28 '25 16:10 AmrDeveloper

That's an .aab-file, can't handle it, sorry.

uli-on avatar Oct 28 '25 16:10 uli-on

Sorry, forgot to upload the apk I uploaded it now

AmrDeveloper avatar Oct 28 '25 16:10 AmrDeveloper

Can not be installed, conflict with an existing package. 🥺

uli-on avatar Oct 28 '25 16:10 uli-on

Updated, but still facing the same issue. The app refuses to launch. It continues to crash upon launch.

junaidd09 avatar Oct 28 '25 20:10 junaidd09

This is weird, because I reverted it to 1.6.4, can you try fresh install?

AmrDeveloper avatar Oct 28 '25 20:10 AmrDeveloper

This is weird, because I reverted it to 1.6.4, can you try fresh install?

This us a reply to whom?

uli-on avatar Oct 28 '25 20:10 uli-on

This is weird, because I reverted it to 1.6.4, can you try fresh install?

This us a reply to whom?

It was to @junaidd09 about refusing to launch after updated, I will perform test on different devices too

AmrDeveloper avatar Oct 28 '25 20:10 AmrDeveloper

This is weird, because I reverted it to 1.6.4, can you try fresh install?

This us a reply to whom?

It was to @junaidd09 about refusing to launch after updated, I will perform test on different devices too

I performed a fresh install of v1 6.5 and it still crashes on launch, but when I installed v1.6.4, it works as expected. No errors on v1.6.4.

junaidd09 avatar Oct 28 '25 20:10 junaidd09

@junaidd09 Thank you for confirming I will try to reproduce it and fix it

AmrDeveloper avatar Oct 28 '25 20:10 AmrDeveloper

@junaidd09 Thank you for confirming I will try to reproduce it and fix it

Thank you for the prompt response.

And I think you should remove v1 6.5 for now, till this issue is fixed, so more people aren't affected by this update. Just my two cents on the issue.

junaidd09 avatar Oct 28 '25 21:10 junaidd09

Yes, make sense, thank you for suggesting

AmrDeveloper avatar Oct 28 '25 21:10 AmrDeveloper

Yes, make sense, thank you for suggesting

You're doing an amazing service to us non-coding people by building this app, and I want to thank you for your contribution.

junaidd09 avatar Oct 28 '25 21:10 junaidd09

I performed a fresh install of v1 6.5

Wait, sorry, I mean to install 1.6.6, not 1.6.5

https://github.com/AmrDeveloper/LinkHub/releases/tag/1.6.6

AmrDeveloper avatar Oct 28 '25 21:10 AmrDeveloper

For my installation, this seems fixed. Thank you very much! 🙏

uli-on avatar Nov 02 '25 15:11 uli-on