sk22 / megalodon

Pink modification of the official Mastodon for Android app
https://sk22.github.io/megalodon
GNU General Public License v3.0
551 stars 32 forks source link

Trying to open the menu of any post crashes the app. #982

Open steko opened 9 months ago

steko commented 9 months ago

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:

  1. Go to one post on the timeline or on detail view or profile view
  2. Click on the button with three vertical dots
  3. 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)