ethereum / go-ethereum

Go implementation of the Ethereum protocol
https://geth.ethereum.org
GNU Lesser General Public License v3.0
47.49k stars 20.1k forks source link

Importing App causes Seg Fault #35

Closed compleatang closed 10 years ago

compleatang commented 10 years ago

Every time I attempt to Import App, after selecting any file (including the samplecoin.html). This has happened both on OSX and Linux:

go 1.2.1 qt 5.2.1

After installing 5.2.0, the SegFault did not appear. Stacktrace below:

2014/04/28 11:30:19 qxcbsessionmanager.cpp:374: Qt: Session management error: Could not open network socket 2014/04/28 11:30:19 [CHAIN] Last known block height #1 2014/04/28 11:30:19 Last block: ab6b9a5613970faa771b12d449b2e9bb925ab7a369f0a4b86b286e9d540099cf 2014/04/28 11:30:19 Starting Ethereum GUI v0.5 2014/04/28 11:30:19 wallet.qml:438: file:////home/coda/sites/gostuff/src/github.com/ethereum/go-ethereum/ethereal/assets/qml/wallet.qml:438: ReferenceError: parent is not defined Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39) Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39) Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39) Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39) Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39) 2014/04/28 11:30:23 plugin.cpp:52: WARNING: This project is using the experimental QML API extensions for QtWebKit and is therefore tied to a specific QtWebKit release. WARNING: The experimental API will change from version to version, or even be removed. You have been warned!

SIGSEGV: segmentation violation PC=0x7f2b232a152a signal arrived during cgo execution

runtime.cgocallbackg() /usr/lib/go/src/pkg/runtime/cgocall.c:267 +0x89 fp=0x7f2b1ba786d0 runtime.cgocallback_gofunc(0x498e13, 0x43f100, 0x7f2b1ba78748) /usr/lib/go/src/pkg/runtime/asm_amd64.s:711 +0x67 fp=0x7f2b1ba786e0 runtime.asmcgocall(0x43f100, 0x7f2b1ba78748) /usr/lib/go/src/pkg/runtime/asm_amd64.s:618 +0x2d fp=0x7f2b1ba786e8 runtime.cgocall(0x43f100, 0x7f2b1ba78748) /usr/lib/go/src/pkg/runtime/cgocall.c:149 +0x133 fp=0x7f2b1ba78730 github.com/go-qml/qml._Cfunc_componentCreateWindow(0x50a5000, 0x0, 0x7fe0b52debc0) github.com/go-qml/qml/_obj/_cgo_defun.c:84 +0x31 fp=0x7fe0abd9b748 github.com/go-qml/qml.func·023() /home/coda/sites/gostuff/src/github.com/go-qml/qml/qml.go:731 +0x57 fp=0x7fe0abd9b770 github.com/go-qml/qml.RunMain(0xc210092e00) /home/coda/sites/gostuff/src/github.com/go-qml/qml/bridge.go:63 +0xcc fp=0x7fe0abd9b798 github.com/go-qml/qml.(_Common).CreateWindow(0xc210037a40, 0x0, 0x5b) /home/coda/sites/gostuff/src/github.com/go-qml/qml/qml.go:732 +0x117 fp=0x7fe0abd9b7e0 github.com/ethereum/go-ethereum/ethereal/ui.(_UiLib).OpenHtml(0xc21006d540, 0xc210e46e70, 0x63) /home/coda/sites/gostuff/src/github.com/ethereum/go-ethereum/ethereal/ui/ui_lib.go:62 +0x1b7 fp=0x7fe0abd9b888 runtime.call32(0x8434d8, 0xc210092dc0) /usr/lib/go/src/pkg/runtime/asm_amd64.s:339 +0x32 fp=0x7fe0abd9b8b0 reflect.Value.call(0x843300, 0xc21006d540, 0xf38, 0x873620, 0x4, ...) /usr/lib/go/src/pkg/reflect/value.go:474 +0xe0b fp=0x7fe0abd9baf0 reflect.Value.Call(0x843300, 0xc21006d540, 0xf38, 0x7fe0abd9bcf0, 0x1, ...) /usr/lib/go/src/pkg/reflect/value.go:345 +0x9d fp=0x7fe0abd9bb50 github.com/go-qml/qml.hookGoValueCallMethod(0x2f2adb0, 0xc21001feb0, 0x7, 0x7fff9cec4720) /home/coda/sites/gostuff/src/github.com/go-qml/qml/bridge.go:497 +0x40c fp=0x7fe0abd9bde8 ----- stack segment boundary ----- runtime.cgocallbackg1() /usr/lib/go/src/pkg/runtime/cgocall.c:296 +0xbf fp=0x7f2b1ba78ec0 runtime.cgocallbackg() /usr/lib/go/src/pkg/runtime/cgocall.c:266 +0x84 fp=0x7f2b1ba78ed0 runtime.cgocallback_gofunc(0x498e13, 0x43efd0, 0x7f2b1ba78f48) /usr/lib/go/src/pkg/runtime/asm_amd64.s:711 +0x67 fp=0x7f2b1ba78ee0 runtime.asmcgocall(0x43efd0, 0x7f2b1ba78f48) /usr/lib/go/src/pkg/runtime/asm_amd64.s:618 +0x2d fp=0x7f2b1ba78ee8 runtime.cgocall(0x43efd0, 0x7f2b1ba78f48) /usr/lib/go/src/pkg/runtime/cgocall.c:149 +0x133 fp=0x7f2b1ba78f30 github.com/go-qml/qml._Cfunc_applicationExec(0xefc598) github.com/go-qml/qml/_obj/_cgo_defun.c:57 +0x31 fp=0x7f2b1ba78f48 github.com/go-qml/qml.guiLoop() /home/coda/sites/gostuff/src/github.com/go-qml/qml/bridge.go:43 +0x132 fp=0x7f2b1ba78fa0 runtime.goexit() /usr/lib/go/src/pkg/runtime/proc.c:1394 fp=0x7f2b1ba78fa8 created by github.com/go-qml/qml.Init /home/coda/sites/gostuff/src/github.com/go-qml/qml/qml.go:44 +0xa0

goroutine 1 [semacquire]: sync.runtime_Semacquire(0xc210e5b00c) /usr/lib/go/src/pkg/runtime/sema.goc:199 +0x30 sync.(_Mutex).Lock(0xc210e5b008) /usr/lib/go/src/pkg/sync/mutex.go:66 +0xd6 github.com/go-qml/qml.(_Window).Wait(0xc210037850) /home/coda/sites/gostuff/src/github.com/go-qml/qml/qml.go:884 +0x9b github.com/ethereum/go-ethereum/ethereal/ui.(*Gui).Start(0xc21001f780, 0x7fffd1384c53, 0x4c) /home/coda/sites/gostuff/src/github.com/ethereum/go-ethereum/ethereal/ui/gui.go:113 +0x855 main.main() /home/coda/sites/gostuff/src/github.com/ethereum/go-ethereum/ethereal/ethereum.go:107 +0x6a4

goroutine 3 [syscall]: os/signal.loop() /usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e created by os/signal.init·1 /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 4 [syscall]: runtime.cgocallbackg() /usr/lib/go/src/pkg/runtime/cgocall.c:267 +0x89 runtime.cgocallback_gofunc(0x0, 0x0, 0x0) /usr/lib/go/src/pkg/runtime/asm_amd64.s:711 +0x67 runtime.goexit() /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 6 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc21006db40) /home/coda/sites/gostuff/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:115 +0x1c5 created by github.com/syndtr/goleveldb/leveldb.openDB /home/coda/sites/gostuff/src/github.com/syndtr/goleveldb/leveldb/db.go:114 +0x402

goroutine 7 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).compaction(0xc21006db40) /home/coda/sites/gostuff/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:437 +0x75f created by github.com/syndtr/goleveldb/leveldb.openDB /home/coda/sites/gostuff/src/github.com/syndtr/goleveldb/leveldb/db.go:117 +0x443

goroutine 8 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).writeJournal(0xc21006db40) /home/coda/sites/gostuff/src/github.com/syndtr/goleveldb/leveldb/db_write.go:36 +0x142 created by github.com/syndtr/goleveldb/leveldb.openDB /home/coda/sites/gostuff/src/github.com/syndtr/goleveldb/leveldb/db.go:118 +0x45a

goroutine 9 [select]: github.com/ethereum/eth-go/ethchain.(_TxPool).queueHandler(0xc210070d20) /home/coda/sites/gostuff/src/github.com/ethereum/eth-go/ethchain/transaction_pool.go:170 +0x541 created by github.com/ethereum/eth-go/ethchain.(_TxPool).Start /home/coda/sites/gostuff/src/github.com/ethereum/eth-go/ethchain/transaction_pool.go:239 +0x2e

goroutine 10 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc21006dd80) /home/coda/sites/gostuff/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:115 +0x1c5 created by github.com/syndtr/goleveldb/leveldb.openDB /home/coda/sites/gostuff/src/github.com/syndtr/goleveldb/leveldb/db.go:114 +0x402

goroutine 11 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).compaction(0xc21006dd80) /home/coda/sites/gostuff/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:437 +0x75f created by github.com/syndtr/goleveldb/leveldb.openDB /home/coda/sites/gostuff/src/github.com/syndtr/goleveldb/leveldb/db.go:117 +0x443

goroutine 12 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).writeJournal(0xc21006dd80) /home/coda/sites/gostuff/src/github.com/syndtr/goleveldb/leveldb/db_write.go:36 +0x142 created by github.com/syndtr/goleveldb/leveldb.openDB /home/coda/sites/gostuff/src/github.com/syndtr/goleveldb/leveldb/db.go:118 +0x45a

goroutine 15 [chan receive]: github.com/ethereum/go-ethereum/ethereal/ui.(_Gui).update(0xc21001f780) /home/coda/sites/gostuff/src/github.com/ethereum/go-ethereum/ethereal/ui/gui.go:151 +0x383 created by github.com/ethereum/go-ethereum/ethereal/ui.(_Gui).Start /home/coda/sites/gostuff/src/github.com/ethereum/go-ethereum/ethereal/ui/gui.go:109 +0x82b

goroutine 16 [syscall]: runtime.goexit() /usr/lib/go/src/pkg/runtime/proc.c:1394

rax 0x7f2b22d65618 rbx 0x3886260 rcx 0x2 rdx 0x7f2b22d65688 rdi 0x7f2ae4a657e0 rsi 0x0 rbp 0x7f2ae4a657e0 rsp 0x7fffd1381fc0 r8 0xb r9 0x11 r10 0x0 r11 0x206 r12 0x0 r13 0x14a90d0 r14 0x7fffd13820b0 r15 0x21 rip 0x7f2b232a152a rflags 0x10206 cs 0x33 fs 0x0 gs 0x0

stephantual commented 10 years ago

Totally correct - then again the 'warning warning this is bound to a specific version of qt' was a bit of a giveaway :) I've updated my build guide at http://forum.ethereum.org/discussion/905/go-ethereum-cli-ethereal-simple-build-guide-for-osx and annotated my yt install video guide.

Thanks Casey!

sjamayee commented 10 years ago

Same problem for me. When I import an app (genericcoin.html) then this happens. Is there a work around for this?

Installation following (Go-Ethereum (CLI + Ethereal) simple build guide for OSX)

osx 10.9.2 go 1.2.2 qt 5.2.1

