Skip to content
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

mist on qt 5.4.0 panic: unsupported variant type: 1024 (QJSValue) #212

Closed
jorisbontje opened this issue Dec 16, 2014 · 7 comments
Closed
Milestone

Comments

@jorisbontje
Copy link

With QT 5.4.0, works fine on QT 5.3.2.

$ mist
2014/12/16 12:53:26 [CLI] Main address e71de707f05da29b62325a19cf1e24f452f95684
2014/12/16 12:53:36 [CHAIN] Last block (#0) 779b1b620b03c0fb24963e183d5e88e3dbe4484e3f6e2aa05942e3be7b48e179
ETH stack took 10.019111037s
2014/12/16 12:53:36 [GUI] Starting GUI
2014/12/16 12:53:36 [CLI] Starting Mist/v0.7.9/darwin/go1.4
2014/12/16 12:53:36 [SERV] Ready and accepting connections
2014/12/16 12:53:36 [JSRE] started
panic: unsupported variant type: 1024 (QJSValue)

goroutine 1 [running, locked to thread]:
gopkg.in/qml%2ev1.hookPanic(0x12d22200)
    /private/tmp/go-ethereum-49DUTo/src/gopkg.in/qml.v1/bridge.go:631 +0x8d
gopkg.in/qml%2ev1._Cfunc_componentCreateWindow(0xee03c40, 0x0, 0x0)
    /private/tmp/go-ethereum-49DUTo/src/gopkg.in/qml.v1/:83 +0x44
gopkg.in/qml%2ev1.func·026()
    /private/tmp/go-ethereum-49DUTo/src/gopkg.in/qml.v1/qml.go:750 +0x56
gopkg.in/qml%2ev1.hookIdleTimer()
    /private/tmp/go-ethereum-49DUTo/src/gopkg.in/qml.v1/bridge.go:190 +0x60
gopkg.in/qml%2ev1._Cfunc_applicationExec()
    /private/tmp/go-ethereum-49DUTo/src/gopkg.in/qml.v1/:59 +0x45
gopkg.in/qml%2ev1.Run(0x4aa3510, 0x0, 0x0)
    /private/tmp/go-ethereum-49DUTo/src/gopkg.in/qml.v1/bridge.go:63 +0x204
main.main()
    /private/tmp/go-ethereum-49DUTo/src/github.com/ethereum/go-ethereum/cmd/mist/main.go:94 +0x72
@tgerring
Copy link
Contributor

tgerring commented Jan 2, 2015

I was able to work around this bug by downgrading to 5.3.2 and clearing out some old packages:

First, force checkout the specific commit for QT 5.3.2 in brew:

cd $( brew --prefix ) && git checkout 4f25f52 /usr/local/Library/Formula/qt5.rb

Update environment variables to point to 5.3.2:

export PKG_CONFIG_PATH=/usr/local/Cellar/qt5/5.3.2/lib/pkgconfig
export CGO_CPPFLAGS="-I/usr/local/Cellar/qt5/5.3.2/include/QtCore/5.3.2/QtCore"
export LD_LIBRARY_PATH=/usr/local/Cellar/qt5/5.3.2/lib

Remove QML references and re-get all dependencies:

rm -rf $GOPATH/src/gopkg.in/qml.v*
ETH_DEPS=$(go list -f '{{.Imports}} {{.TestImports}} {{.XTestImports}}' github.com/ethereum/go-ethereum/... | sed -e 's/\[//g' | sed -e 's/\]//g' | sed -e 's/C //g'); if [ "$ETH_DEPS" ]; then go get $ETH_DEPS; fi

Re-install mist:

go clean && go install && mist

@caktux
Copy link
Contributor

caktux commented Jan 4, 2015

If you already had 5.3.2, you can probably just brew switch qt5 5.3.2 instead.

@obscuren
Copy link
Contributor

obscuren commented Jan 4, 2015

Submitted possible solution to go-qml repo. See: go-qml/qml#137

@obscuren obscuren modified the milestone: PoC8 Jan 6, 2015
@jinserk
Copy link

jinserk commented Jan 12, 2015

using brew only, I've resolve this as follows:

As tgerring commented, first check the qt 5.3.2 from doing this:

cd $( brew --prefix ) && git checkout 4f25f52 /usr/local/Library/Formula/qt5.rb

Then, just reinstall qt5 using brew:

brew reinstall qt5

Switch qt5 to 5.3.2:

brew switch qt5 5.3.2

finally reinstall go-ethereum:

brew reinstall go-ethereum

@obscuren
Copy link
Contributor

Fixed go-qml and created PR go-qml/qml#140

@cyrusadkisson
Copy link

[ REDACTED ] see https://gist.github.com/obscuren/51437f663cfaedff398f

"Issue is for qt 5.4 not 5.2.1. Please re-open new issue."

@cyrusadkisson
Copy link

Ok. Sorry. I got mist to execute just now on 5.2.1 anyway.

@obscuren obscuren removed the type:bug label Jan 30, 2015
acud pushed a commit to acud/go-ethereum that referenced this issue Mar 1, 2018
…es-errors

Add granular error reporting in mutable resources
prestonvanloon pushed a commit to prestonvanloon/go-ethereum that referenced this issue Jun 23, 2018
sharding: refactored notary tests to use internal mock client (ethereum#212)
ngtuna added a commit to ngtuna/tomochain that referenced this issue Oct 12, 2018
Zergity added a commit to Zergity/go-ethereum that referenced this issue Apr 28, 2020
update trusted checkpoint for testnet also
AusIV pushed a commit to NoteGio/go-ethereum that referenced this issue Nov 12, 2020
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
weiihann pushed a commit to weiihann/go-ethereum that referenced this issue Feb 23, 2023
…reum#212)

* move jenkins files

* trigger jenkins

* trigger jenkins

* trigger jenkins

* fix goproxy

---------

Co-authored-by: vincent <[email protected]>
sduchesneau pushed a commit to streamingfast/go-ethereum that referenced this issue Aug 1, 2023
Make the RPC max response batch size editable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants