Trying to open the menu of any post crashes the app. As soon as I click the button with three vertical dots, Megalodon crashes.
To reproduce
Steps to reproduce the behavior:
Go to one post on the timeline or on detail view or profile view
Click on the button with three vertical dots
App crashes
Does this happen in the official app?
No (with official Mastodon app)
Screenshots and screen recordings
If applicable, add screenshots (and screen recordings, if possible) to help explain your problem.
Version
Megalodon version: 2.1.6+fork.110
Crash log
2.1.6+fork.110 (110)
2024-02-19T05:43:53.826Z
java.lang.OutOfMemoryError: Failed to allocate a 4294967312 byte allocation with 12582912 free bytes and 506MB until OOM, max allowed footprint 18203720, growth limit 536870912
at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:69)
at java.lang.StringBuilder.<init>(StringBuilder.java:102)
at org.joinmastodon.android.ui.displayitems.HeaderStatusDisplayItem$Holder$$ExternalSyntheticBackport1.m(SourceFile:0)
at org.joinmastodon.android.ui.displayitems.HeaderStatusDisplayItem$Holder.workaroundChangingMenuItemWidths(SourceFile:588)
at org.joinmastodon.android.ui.displayitems.HeaderStatusDisplayItem$Holder.updateOptionsMenu(SourceFile:553)
at org.joinmastodon.android.ui.displayitems.HeaderStatusDisplayItem$Holder.onMoreClick(SourceFile:449)
at org.joinmastodon.android.ui.displayitems.HeaderStatusDisplayItem$Holder.$r8$lambda$NyKIWvRiEvNYxaDH7PuPKoatVr4(SourceFile:0)
at org.joinmastodon.android.ui.displayitems.HeaderStatusDisplayItem$Holder$$ExternalSyntheticLambda3.onClick(SourceFile:0)
at android.view.View.performClick(View.java:6291)
at android.view.View$PerformClick.run(View.java:24931)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Describe the bug
Trying to open the menu of any post crashes the app. As soon as I click the button with three vertical dots, Megalodon crashes.
To reproduce
Steps to reproduce the behavior:
Does this happen in the official app?
Screenshots and screen recordings
If applicable, add screenshots (and screen recordings, if possible) to help explain your problem.
Version
Megalodon version: 2.1.6+fork.110
Crash log