macee:ethereal jac$ pwd /Users/jac/go/src/github.com/ethereum/go-ethereum/ethereal macee:ethereal jac$ ethereal 2014/05/23 10:00:15 [CHAIN] Last known block height #850 2014/05/23 10:00:15 Last block: c4a4fd6bdc12b0eaf3360981671907a6f944ac39b8739f067d35f4d034f5d473 2014/05/23 10:00:15 Starting Ethereum GUI v0.5.0 RC8 2014/05/23 10:00:15 Connection listening disabled. Acting as client 2014/05/23 10:00:15 [SERV] Retrieving seed nodes 2014/05/23 10:00:15 [SERV] Found DNS Go Peer: 94.242.229.217:30303 2014/05/23 10:00:15 [SERV] Adding peer (94.242.229.217:30303) 1 / 10 2014/05/23 10:00:15 [SERV] Found DNS Bootstrap Peer: 54.200.139.158:30303 2014/05/23 10:00:15 [SERV] Adding peer (54.200.139.158:30303) 2 / 10 2014/05/23 10:00:15 [GUI] Starting GUI 2014/05/23 10:00:16 Requesting blockchain c4a4fd6b... from peer 94.242.229.217:30303 2014/05/23 10:00:16 [PEER] connected 94.242.229.217:30303 [Peer discovery | Block chain relaying | Transaction relaying] 2014/05/23 10:00:17 wallet.qml:477: file:////Users/jac/go/src/github.com/ethereum/go-ethereum/ethereal/assets/qml/wallet.qml:477: ReferenceError: parent is not defined 2014/05/23 10:00:17 [STATE] Added block #851 (d6d0f29078c8930a06f6f1aeca182a3fe9b6c360ff75d1a656cac4d41e3760eb) 2014/05/23 10:00:17 [STATE] Added block #852 (ebbadf8fef14c20f7843b6288cc0b8cbe8cce1f3b82f7fd278b84116feca95fc) 2014/05/23 10:00:17 [STATE] Added block #853 (fc84a2cb9bc967d12fe9a7533499471bfae8a0843f3b79859325b8720ee92a47) 2014/05/23 10:00:17 [STATE] Added block #854 (c9608ca318e03bb60a076ec076adb16b6e86f284ad16e43bfdbc613ff12d79fd) 2014/05/23 10:00:17 [STATE] Added block #855 (8d1ded2a5b941045569c79a71f61ed817c0aa5f1809e317a51d1246efecb6b2b) 2014/05/23 10:00:17 [STATE] Added block #856 (7204cd948decaed312ece59af39e336e0bbe7c3a7a81c9b818dbc76db771e13d) 2014/05/23 10:00:17 [STATE] Added block #857 (42ed5e62416fb44357b44856fd7d095b32ff83ecb4636a799ab2d4d862f31ca4) 2014/05/23 10:00:17 [STATE] Added block #858 (9521839b9b7f254d3d3d8fd7702138665d8860a77655f8a9389123318ce3a001) 2014/05/23 10:00:17 [STATE] Added block #859 (334ca7eedee0c3f02b2de9d7fffc4267d3f69fb11ca1aa06494596858cf157ee) 2014/05/23 10:00:17 Synced to block height #859 334ca7eedee0c3f02b2de9d7fffc4267d3f69fb11ca1aa06494596858cf157ee 334ca7eedee0c3f02b2de9d7fffc4267d3f69fb11ca1aa06494596858cf157ee 2014/05/23 10:00:17 Requesting blockchain 334ca7ee... from peer 94.242.229.217:30303 2014/05/23 10:00:18 [PEER] Found conical block, returning chain from: c4a4fd6bdc12b0eaf3360981671907a6f944ac39b8739f067d35f4d034f5d473 2014/05/23 10:00:18 [PEER] Returning 9 blocks: c4a4fd6bdc12b0eaf3360981671907a6f944ac39b8739f067d35f4d034f5d473 2014/05/23 10:00:19 [PEER] Found conical block, returning chain from: 334ca7eedee0c3f02b2de9d7fffc4267d3f69fb11ca1aa06494596858cf157ee 2014/05/23 10:00:25 qfileinfo.cpp:576: QFileInfo::absolutePath: Constructed with empty filename 2014/05/23 10:00:29 plugin.cpp:52: WARNING: This project is using the experimental QML API extensions for QtWebKit and is therefore tied to a specific QtWebKit release. WARNING: The experimental API will change from version to version, or even be removed. You have been warned!

SIGSEGV: segmentation violation PC=0x5c1f960 signal arrived during cgo execution

runtime.cgocallbackg() /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/cgocall.c:267 +0x89 fp=0x6ce2d38 runtime.cgocallback_gofunc(0x4060cf3, 0x4001720, 0x6ce2db0) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/asm_amd64.s:711 +0x67 fp=0x6ce2d48 runtime.asmcgocall(0x4001720, 0x6ce2db0) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/asm_amd64.s:618 +0x2d fp=0x6ce2d50 runtime.cgocall(0x4001720, 0x6ce2db0) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/cgocall.c:149 +0x133 fp=0x6ce2d98 github.com/go-qml/qml._Cfunc_componentCreateWindow(0x145740f0, 0x0, 0x6ce2df0) github.com/go-qml/qml/_obj/_cgo_defun.c:96 +0x31 fp=0x6ce2db0 github.com/go-qml/qml.func·023() /Users/jac/go/src/github.com/go-qml/qml/qml.go:731 +0x57 fp=0x6ce2dd8 github.com/go-qml/qml.hookIdleTimer() /Users/jac/go/src/github.com/go-qml/qml/bridge.go:178 +0x5b fp=0x6ce2e08 ----- stack segment boundary ----- runtime.cgocallbackg1() /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/cgocall.c:296 +0xbf fp=0x6ce2ec0 runtime.cgocallbackg() /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/cgocall.c:266 +0x84 fp=0x6ce2ed0 runtime.cgocallback_gofunc(0x4060cf3, 0x4001590, 0x6ce2f48) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/asm_amd64.s:711 +0x67 fp=0x6ce2ee0 runtime.asmcgocall(0x4001590, 0x6ce2f48) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/asm_amd64.s:618 +0x2d fp=0x6ce2ee8 runtime.cgocall(0x4001590, 0x6ce2f48) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/cgocall.c:149 +0x133 fp=0x6ce2f30 github.com/go-qml/qml._Cfunc_applicationExec(0x4a09768) github.com/go-qml/qml/_obj/_cgo_defun.c:69 +0x31 fp=0x6ce2f48 github.com/go-qml/qml.guiLoop() /Users/jac/go/src/github.com/go-qml/qml/bridge.go:43 +0x132 fp=0x6ce2fa0 runtime.goexit() /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/proc.c:1394 fp=0x6ce2fa8 created by github.com/go-qml/qml.Init /Users/jac/go/src/github.com/go-qml/qml/qml.go:44 +0xa0

goroutine 1 [semacquire]: sync.runtime_Semacquire(0xc210e8905c) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/sema.goc:199 +0x30 sync.(_Mutex).Lock(0xc210e89058) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/sync/mutex.go:66 +0xd6 github.com/go-qml/qml.(_Window).Wait(0xc21000ae20) /Users/jac/go/src/github.com/go-qml/qml/qml.go:892 +0x9b github.com/ethereum/go-ethereum/ethereal/ui.(*Gui).Start(0xc2109c93c0, 0x44e3280, 0x0) /Users/jac/go/src/github.com/ethereum/go-ethereum/ethereal/ui/gui.go:98 +0x61c main.main() /Users/jac/go/src/github.com/ethereum/go-ethereum/ethereal/ethereum.go:128 +0x7a2

goroutine 3 [syscall]: os/signal.loop() /usr/local/Cellar/go/1.2.2/libexec/src/pkg/os/signal/signal_unix.go:21 +0x1e created by os/signal.init·1 /usr/local/Cellar/go/1.2.2/libexec/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 4 [syscall]: runtime.cgocallbackg() /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/cgocall.c:267 +0x89 runtime.cgocallback_gofunc(0x0, 0x0, 0x0) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/asm_amd64.s:711 +0x67 runtime.goexit() /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/proc.c:1394

goroutine 7 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc21007c480) /Users/jac/go/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:115 +0x1c5 created by github.com/syndtr/goleveldb/leveldb.openDB /Users/jac/go/src/github.com/syndtr/goleveldb/leveldb/db.go:114 +0x402

goroutine 8 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).compaction(0xc21007c480) /Users/jac/go/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:437 +0x75f created by github.com/syndtr/goleveldb/leveldb.openDB /Users/jac/go/src/github.com/syndtr/goleveldb/leveldb/db.go:117 +0x443

goroutine 9 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).writeJournal(0xc21007c480) /Users/jac/go/src/github.com/syndtr/goleveldb/leveldb/db_write.go:36 +0x142 created by github.com/syndtr/goleveldb/leveldb.openDB /Users/jac/go/src/github.com/syndtr/goleveldb/leveldb/db.go:118 +0x45a

goroutine 10 [select]: github.com/ethereum/eth-go/ethchain.(_TxPool).queueHandler(0xc210039cc0) /Users/jac/go/src/github.com/ethereum/eth-go/ethchain/transaction_pool.go:172 +0x2c8 created by github.com/ethereum/eth-go/ethchain.(_TxPool).Start /Users/jac/go/src/github.com/ethereum/eth-go/ethchain/transaction_pool.go:243 +0x2e

goroutine 11 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc21007c6c0) /Users/jac/go/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:115 +0x1c5 created by github.com/syndtr/goleveldb/leveldb.openDB /Users/jac/go/src/github.com/syndtr/goleveldb/leveldb/db.go:114 +0x402

goroutine 12 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).compaction(0xc21007c6c0) /Users/jac/go/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:437 +0x75f created by github.com/syndtr/goleveldb/leveldb.openDB /Users/jac/go/src/github.com/syndtr/goleveldb/leveldb/db.go:117 +0x443

goroutine 13 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).writeJournal(0xc21007c6c0) /Users/jac/go/src/github.com/syndtr/goleveldb/leveldb/db_write.go:36 +0x142 created by github.com/syndtr/goleveldb/leveldb.openDB /Users/jac/go/src/github.com/syndtr/goleveldb/leveldb/db.go:118 +0x45a

goroutine 14 [chan receive]: github.com/ethereum/eth-go.(_Ethereum).ReapDeadPeerHandler(0xc21007a160) /Users/jac/go/src/github.com/ethereum/eth-go/ethereum.go:321 +0x67 created by github.com/ethereum/eth-go.(_Ethereum).Start /Users/jac/go/src/github.com/ethereum/eth-go/ethereum.go:347 +0x18e

goroutine 17 [select]: github.com/ethereum/eth-go.(_Peer).HandleOutbound(0xc210079300) /Users/jac/go/src/github.com/ethereum/eth-go/peer.go:228 +0x246 created by github.com/ethereum/eth-go.(_Peer).Start /Users/jac/go/src/github.com/ethereum/eth-go/peer.go:506 +0x2a0

goroutine 18 [IO wait]: net.runtime_pollWait(0x6b2b830, 0x72, 0x0) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a net.(_pollDesc).Wait(0xc2100650d0, 0x72, 0x6b280e8, 0x23) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34 net.(_pollDesc).WaitRead(0xc2100650d0, 0x23, 0x6b280e8) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30 net.(_netFD).Read(0xc210065070, 0xc211065600, 0x5a0, 0x5a0, 0x0, ...) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/fd_unix.go:204 +0x2a0 net.(_conn).Read(0xc210000620, 0xc211065600, 0x5a0, 0x5a0, 0x5a0, ...) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/net.go:122 +0xc5 github.com/ethereum/eth-go/ethwire.ReadMessages(0x6b2a7b0, 0xc210000620, 0x0, 0x0, 0x0, ...) /Users/jac/go/src/github.com/ethereum/eth-go/ethwire/messaging.go:131 +0x1a6 github.com/ethereum/eth-go.(_Peer).HandleInbound(0xc210079300) /Users/jac/go/src/github.com/ethereum/eth-go/peer.go:272 +0x85 created by github.com/ethereum/eth-go.(_Peer).Start /Users/jac/go/src/github.com/ethereum/eth-go/peer.go:508 +0x2ba

