You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[GTK] AccessViolationException occurs in GLibSharp.dll after storage picker interaction in SamplesApp #6334
difficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/bugSomething isn't workingproject/non-ui ⚙️Categorizes an issue or PR as relevant to winrt (non-ui)
After interacting with a picker dialog on Skia.GTK and dismissing them with one of the action buttons (Cancel, Save, Open, Select Folder), GTK crashes with the exception:
An unhandled exception of type 'System.AccessViolationException' occurred in GLibSharp.dll
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Any feedback?
I have no reason to believe this was caused by my recent changes to implement FolderPicker or FileOpenPicker, and it doesn't seem like there is access problems with the storage items themselves because pressing Cancel on the dialog causes the same crash.
changed the title [-]AccessViolationException occurrs in GLibSharp.dll after storage picker interaction[/-][+][GTK] AccessViolationException occurs in GLibSharp.dll after storage picker interaction in SamplesApp[/+]on Jun 23, 2021
About this problem. I fixed it by adding dialog.Dispose() before dialog.Destroy() like on the screenshot in both SavePicker and OpenPicker. I don't know is it correct solution (cuz i'm just a junior), but after that there was no crash of the application.
So maybe it helps to resolve this bug or find real problem?
Thanks for looking into this. If you suspect it fixes the crash, we'd love to see a pull request that incorporates the lines you mention above. Do let me know, and I'll assign this one to you.
difficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/bugSomething isn't workingproject/non-ui ⚙️Categorizes an issue or PR as relevant to winrt (non-ui)
Activity
[-]AccessViolationException occurrs in GLibSharp.dll after storage picker interaction[/-][+][GTK] AccessViolationException occurs in GLibSharp.dll after storage picker interaction in SamplesApp[/+]Agsayt commentedon May 8, 2022
About this problem. I fixed it by adding dialog.Dispose() before dialog.Destroy() like on the screenshot in both SavePicker and OpenPicker. I don't know is it correct solution (cuz i'm just a junior), but after that there was no crash of the application.

So maybe it helps to resolve this bug or find real problem?
lukeblevins commentedon May 8, 2022
Hi @Agsayt
Thanks for looking into this. If you suspect it fixes the crash, we'd love to see a pull request that incorporates the lines you mention above. Do let me know, and I'll assign this one to you.