-
Notifications
You must be signed in to change notification settings - Fork 162
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
Crash while typing string in search [BUG] #1258
Comments
I can search for "Vitor" successfully |
I could not reproduce this. Are you in the latest version 0.94.3? Can you provide a crash report? |
yes.
How do I do this? |
You you are using graphene os theres a view logs button inside the app info screen. |
android 13 . I'll check shortly |
Of course now that I try to recreate the bug on a new day, I cannot recreate. |
@alltheseas: Other seaches seem ok, "sebastix" is evil ... |
I can confirm the crash on searching "seb". Google play, pixel 7, 94.3 Having a look now. |
Reproducible only after a "cold start" of amethyst (after using force close) and quickly navigating to search bar. Other search queries than "seb" do not reproduce the issue. Must be something in the search results of "seb"?
|
Unable to reproduce on emulator but pretty reproducible with on-device debugging. |
Must be some image with wrong dimensions in the event |
Finally found the note that is causing the crash when it appears in search results: nevent1qqszq5cm60nzccwtnww28jfnh53cg0ld8v8m53xwtyuvlzgnwdqxf5cpzamhxue69uhhyetvv9ujuurjd9kkzmpwdejhgtczypcz7s0nvjc98pmrhpy39r4wh0sywmqynes8s3386v57p4ehnvvl6qcyqqqqgfcw979qw Contains massive data:image/jpeg;base64. I guess search results trying to show the text content rather than the image? |
From looking at the base64 image, it seems Amethyst crashes when trying to render the base64 image(it is really really large). It is not just limited to Amethyst. Even Njump can't render it. |
I haven't had time to finish this but it looks like the NoteView that is in use cannot handle base64 images but RichTextViewer can? I'll get back to it shortly |
Got it. |
Same behavior when I attempt to search for "Dawn" |
There is a fix. It is waiting for review, merge and release. |
Understood. Perhaps worth testing the proposed solution with another search term that leads to a crash. |
Yes, good idea but I cannot reproduce the crash using "dawn". It can depend on your relays and the users you follow. |
Noted. I will try to reproduce when the fix is merged. |
The debug build is avilable here: Feel free to test the issue. Please login with your nsec to recreate the search behaviour. |
Using above debug APK searching for "sebastix", "dawn" I did not crash. Thanks for the fix. |
Describe the bug
Search crash occurs before I can type in a full query
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Do not crash while I am typing search term.
Video and Screenshots
**Device (please complete the following information):
DC-01
20241220.1638.user
0.94.3
Bounty (in Bitcoin sats) offered for a solution
The size of the bounty is proportional to how much this matters to you. If no bounty is offered,
not even a small one, this bug will not be worked on because it doesn't matter to you. We prioritize
bug fixing to issues that have bounties, even small ones.
The text was updated successfully, but these errors were encountered: