New image attachment system often fails #2401
Replies: 18 comments 2 replies
-
Orientation changes will likely break things. What happens when you change orientation is that dialogs will get closed or closed and re-created without any relevant callbacks set. Working around this is non-trivial. |
Beta Was this translation helpful? Give feedback.
-
Something seems to have changed recently. Stitching between the front and back cameras doesn't necessarily fall now, and it has generally been more stable. Sometimes attachments still fail, but about 1 out of 3 almost always works. |
Beta Was this translation helpful? Give feedback.
-
If you are able to share a log with me that would be useful |
Beta Was this translation helpful? Give feedback.
-
Here I have
|
Beta Was this translation helpful? Give feedback.
-
What did you observe on device when these logs were generated? Did the process just fail silently? Was there a crash? |
Beta Was this translation helpful? Give feedback.
-
There is no crash, and the issue is not happening 100% of the time. It works like this:
There is no crash or error report. Unlike the OP-post, the remaining issue is not a blocker. It's merely annoying. And it does not seem to be related to the orientation or back-front camera switching, because a gallery has nothing like an orientation. |
Beta Was this translation helpful? Give feedback.
-
Can you check if the image was actually copied to your notebook. By default to a .res or _res directory next to the file you tried to attach to |
Beta Was this translation helpful? Give feedback.
-
It's not copied and the directory is not created. |
Beta Was this translation helpful? Give feedback.
-
The file is actually there when I run ls:
|
Beta Was this translation helpful? Give feedback.
-
Attachment from gallery also fails. |
Beta Was this translation helpful? Give feedback.
-
So, it's impossible to bisect this stuff, because some idiots on jitpack are removing older jar files. |
Beta Was this translation helpful? Give feedback.
-
The diff between a20ea28~1 a20ea28 is fucking 2334 lines. This is criminally insane. How do you expect anyone to debug this pile of junk which deals with at least 15 different issues at a time? |
Beta Was this translation helpful? Give feedback.
-
If you think this is bad, I invite you to look at the internals of Android's Textview :) I am continuing to look into this, FYI. |
Beta Was this translation helpful? Give feedback.
-
I compiled
No quality is expected, I just teared off the code which required missing deps, but attaching images works flawlessly with this version. |
Beta Was this translation helpful? Give feedback.
-
I have the code in a repo: https://gitlab.com/markor3/markor/-/tree/debug_camera?ref_type=heads If you need an older commit for comparison. It builds in 2025 and does not seem to fail to take photos. |
Beta Was this translation helpful? Give feedback.
-
Could you just create a PR here? Perhaps with 'WIP' or 'Discussion' in the title. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I cannot. GitHub requires 2FA for anyone who has uploaded code, and their system is so fubar'ed that I already have two accounts permanently locked up, unable to log in. |
Beta Was this translation helpful? Give feedback.
-
What was the change that fixed things for you? |
Beta Was this translation helpful? Give feedback.
-
I'll try to make a proper issue when i get to adb
Beta Was this translation helpful? Give feedback.
All reactions