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 While Scanning #282

Open
BabyOilJohnson opened this issue Dec 27, 2024 · 7 comments
Open

Crash While Scanning #282

BabyOilJohnson opened this issue Dec 27, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@BabyOilJohnson
Copy link

BabyOilJohnson commented Dec 27, 2024

Describe the bug
The app stops working when you try to use the barcode feature. It stops when the product data is being retrieved (the loading circle appears).
This happens about 5 out of 10 times.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Edit item
  2. Click on Barcode Scanner icon
  3. Scan the code
  4. Loading circle appears
  5. Before the product data appears
  6. Turn-off the internet (make sure the app showns no internet connection)
  7. Then, turn on the internet (loading circle appears)
  8. See error

Expected behavior
The app should be able to scan and retrieve data without crashing.

Screenshots
I can provide if needed.

Smartphone (please complete the following information):

  • Device: [Samsung A30]
  • OS: [Android 11]
  • Browser [Cromite]
  • Version [2.5.1]

Edit: Updated the Reproduce step.

@BabyOilJohnson BabyOilJohnson added the bug Something isn't working label Dec 27, 2024
@DZAladan
Copy link

I confirm the presence of this bug.
More specifically, the app appears to crash when the same product is scanned twice.

@lorenzovngl
Copy link
Owner

Thank you for reporting this bug. I will try to fix it as soon as possible.
It would be very helpful if you could provide some screenshots or a video to help me better understand what happened.
I hope you'll still be able to use the feature in the meantime.

@DZAladan
Copy link

DZAladan commented Dec 30, 2024

I have no video, but I did another test.

I was wrong: it's not when the same product is scanned twice, but when there are internet connection issues.

In fact, I tried scanning a product with both WiFi and data turned off, and the app crashed immediately.

I'm on Android 11.

@BabyOilJohnson
Copy link
Author

I have found out what caused the crash. When it first happened, I thought it was related to scanning, but after some test, I found out that it happens when the internet connection is unstable.
I have also updated the steps to reproduce the problem.

Screenrecord

8mb.video-C3Y-yKceOxoo.mp4

@nascentt
Copy link

Some apps repeatedly scan and thencrash. Definitely not products already scanned. I thought it was because of the barcode sizes but I get it on bigger barcodes too.
20250125_161511_1.jpg

@DZAladan
Copy link

Some apps repeatedly scan and thencrash. Definitely not products already scanned. I thought it was because of the barcode sizes but I get it on bigger barcodes too. 20250125_161511_1.jpg

It's very likely due to a bad internet connection.
Try scanning a barcode with WiFi and data turned off, it should crash every time.

Still a bug, but at least we know how to reproduce it.

@nascentt
Copy link

It's very likely due to a bad internet connection.
Try scanning a barcode with WiFi and data turned off, it should crash every time.

Still a bug, but at least we know how to reproduce it.

Definitely not the case. WiFi 6e with fiberoptic. Scanned 60 other products without issue. Repeatedly crashes on the same barcode at different times.

The app just freaks out repratedly trying to scan multiple times a second then the app just crashes.

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

4 participants