Tusky icon indicating copy to clipboard operation
Tusky copied to clipboard

Crash when toot contains quote toot by same author

Open tomayac opened this issue 1 year ago • 5 comments

Detailed description

Hard crash when reaching a toot with a quote toot of the same author.

Steps to reproduce the problem

  • Follow https://hachyderm.io/@jyasskin.
  • Open their profile and scroll until you see https://hachyderm.io/@jyasskin/113303505160169279 which contains a quoted toot pointing at https://hachyderm.io/@jyasskin/113303493113946716.
  • Observe the crash on
    Tusky 26.2
    
    Device:
    
    Google Pixel 8 Pro
    Android version: 15
    SDK version: 35
    
    Account:
    
    @[email protected]
    Version: 4.2.13
    

Debug information

Tusky 26.2

Device:

Google Pixel 8 Pro Android version: 15 SDK version: 35

Account:

@[email protected] Version: 4.2.13

tomayac avatar Oct 14 '24 05:10 tomayac

I can reproduce a crash here, but not because it is a self quote, rather because the link preview card has a very weird image attached.

@tomayac do you have the "show link previews in timelines" setting turned on?

connyduck avatar Oct 15 '24 19:10 connyduck

Oh, wait. Found the "Show link previews in timelines" setting. It was on. If I turn it off, the crash doesn't occur anymore. So this is definitely the culprit. Let me know if or how I can help debug this.

tomayac avatar Oct 15 '24 20:10 tomayac

That confirms that the crash I can reproduce is the same as yours! Thanks for reporting, will fix.

connyduck avatar Oct 16 '24 06:10 connyduck

Thank you for working on Tusky <3! So the problem is essentially this 661 x 2 image.

c35b698b606557ec

tomayac avatar Oct 16 '24 06:10 tomayac

Well strictly speaking the problem is that Tusky doesn't account for weird aspect ratios when loading the preview card image 😅

connyduck avatar Oct 16 '24 10:10 connyduck