goroutine 19 [IO wait]: net.runtime_pollWait(0x6b2b788, 0x77, 0x0) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a net.(_pollDesc).Wait(0xc2109bbed0, 0x77, 0x6b280e8, 0x24) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34 net.(_pollDesc).WaitWrite(0xc2109bbed0, 0x24, 0x6b280e8) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/fd_poll_runtime.go:90 +0x30 net.(_netFD).connect(0xc2109bbe70, 0x0, 0x0, 0x6b2b8d8, 0xc2109bcfa0, ...) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/fd_unix.go:86 +0x166 net.(_netFD).dial(0xc2109bbe70, 0x6b2a710, 0x0, 0x6b2a710, 0xc210084510, ...) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/sock_posix.go:121 +0x2fd net.socket(0x4500780, 0x3, 0x2, 0x1, 0x0, ...) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/sock_posix.go:91 +0x40b net.internetSocket(0x4500780, 0x3, 0x6b2a710, 0x0, 0x6b2a710, ...) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/ipsock_posix.go:136 +0x161 net.dialTCP(0x4500780, 0x3, 0x0, 0xc210084510, 0xecb10f72d, ...) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/tcpsock_posix.go:155 +0xef net.dialSingle(0x4500780, 0x3, 0xc2109bce80, 0x14, 0x0, ...) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/dial.go:225 +0x3d8 net.func·015(0xecb10f72d, 0x33452f4f, 0x4a006c0, 0x6fc23ac00, 0xecb10f72d, ...) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/dial.go:158 +0xde net.dial(0x4500780, 0x3, 0x6b2a6a8, 0xc210084510, 0xb06ae38, ...) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/fd_unix.go:40 +0x45 net.(*Dialer).Dial(0xc2100a9280, 0x4500780, 0x3, 0xc2109bce80, 0x14, ...) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/dial.go:165 +0x3e0 net.DialTimeout(0x4500780, 0x3, 0xc2109bce80, 0x14, 0x6fc23ac00, ...) /usr/local/Cellar/go/1.2.2/libexec/src/pkg/net/dial.go:145 +0xaa github.com/ethereum/eth-go.func·009() /Users/jac/go/src/github.com/ethereum/eth-go/peer.go:170 +0x5f created by github.com/ethereum/eth-go.NewOutboundPeer /Users/jac/go/src/github.com/ethereum/eth-go/peer.go:184 +0x14f

goroutine 22 [select]: github.com/ethereum/go-ethereum/ethereal/ui.(_Gui).update(0xc2109c93c0) /Users/jac/go/src/github.com/ethereum/go-ethereum/ethereal/ui/gui.go:197 +0xb6c created by github.com/ethereum/go-ethereum/ethereal/ui.(_Gui).showWallet /Users/jac/go/src/github.com/ethereum/go-ethereum/ethereal/ui/gui.go:113 +0xf9

goroutine 32 [chan receive]: github.com/go-qml/qml.RunMain(0xc210fe9080) /Users/jac/go/src/github.com/go-qml/qml/bridge.go:76 +0xbd github.com/go-qml/qml.(_Common).CreateWindow(0xc210e70980, 0x0, 0xc210ebb298) /Users/jac/go/src/github.com/go-qml/qml/qml.go:732 +0x117 github.com/ethereum/go-ethereum/ethereal/ui.(_HtmlApplication).Create(0xc2109cbe40, 0x4501880, 0x2) /Users/jac/go/src/github.com/ethereum/go-ethereum/ethereal/ui/html_container.go:47 +0x1ae github.com/ethereum/go-ethereum/ethereal/ui.(_ExtApplication).run(0xc210ea4240) /Users/jac/go/src/github.com/ethereum/go-ethereum/ethereal/ui/ext_app.go:58 +0xcd created by github.com/ethereum/go-ethereum/ethereal/ui.(_UiLib).OpenHtml /Users/jac/go/src/github.com/ethereum/go-ethereum/ethereal/ui/ui_lib.go:59 +0x87

goroutine 33 [syscall]: runtime.goexit() /usr/local/Cellar/go/1.2.2/libexec/src/pkg/runtime/proc.c:1394

rax 0x641ed60 rbx 0x15b50cd8 rcx 0x641ed30 rdx 0x0 rdi 0x15062360 rsi 0x100000001 rbp 0x7fff5fbfd240 rsp 0x7fff5fbfd220 r8 0x11 r9 0x7fff5fbfd000 r10 0x0 r11 0x202 r12 0x6912db0 r13 0x9 r14 0x100000001 r15 0x15062360 rip 0x5c1f960 rflags 0x10216 cs 0x2b fs 0x0 gs 0x6410000 macee:ethereal jac$

maran commented 10 years ago

I'm going to try and replicate this. Everything is still working here.

Edit: Confirmed that confirmed that anything over QT 5.2.0 breaks it. @compleatang and @sjamayee Please rollback to 5.2.0 or lower (don't forget to update CGO_CPPFLAGS) and it should work (again). Please let me know if this fixes it.

sjamayee commented 10 years ago

Rolled back to 5.2.0 With the help of: https://gist.github.com/gcatlin/1847248 Now it works. Thanks for the help

maran commented 10 years ago

Good to know @stephantual could you update your excellent installation guide mentioning for now we are frozen on 5.2.0?

compleatang commented 10 years ago

@maran thanks. i have been using 5.2.0 for a bit now.

If anyone else has this problem on Ubuntu, the fix is to compile and use 5.2.0 from here and then follow the instructions on the QT page of the wiki to set the environment variables properly.

To use ethereal as a desktop app, I just built a small wrapper in my ~/.bin folder which sets the proper environment variables per the wiki instructions prior to launching ethereal and then exec that wrapper around ethereal from the *.desktop file.

I should have added this a while ago but I forgot.... Just updated the wiki.

stephantual commented 10 years ago

RC7 was not installing for me on 5.2.0, I had to flip to 5.2.1 to make it install. I'm checking RC8 now

stephantual commented 10 years ago

RC8 fails to import samplecoin app with qt5.2.1 , confirmed.

stephantual commented 10 years ago

Right, there seems to be a brew problem whereby people are misled by error messages on install of a new release that somehow 5.2.1 is now supported (it's NOT).

If you are having problems with QT during install (ie, errors installing with messages along the lines of QT 5.2.1 not found), you probably have accidentaly brewed QT 5.2.1 or higher before downgrading to 5.2.0. Same thing if you find that 'import app' causes a 'panic' in the console.

I have no idea why that's happening, although it appears brew is being naughty and leaving links behind or similar issue.

To solve this problem, the workaround is as follows:

stephantual commented 10 years ago

Confirmed fixed on RC11 clean OS install. For those still having issues, see workaround above. Obscuren please close.

mihi-tr commented 10 years ago

Just ran into the same issue (running on Arch linux) is there a reason to use a very specific version of QT5?

SimonTomlin commented 10 years ago

I had the same issue running POC5 RC11 Ubuntu 14.04 I had already previously gone through the process of installing Qt 5.2.0 Used GO to update the installation

Putting the following in the ~/.bashrc file solved it for me (change the /home/simon of course)

export PKG_CONFIG_PATH=/home/simon/Qt5.2.0/5.2.0/gcc_64/lib/pkgconfig export CGO_CPPFLAGS="-I/home/simon/Qt5.2.0/5.2.0/gcc_64/include/QtCore/5.2.0/QtCore" export LD_LIBRARY_PATH=/home/simon/Qt5.2.0/5.2.0/gcc_64/lib

This is also in the wiki but posted here as well

tymat commented 10 years ago

Solved this by following these instructions on how to downgrade

OS X Instructions with brew

cd `brew --prefix`
git checkout 1ca68c0 Library/Formula/qt5.rb
brew install qt5
export PKG_CONFIG_PATH=`brew --prefix qt5`/lib/pkgconfig
export QT5VERSION=`pkg-config --modversion Qt5Core`
export CGO_CPPFLAGS=-I`brew --prefix qt5`/include/QtCore/$QT5VERSION/QtCore

If you already have a previous installation before downgrading to Qt 5.2.0 then you'll need to cleanup the Qt5 related dependencies

rm -rf $GOPATH/bin/ether*
rm -rf $GOPATH/src/github.com/ethereum/go-ethereum
rm -rf $GOPATH/src/github.com/go-qml
rm -rf $GOPATH/src/gopkg.in/qml.v0

Install ethereum and ethereal as usual

go get -u -v github.com/ethereum/go-ethereum/ethereum
go get -u -v github.com/ethereum/go-ethereum/ethereal
stephantual commented 10 years ago

It's clear all these are related to users installing something else than the only accepted version of QT: 5.2.0 . Can we please close?