question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update to v0.20.5 crashes app instantly

See original GitHub issue

Describe your issue Hello, When updating the app to v0.20.5 and opening it it crashes instantly. The splash screen flashes for a split second but then the app is closed again. Thank you.

To Reproduce Steps to reproduce the behavior:

  1. Have data stored in app version 0.20.4 or earlier
  2. Upgrade to version 0.20.5
  3. Open the app

Expected behavior The app opens

Smartphone (please complete the following information):

  • Device: Pixel 4a
  • OS: Calyx OS based on Android 12
  • App Version: 0.20.5

Additional context

Crash stack trace
FATAL EXCEPTION: main
Process: com.easyfitness, PID: 8575
java.lang.NullPointerException: Attempt to invoke virtual method 'int com.easyfitness.DAO.record.Record.getSets()' on a null object reference
	at com.easyfitness.DAO.DatabaseHelper.copyTemplateValues(DatabaseHelper.java:401)
	at com.easyfitness.DAO.DatabaseHelper.onUpgrade(DatabaseHelper.java:217)
	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:416)
	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:340)
	at com.easyfitness.DAO.DAOBase.getReadableDatabase(DAOBase.java:24)
	at com.easyfitness.DAO.DAOProfile.getProfile(DAOProfile.java:92)
	at com.easyfitness.MainActivity.initActivity(MainActivity.java:1076)
	at com.easyfitness.MainActivity.onStart(MainActivity.java:348)
	at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1455)
	at android.app.Activity.performStart(Activity.java:8075)
	at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3660)
	at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
	at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
	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:7839)
	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:1003)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
brodeurlvcommented, Feb 22, 2022

Hi guys, thanks to the Stacktrace, I have been able to identify the issue quickly. The new release should be available today on google play. Thank you for the feedback. Let me know if you still have issues with the 0.20.5.1.

0reactions
zcattaczcommented, Feb 26, 2022

the build bot hasn’t even discover this new version yet … https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/com.easyfitness.yml

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crashing Android apps will now tell you to install an update to ...
Based on the strings, it will likely be possible to update the app in question right away from the prompt, though it's good...
Read more >
Why do my apps keep crashing on Android, How to fix it
Force stop the app​​ To do this, go to Settings -> Apps and select the app that keeps crashing. Tap on the app's...
Read more >
Android will prompt you to update apps if they're crashing
“Update the app to fix crashes,” the prompt says, according to Esper's senior technical editor Mishaal Rahman. “The app stopped working, ...
Read more >
All iOS 15 apps crash when quickly… | Apple Developer Forums
All iOS 15 apps crash when quickly restarted (iPhone) · Open any app · Close the app and quickly reopen. This will cause...
Read more >
Google app crashing after new update; here's how to fix
Launch Android Settings app · Go to Apps & notifications · Tap “See all apps” · Find and tap Google from the app...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found