Skip to content

[GTK] AccessViolationException occurs in GLibSharp.dll after storage picker interaction in SamplesApp #6334

Closed

Description

@lukeblevins

On which page?

Windows.Storage < (FileOpen|FileSave|Folder)PickerTests

What's wrong?

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.

Activity

  1. added
    triage/untriaged
    difficulty/tbd
    on Jun 23, 2021
  2. 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
  3. added
    project/non-ui ⚙️
    kind/bug
    and removed
    triage/untriaged
    on Jun 23, 2021
  4. Agsayt commented on May 8, 2022

    @Agsayt
    Contributor

    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.
    image

    So maybe it helps to resolve this bug or find real problem?

  5. lukeblevins commented on May 8, 2022

    @lukeblevins
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/tbdkind/bugproject/non-ui ⚙️

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions