Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to v0.20.5 crashes app instantly #252

Closed
chaptergy opened this issue Feb 21, 2022 · 8 comments
Closed

Update to v0.20.5 crashes app instantly #252

chaptergy opened this issue Feb 21, 2022 · 8 comments
Assignees
Labels

Comments

@chaptergy
Copy link
Contributor

chaptergy commented Feb 21, 2022

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)
@chaptergy chaptergy changed the title v0.20.5 crashes on start Update to v0.20.5 crashes app instantly Feb 21, 2022
@zcattacz
Copy link

zcattacz commented Feb 21, 2022

Same instant crash here on Android 9, F-Droid Build after upgrade from previous version.
It's impossible to downgrade, all data is trapped in there.

@brodeurlv
Copy link
Owner

Thank you for the feedback and the stack trace. I will fix this asap.

@brodeurlv
Copy link
Owner

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.

@brodeurlv brodeurlv self-assigned this Feb 22, 2022
@brodeurlv brodeurlv added the bug label Feb 22, 2022
@themightyoarfish
Copy link

When will this land in F-Droid? Same problem and F-Droid fails downgrading, my phone also says "App not installed" when trying to install the APK manually.

@themightyoarfish
Copy link

Which files do i need to save to be able to restore after i uninstall manually?

@themightyoarfish
Copy link

I noticed the export unfortunately does not contain the programs, that might be a useful addition.

@brodeurlv
Copy link
Owner

The program export has been added in the 0.20.5.
The crash is fixed in the 0.20.5.1.
It is available on the Google play. For F Droid, it is supposed to be automatic. I don't manage this.
Best regards,

Charles.

@zcattacz
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants