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 when buying products #690

Open
VNRARA opened this issue May 9, 2023 · 8 comments
Open

Crash when buying products #690

VNRARA opened this issue May 9, 2023 · 8 comments
Labels
missing info More information is needed to fix this issue

Comments

@VNRARA
Copy link

VNRARA commented May 9, 2023

--------- beginning of main
05-09 21:31:14.989 18420 18420 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
05-09 21:31:14.989 18420 18420 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
05-09 21:31:15.036 18420 18420 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
05-09 21:31:15.036 18420 18420 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
05-09 21:31:15.042 18420 18420 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
05-09 21:31:15.042 18420 18420 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
05-09 21:31:17.774 18420 18420 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
05-09 21:31:17.774 18420 18420 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

Info:
S21 newest update installed

Buy new item after creating it via the buy menu. But when the dialog popup shows that its being actually bought. Cancel and edit the info to save. Then actually buy it and you'll get a crash.

Im not 100% sure it's like this.

@dominiczedler dominiczedler added the missing info More information is needed to fix this issue label May 12, 2023
@dominiczedler
Copy link
Collaborator

Sorry, I can't reproduce it with this info, the log also doesn't contain relevant info (these lines appear randomly sometimes because of something in our app)... Can you reproduce it with the grocy demo instance?

@ezacpk
Copy link

ezacpk commented Oct 2, 2023

Same here after updating to Server Version 4.0.3
App Version is 3.3.2
Everything was working with 4.0.2

Happens with every item trying to purchase. Error occurs instantly after selecting an item/product

10-02 20:26:28.745 21966 21966 E ViewUtil: icon animation requires AnimVectorDrawable
10-02 20:26:29.880 21966 21966 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-02 20:26:29.880 21966 21966 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-02 20:26:29.888 21966 21966 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-02 20:26:29.888 21966 21966 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-02 20:26:29.895 21966 21966 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-02 20:26:29.895 21966 21966 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-02 20:26:33.452 21966 22823 E Volley : [15070] BasicNetwork.performRequest: Unexpected response code 400 for https://grocy.pkhub.de/api/stock/products/114
10-02 20:26:33.495 21966 21966 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-02 20:26:33.495 21966 21966 E SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

@dominiczedler
Copy link
Collaborator

@ezacpk #776, #774, are you sure you use the latest version? In 3.3.2 the error should be gone...

@packman2008
Copy link

I'm also seeing this with app version 3.3.2 and Grocy version 4.0.3. I've just scanned my shopping in and had about 4 crashes out of 40 items added.

@dominiczedler
Copy link
Collaborator

@packman2008 Can you reproduce it with a specific product and could you give me the product options and purchase field inputs then?

@ezacpk
Copy link

ezacpk commented Oct 9, 2023

Confirmed that its the newest server and app version.
Weirdly the bug just went away after a day.
If I try to reproduce it with the product it hastn worked, it just works now.
After it failed in the app i used the web version maybe has something to do with that.

If it happens again I will post the infos you asked for.

@packman2008
Copy link

packman2008 commented Oct 9, 2023

I'll try. It seemed to be more about the number of products scanned though. I scanned the first 25-30 products without a crash and all the crashes happened last 10-15 scans.

Edit: It doesn't seem to be related to a specific product. The product scans ok when I restart the app

@packman2008
Copy link

I'm still getting crashes on scanning purchases. I'm pretty sure it's not specific barcodes that cause it. It happens mostly after I've scanned a lot of items. From this morning's shopping I successfully scanned about 40 items before it then crashed on three consecutive (different) items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing info More information is needed to fix this issue
Projects
None yet
Development

No branches or pull requests

4 participants