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 app when log file is big #185

Open
omidxs opened this issue Dec 30, 2022 · 5 comments
Open

Crash app when log file is big #185

omidxs opened this issue Dec 30, 2022 · 5 comments
Labels

Comments

@omidxs
Copy link

omidxs commented Dec 30, 2022

Hi
I used a device to get data from an object. I send data with BLE and receive them with “nRF Connect”. I need to process data with MATLAB so by using “nRF logger” I save the log file (.txt) and extract data from it. When I want to save small data (like 30 minutes measurements) it works properly. But if I want to save a big file (8-hour measurements), the app crashes. I think this app can’t create large-size files.
The .txt file of 30 minutes measurements is about 12 MB.

Hint: My phone’s CPU is S778G and has 8G RAM and storage are enough.

I think my problem is same with #83 :
#83

**Versions **

  • Android version: [12]
  • Phone model [xiaomi 11 lite 5g ne]
  • nRF logger Version [1.9.1]
  • nRF connect Version [4.26.0]
@philips77 philips77 added the bug label Jan 9, 2023
@fproko
Copy link

fproko commented Apr 6, 2023

I have the same problem.

  • Android version: [11]
  • nRF connect Version [4.26.1]

@fproko
Copy link

fproko commented Apr 8, 2023

Where is the app's database? I have routed phone.

@vhakulinen
Copy link

I had some trouble exporting large (~50mb) log file on my phone. No matter where I tried t he export (the list view, or from the log view), the exported file ended up being empty. But when exporting from the log view, the screen would go black for a while and the app would soon restart.

What ended up working, was locking the screen once the screen went black. Maybe the system was killing the app because it was not responding, but the lock screen altered this default functionality.

@Mayitzin
Copy link

Mayitzin commented Dec 16, 2024

What ended up working, was locking the screen once the screen went black. Maybe the system was killing the app because it was not responding, but the lock screen altered this default functionality.

I find it incredibly simple, but this also worked for me.

  1. I saved all files I could the normal way.
  2. When a file could not be saved, I just start the saving process like normal, and lock my phone when the screen goes black.
  3. Seconds later I unlock the phone, and it notifies me the file has been saved.
  4. I check the downloads folder (they're saved there), and the entire file is saved.

I don't know what the log file size limit is, but my problematic files are around 40 MB each.

Other files around 27 MB were saved without problems.

@philips77
Copy link
Member

The latest update (4.29.1) MIGHT improve this a bit by moving saving to another thread, so hopefully the screen won't get black... Please try.

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

5 participants