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

Crash after login #1

Closed
freakshock88 opened this issue May 14, 2020 · 10 comments
Closed

Crash after login #1

freakshock88 opened this issue May 14, 2020 · 10 comments
Labels
bug Something isn't working

Comments

@freakshock88
Copy link

Hi,

The app looks amazing, and works great in demo mode!

When I want to enter my own server details however, it force closes on me.
I tried local urls and my reverse proxy URL, with and without /api added to the URL.
The reverse proxy URL is the only one that seems to be accepted, but when loading the next screen the app force closes after 1 second.

My url format is : https://grocy.mydomain.com

I'm using a OnePlus 5T with android version 9.

Any ideas? :)

@dominiczedler dominiczedler added the bug Something isn't working label May 15, 2020
@dominiczedler
Copy link
Collaborator

dominiczedler commented May 15, 2020

Hey, thanks for your compliments!
Do you have the latest grocy version 2.7 installed on your server?

The format of the url is fine, /api is appended internally. Once the login screen closes, it means that the app could reach the server and the credentials are working.
Also disabling of feature flags is currently not supported, although in our test the app didn't crash with all flags disabled.

@dominiczedler
Copy link
Collaborator

If the app even crashes with the latest server version, it would help if you send the meaningful output of the adb logcat command after the crash / force close, because we couldn't reproduce it.
Ask if you need help with that :)

@freakshock88
Copy link
Author

Thanks for your response. I do have the latest server version (running in docker).
I also tried using a default config, with no feature flags changed, but the app still crashes.
I sent you a logcat via email. Thanks!

dominiczedler added a commit that referenced this issue May 15, 2020
dominiczedler added a commit that referenced this issue May 15, 2020
@patzly
Copy link
Owner

patzly commented May 15, 2020

I just released a new version with the possible fixes from @MrJohnZoidberg in the Play Store, let us know if it works :)

@freakshock88
Copy link
Author

Unfortunately, it's not fixed after the update from the play store. I also tried another android device (a galaxy s4 tablet) and generating a new Grocy API key. Same issue. If you want another logcat let me know.

@patzly
Copy link
Owner

patzly commented May 16, 2020

That's weird...
In version 0.9.3 I've enabled the debug logs for the first displayed fragment, in this case it's the stock overview where the crash apparently happens.
Can you send me a new logcat of the crash so I can take a look into that?

@freakshock88
Copy link
Author

I see the new debug lines in the logcat indeed, I've sent them via email.

dominiczedler added a commit that referenced this issue May 16, 2020
@patzly
Copy link
Owner

patzly commented May 16, 2020

Another day, another version ;)
Please let us know if v1.0.0 works!

@freakshock88
Copy link
Author

freakshock88 commented May 16, 2020

Well, the problem seems to have been on my side..
It did not work, even on version 1.0.

I then noticed I suddenly could not open the products page of the webUI (502 Bad Request).
I then deleted my DB and it worked again, so did you app.. Whoops!
I think I might have corrupted the Grocy DB somehow.

Thanks for all your effort though!

@patzly
Copy link
Owner

patzly commented May 16, 2020

That's nice to hear! Enjoy :)

@patzly patzly closed this as completed May 16, 2020
@patzly patzly changed the title App force closes after entering server URL and API key Crash after login May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants