I'm making a project where a file needs to be loaded and I'm using runtime.OpenFileDialog and when my frontend calls my OpenFileDialog function bound to my app interface it just crashes and gives me a long error that I myself cannot debug nor understand at all.
I am developing this application on two devices one running debian trixie with go version 1.23 and the other running windows 11 with go 1.23. On my linux installation it works with no problems but when I run the exact same source code on my windows device it dumps me this long error that I'll post below in a pastebin.
Description
I'm making a project where a file needs to be loaded and I'm using
runtime.OpenFileDialog
and when my frontend calls myOpenFileDialog
function bound to my app interface it just crashes and gives me a long error that I myself cannot debug nor understand at all.I am developing this application on two devices one running debian trixie with go version 1.23 and the other running windows 11 with go 1.23. On my linux installation it works with no problems but when I run the exact same source code on my windows device it dumps me this long error that I'll post below in a pastebin.
https://pastebin.com/uDnayxFc
I should also mention that I'm using Wails version 2.9.1 and when I run the exact same code in go version 1.22.6 it just works...
To Reproduce
Run windows 11 23H2
wails dev
(wails ver 2.9.1 & go ver 1.23)Or just use the
runtime.OpenFileDialog
function with these options:Expected behaviour
The
runtime.OpenFileDialog
should open the windows explorer dialog window so that the user of my application can select a file.Screenshots
No response
Attempted Fixes
Run with go version 1.22.6 installed and wails 2.9.1 which works perfectly fine.
I've also tried:
go clean -cache
go clean -modcache
System Details
Additional context
No response