Skip to content
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

Windows access violation (desktop_window_plugin.dll) #44

Open
dani-weiss opened this issue Oct 14, 2024 · 0 comments
Open

Windows access violation (desktop_window_plugin.dll) #44

dani-weiss opened this issue Oct 14, 2024 · 0 comments

Comments

@dani-weiss
Copy link

Hello,

since recently some clients are getting an access violation on desktop_window_plugin.dll upon app startup.

Version I'm using: 0.4.0
However, the issue persists with 0.4.1

This is what I'm getting from windbg:

(3698.32d8): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** WARNING: Unable to verify checksum for ***path-redacted***\app\desktop_window_plugin.dll
desktop_window_plugin+0x5396:
00007fff`5bd55396 488b01          mov     rax,qword ptr [rcx] ds:00000000`00000000=????????????????
0:000> g
(3698.32d8): Access violation - code c0000005 (!!! second chance !!!)
desktop_window_plugin+0x5396:
00007fff`5bd55396 488b01          mov     rax,qword ptr [rcx] ds:00000000`00000000=????????????????

This is how I'm using desktop_window in the app (upon startup):

// Set minimal window size for desktop apps
   if (ResponsiveInterface.isDesktopDevice &&
       !UniversalPlatform.isWeb) {
     await DesktopWindow.setMinWindowSize(const Size(700, 400));
   }

Curiosly, upon debugging and building many times, I encountered a version that works (with no code changes on the app). Further investigation shows that there are two distinct versions of the dll on different builds. One with 87kb size and one with 83kb size. I've attached both versions here (the one that works, I renamed and added the suffix _works).

Copying the 83kb size in the directory of a faulty build (with the 87kb size lib) seems to solve the problem and the app works as intended. However, I don't understand why? Anyone here can help me shed some light on the issue?

Thanks
Archiv.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant