Skip to content

[Bug]: Butterfly permanently freezes after inserting a few strokes in documents that have many pages #985

@rodrigo-morales-1

Description

@rodrigo-morales-1

What happened?

When editing a document with many pages, Butterfly freezes after making a few edits. If I press in any part of the interface, nothing happens, so I need to close the app and open it again. After opening the document, my changes were saved, but it is annoying to be interrupted while working on a note.

It seems this might be related with how much memory Butterfly uses in documents with many pages. I have sometimes checked memory usage in "Device care" in Android settings while using Butterfly and Butterfly sometimes shows 2GB of memory. I own a Galaxy Tab S6 Lite with 4GB of RAM.

The video below show the aforementioned behavior. I try to use the built-in screen recorder of that tablet, but it crashed while using Butterfly, it seems that both applications: the screen recorder and Butterfly uses too much memory, so I recorded the video from another device. Let me know if you can play the video.

The video below shows that Butterfly permanently freezes after inserting a few strokes in a document that has many pages. The sample content that was inserted was "1 + 2 + 3 ... + 18 + 19 +" (here's where Butterfly froze). I then opened "Device care" in Android settings to check the memory usage. It showed 2GB of free memory. It seems this happened because Butterfly was closed, so there was plenty of free memory, so at the end of the video, when I switch back to Butterfly, it opens the document as if I had opened from the Home menu, instead of showing the page where I recently added the content. For me, this is annoying because it disrupts note taking, since I need to switch back to the page and to the position of the page where I was inserting content.

VID_20251125_225325-no-audio-scale-brightness-ffmpeg.webm

The video below shows that Butterfly doesn't freeze after inserting many strokes in a new document. The sample content that was inserted was "1 + 2 + 3 + .... + 100". Butterfly didn't freeze while doing this. There's no need to watch the entire video. I just wanted to show that the same version of Butterfly doesn't freeze when inserting many strokes in a new document.

VID_20251125_225505-noaudio-scale-480-brightness-ffmpeg.webm

I'm willing to devote some time to collect and share some logs to find the root cause of this issue. Let me know if you need them.

Version

Black Hairstreak 2.4.1

Platform

Android

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

📕 Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions