You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file I found that triggered the crash is the .json file produced by the "Export Notes" function of SimpleMobileTools Notes. (Yes, I tried opening it as a note rather than importing it into Fossify Notes.) The file was about 430000 bytes, without a single newline. Unfortunately for privacy reasons I cannot provide that file.
If you have Termux, you can generate such a file with a very long line, enough to reproduce a crash or hang:
for((i=1; i<=4000; i++));doprintf'%100d'$((i *100));done| sed 's/ /-/g'>very-long-line.txt
for((i=1; i<=4000; i++));doprintf'%99d\n'$((i *100-1));done| sed 's/ /-/g'>line-wrapped.txt
In Fossify Notes, bring up the menu (the ellipsis icon in the upper right corner of the screen) → "Open file" function.
Select and open the "very-long-line.txt" just generated within Termux.
Select "Update the file itself at updating the note". (If you don't do this, you will be very difficult to escape the crash once reproduced.)
"New note type: Text Note", then tap "OK".
You should experience things slowing down by now.
Expected behavior
No crash at least. I can tolerate Fossify Notes not showing the whole line or not allowing to edit the file, but there should be no crash.
Actual behavior
Fossify Notes slows down significantly. After trying to bring up "Settings" or "About" from the menu, the app crashes.
Note that if you opened the "line-wrapped.txt" file instead of "very-long-line.txt", there would be no significant slowdown.
(Since Fossify Notes keeps the opened file when the app restarts, you might experience repeated hangs or crashes. To escape from that, delete the "very-long-line.txt" from within Termux.)
Screenshots/Screen recordings
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
Actually, the file doesn't need to have no lines. Large multiline files (I've tested a 390 kB file with many lines on Android 14) also crash the app, especially if you already have some notes in the app.
Checklist
Affected app version
1.1.0
Affected Android/Custom ROM version
Android 10
Affected device model
Samsung Galaxy Note 9
How did you install the app?
F-Droid / IzzyOnDroid
Steps to reproduce the bug
The file I found that triggered the crash is the .json file produced by the "Export Notes" function of SimpleMobileTools Notes. (Yes, I tried opening it as a note rather than importing it into Fossify Notes.) The file was about 430000 bytes, without a single newline. Unfortunately for privacy reasons I cannot provide that file.
If you have Termux, you can generate such a file with a very long line, enough to reproduce a crash or hang:
Expected behavior
No crash at least. I can tolerate Fossify Notes not showing the whole line or not allowing to edit the file, but there should be no crash.
Actual behavior
Fossify Notes slows down significantly. After trying to bring up "Settings" or "About" from the menu, the app crashes.
Note that if you opened the "line-wrapped.txt" file instead of "very-long-line.txt", there would be no significant slowdown.
(Since Fossify Notes keeps the opened file when the app restarts, you might experience repeated hangs or crashes. To escape from that, delete the "very-long-line.txt" from within Termux.)
Screenshots/Screen recordings
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: