Skip to content

[Bug]: Crash during hand tool movements #837

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

Open
1 task done
chriscavalluzzi opened this issue Apr 12, 2025 · 3 comments
Open
1 task done

[Bug]: Crash during hand tool movements #837

chriscavalluzzi opened this issue Apr 12, 2025 · 3 comments
Assignees
Labels
bug Something isn't working confirmed

Comments

@chriscavalluzzi
Copy link
Contributor

chriscavalluzzi commented Apr 12, 2025

What happened?

When moving around the canvas with v2.3.0-beta.4 on Android, the app will frequently crash.

Steps to reproduce:
⚠️ Warning: Reproducing this on an Android emulator on my PC caused my entire PC to crash!

  1. Open a document
  2. Select the hand tool
  3. Perform many movements very quickly
move-crash.mp4

This is just the fastest way to trigger the crash. When working normally, the crash becomes easier to trigger over time, and eventually it will be triggered by a single move or scale. This makes me feel like it might be related to a memory leak.

I found that short-circuiting this function (inserting a return at line 653) prevents the crash, so I believe the crash is related to baking or something that happens as a result of baking.

Future<void> bake(DocumentLoaded blocState,

Version

v2.3.0-beta.4

Platform

Android

Relevant log output

Both flutter and adb logcat don't seem to produce any logs about the crash :(

Code of Conduct

  • I agree to follow this project's Code of Conduct
@chriscavalluzzi chriscavalluzzi added the bug Something isn't working label Apr 12, 2025
@github-project-automation github-project-automation bot moved this to 📕 Todo in Butterfly Apr 12, 2025
@CodeDoctorDE
Copy link
Member

Hmm thats not good, if you found a solution feel free to create a pr.
If you are struggeling, feel free to answer and i will try to find the cause

@CodeDoctorDE
Copy link
Member

Bug confirmed, I found the fix that fixed it on the develop branch but I don't know if this really fixes the problem in the released 2.4.0-beta.4 because i just changed it to the previous behavior.

Bake isn't run everytime now, but we need to see if this really fixes the problem

@chriscavalluzzi
Copy link
Contributor Author

Thank you for fixing that! That returned develop to the beta 4 behavior, so I was still able to reproduce the crash on rc0, but it was definitely better than on develop previously.

I think I've found a way to make the issue disappear completely, so I'll be opening a PR shortly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed
Projects
Status: 📕 Todo
Development

No branches or pull requests

2 participants