-
Notifications
You must be signed in to change notification settings - Fork 187
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
cgo fixes via @amlwwalker via @SjB #186
base: master
Are you sure you want to change the base?
Conversation
Tests can use SetupTesting instead of Run.
GoImageProvider had a memory leak where it got a pointer to a QImage, and never freed it. Qt already has a refcounting system in place so every QImage is actually a pointer to pixel data, but it relies on the destructor for every QImage instance to be called.
Fix ImageProvider data leak in C++ logic. Fix by Carlos Castillo.
Update requirements for OS X.
Update README for v1 branch.
Changed examples URL to match current branch.
Thanks to David Crawshaw for the suggestion.
qml.v0 seems to be deprecated and doesn't work with the latest Go 1.3.1. Updating the README to reflect this.
Thanks to Ignazio Di Napoli for reporting the issue.
Before 5.3 logic goes mainstream it cannot rely on qt to resolve the missing symbols.
apt-get install ubuntu-app-launch;"upstart-app-launch" >> "ubuntu-app-launch"
Documentation updates.
change "upstart-app-launch" to "ubuntu-app-launch"
apt-get install ubuntu-app-launch;"upstart-app-launch" >> "ubuntu-app-launch"
Documentation updates.
Ported some of the qtquickcontrols examples.
Fixes crash in ciborium
Make sure context.file is not null before calling strlen.
Go 1.6 cannot have Go pointer stored into the cgo space. So instead we need to store all Go values in a map and pass a key to the cgo space. When needed the key can be used to retrieve the go value from the map.
Using the C.GoRef datatype instead of uintptr in the go code make it more clear what the variable contains.
added methods to the type so that we can get the GoRef and register the fold in the lookup table, then a function to destroy the reference when we are done with the valueFold.
When unpacking a DataValue of a DTGoAddr type, we forgot to dereference the datap pointer that contained the GoRef. Thanks to immesys on github, for pointing out the bug.
@neclepsio on github.com found that when connecting a callback function on a MouseArea event the application would panic. This was cause by the extra derefrence on the interface of the function.
Apparently, this was already done. |
Nevermind. It appears that none of the other pull requests went through. What is keeping this from hitting master or v1 branches? |
@jackmanlabs |
I did a diff between the @niemeyer code and the @amlwwalker code. This branch should only contain the changes required to get QML to work without using
GODEBUG=cgocheck=0
. I'm not an expert in cgo or QML, but I know that this branch works for me.His comments in issue #179: