-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Cannot open a file chooser dialog from a 386 binary on 64bit Windows #7
Comments
I'm investigating this now, I've found where the crash occurs and will try to resolve this. |
On Windows 7 32-bit version same problem. Show exception and crush. Compiled to Windows 386 on MacOS 10.13. And runing on Windows 7 32-bit version. Environment
|
@snurbol Thanks for the report. I can replicate this but I have no idea what is causing it. I don't know what would cause it to behave differently on a 32-bit platform. Worst of all, I have replicated my code in C++ and Rust and it works fine. |
My Twitter follower said that the problem can be caused by differences of struct sizes or alignments between 386 and amd64. Is this information help your investigation? |
I'm trying to create an small application providing a file chooser, and I saw an unexpected error only on 386 binary running on Windows 10 64bit.
An amd64 binary built from the same source running on Windows 10 64bit works as expected.
Should this error be tracked on this project? Or, should I report this to other place?
Thanks,
Steps to reproduce
Prepare a golang development environment. I'm using go1.16.6 linux/amd64 on Ubuntu on WSL1 on Windows 10.
Create
testcase.go
under a directory, as:Start bash on Ubuntu on WSL1.
Change working directory to the directory
testcase.go
placed at.Run
gox -os="windows" .
to build binaries.Then two binaries
golang-testcase_windows_amd64.exe
andgolang-testcase_windows_386.exe
are built.Start
cmd.exe
on Windows.Run
golang-testcase_windows_amd64.exe
on the command prompt. A file chooser dialog appears, so close it.Run
golang-testcase_windows_386.exe
on the command prompt.Expected result
A file chooser dialog appears, same as
golang-testcase_windows_amd64.exe
.Actual result
No dialog appears and an error:
Environment
Additional info
I've not tested this on 32bit Windows environment yet.
The text was updated successfully, but these errors were encountered: