Open dreacot opened 11 months ago
I investigated the issues and found that attempting to paste an empty clipboard into ALL of our text inputs/editors (tried most of our text inputs) causes the app to crash. To reproduce: Clear your clipboard and try to paste it into any of the cryptopower text editors.
I think this is an upstream issue from this method: https://git.sr.ht/~eliasnaur/gio/tree/main/item/app/os_macos.go#L298.
yes, i thought as much, as that error did not exist previously and there has been no change to the editor from our ends.
yes, i thought as much, as that error did not exist previously and there has been no change to the editor from our ends.
- we could try seeing if there is a newer version of gio and updating to that version.
- we could open an issue upstream if [1] doesn't work
Did 1, but still issues persist. Do you want to go ahead with letting gio aware? Maybe they should give it a little priority?
i'd submit an issue upstream
we need to double check the implementation from our side too
@dreacot, did you get to speak with the gio team about this?
Thanks for following up, i haven't double checked to make sure the issue isn't from us, would do so tomorrow and revert
yeah so this is only reproducible on macos, i have opened an issue upstream https://todo.sr.ht/~eliasnaur/gio/539
@ukane-philemon are you still able to reproduce this? because i'm not, if you're able to please leave a detailed reproduction step here https://todo.sr.ht/~eliasnaur/gio/539#event-262453
i was also unable to reproduce using gioui.org/example/kitchen
Uhmm, I’ll take a look in the morning.
EDIT: Was unable to get to this but sure will before the weekend.
i was also unable to reproduce using gioui.org/example/kitchen
I've just reproduced with the kitchen example.
EDIT:
To reproduce: Clear your clipboard. It only panics when the clipboard is "really" empty. To do this on mac, open a finder window, click on the "Edit" tab on the system menu then click on the "Show Clipboard" button. You'll see the current content (if any) and the modal footer will say Clipboard contents: {content-type} e.g "text". A quick way to completely clear the clipboard is to restart your PC. This will clear the clipboard content entirely and you should see "Clipboard contents: none" in the clipboard footer when you view the clipboard again.
Avoid copying anything and just start the program then paste. Dropped a copy of this on source hunt.
We've got an upstream fix: https://git.sr.ht/~eliasnaur/gio/commit/ea58aac
I think we have to wait for the next release?
yeah, that's fine, if it's urgent we can reference to that commit in our go mod
reproducible on mac os only
while attempting to add a watch only wallet, attempting to paste the xpub into the xpub editor using cltr+v causes the app to crash.
find the crash log below: