cgo fixes via @amlwwalker via @SjB#186
Open
jackman0 wants to merge 89 commits intogo-qml:masterfrom
jackman0:amlwwalker-cgo
Open
cgo fixes via @amlwwalker via @SjB#186jackman0 wants to merge 89 commits intogo-qml:masterfrom jackman0:amlwwalker-cgo
jackman0 wants to merge 89 commits intogo-qml:masterfrom
jackman0:amlwwalker-cgo
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.
Author
|
Apparently, this was already done. |
Author
|
Nevermind. It appears that none of the other pull requests went through. What is keeping this from hitting master or v1 branches? |
|
@jackmanlabs |
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: