deniscerri / ytdlnis

Android Video/Audio Downloader app using yt-dlp
GNU General Public License v3.0
2.93k stars 99 forks source link

[BUG] App continuously crashes after new update #512

Closed NikunjKhangwal closed 1 week ago

NikunjKhangwal commented 1 week ago

The app continuously keep crashing for me after new update

Screenshots / Video Recording https://github.com/deniscerri/ytdlnis/assets/99175083/4692aa72-7e9b-4d5c-8afd-d6b763e29f7a

Additional context Probably happens because of database upgrade

Logs FATAL EXCEPTION: main Process: com.deniscerri.ytdl, PID: 10790 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.deniscerri.ytdl/com.deniscerri.ytdl.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3780) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3947) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:106) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2325) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:210) at android.os.Looper.loop(Looper.java:299) at android.app.ActivityThread.main(ActivityThread.java:8280) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1073) Caused by: java.lang.NullPointerException at com.deniscerri.ytdl.util.NavbarUtil.getStartFragmentId(Unknown Source:74) at com.deniscerri.ytdl.MainActivity.onCreate(SourceFile:355) at android.app.Activity.performCreate(Activity.java:8163) at android.app.Activity.performCreate(Activity.java:8130) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3753) ... 12 more

tusharchopra07 commented 1 week ago

tried fresh install ?

NikunjKhangwal commented 1 week ago

Ok so download itself and the download card seem to work fine. Just the app isn't opening.

Screenshot_2024-07-02-09-43-58-216_com deniscerri ytdl

NikunjKhangwal commented 1 week ago

Same thing after restoring the backup

zaednasr commented 1 week ago

If download card itself, opens that means its not the database fault 🤔

zaednasr commented 1 week ago

I know what it is, You set the preferred home screen as the download queue

zaednasr commented 1 week ago

send me the backup json, so i can confirm something

NikunjKhangwal commented 1 week ago

I know what it is, You set the preferred home screen as the download queue

Correct, i didn't knew that's what was causing it. I mostly open the app to see the queue. Can it be fixed?

zaednasr commented 1 week ago

Yes, give me a bit of time, ill update the current release apk so u can get that. But fresh install it, just need to modify the json backup a bit. ill guide you