-
Notifications
You must be signed in to change notification settings - Fork 188
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
panic running customtype.go on windows #19
Comments
I've looked into this issue some more and found that the exact location of the cast is in capi.cpp at objectGoAddr running:
As I was running go1.2rc4 before, I've tried running this with go1.2rc1 and I've got a different error:
|
Can you still reproduce this issue after the recent changes? |
I'm closing this for the time being. Please reopen if you can reproduce the issue with Go 1.2 final. |
Reopening as there was another report for this same bug: https://groups.google.com/d/msg/go-qml/j-5Zdb7Lo7g/Q9RNRI2Atm0J |
The fix on adf30a8 was confirmed to solve the problem. |
Thanks, I'll review the bug and see if there's something I can identify in that code path. |
https://github.com/xlab/goqml-customtype-fail here is a minimal PoC. Works as expected under go1.2.1 OSX, but fails under Windows mingw 4.8.1 go 1.2.1. |
Can you please provide the failure traceback for that specific example? Thanks! On Wed, Apr 30, 2014 at 4:28 PM, Maxim Kouprianov
gustavo @ http://niemeyer.net |
.Property("ctrl") - https://gist.github.com/xlab/e09445cee8a25d07dd2a |
Thanks for all the information. Given that all these methods are failing, the problem is clearly at value creation time. So far I could not guess what might be wrong. Might need an environment to reproduce it. |
(Moved here from #142, as it seems to be the correct place) I have the same problem in ObjectByName. In my tests i found out that I think issue this should be reopened. With my program I get:
With customtype.go:
|
I found out part of the problem. About the problem in
Looking for why can dynamic_cast crash, I found out http://stackoverflow.com/a/280031/1924721, but that didn't help me. In the meantime, I discovered a simple I opened golang/go#10023. |
Thanks. From the looks of it, it seems that there are major bugs in the C++ support in that environment. I'm tentatively closing this bug on qml and will follow up on golang/go#10023. If there is a reason to think go-qml is at fault somehow, please feel free to reopen this. |
Removes all dynamic_cast, in order to make it work without RTTI. This is due to golang/go#10023 (duplicate of golang/go#4069) and solves go-qml#19.
Using Go 1.5 solves this. Please update documents to state Go 1.5 is required under Windows. |
Removes all dynamic_cast, in order to make it work without RTTI. This is due to golang/go#10023 (duplicate of golang/go#4069) and solves go-qml#19.
When running customtype.go on windows I get following output:
I just tried running customtype.go on windows and I get an panic...
The text was updated successfully, but these errors were encountered: