fibercrypto / fibercrypto/fibercryptowallet
Crash in main.go:42 at load time
- Dominant language
- Go
- Stars
- 29
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
App crashes at load time.
**Environment information:**
- OS: Mac OS X
- Platform: Darwin 17.4.0 x86_64
**Steps to Reproduce**
1. Execute `make run`
**Actual behavior**
App fails with message
```
$ make run
Running FiberCryptoWallet...
[2019-12-23T21:40:41-05:00] INFO [Connection Pool]: Creating pool section
[2019-12-23T21:40:41-05:00] INFO [Altcoin plugin entry point]: Loading Altcoin manager
[2019-12-23T21:40:41-05:00] INFO [Altcoin plugin entry point]: Register plugin to Altcoin manager
[2019-12-23T21:40:41-05:00] INFO [Altcoin plugin entry point]: Register altcoin to Altcoin manager
[2019-12-23T21:40:41-05:00] INFO [Altcoin plugin entry point]: Register altcoin to Altcoin manager
[2019-12-23T21:40:41-05:00] INFO [Altcoin plugin entry point]: Register altcoin to Altcoin manager
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xd08ce138 pc=0x6e6dff7]
runtime stack:
runtime.throw(0x4c2b431, 0x2a)
/usr/local/Cellar/go@1.12/1.12.14/libexec/src/runtime/panic.go:617 +0x72
runtime.sigpanic()
/usr/local/Cellar/go@1.12/1.12.14/libexec/src/runtime/signal_unix.go:374 +0x4a9
goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x49e8c50, 0xc000175d00, 0xc000175cf8)
/usr/local/Cellar/go@1.12/1.12.14/libexec/src/runtime/cgocall.go:128 +0x5b fp=0xc000175cd0 sp=0xc000175c98 pc=0x40078cb
github.com/therecipe/qt/qml._Cfunc_QJSEngine_GlobalObject(0x8a0ec80, 0x0)
_cgo_gotypes.go:258 +0x4a fp=0xc000175d00 sp=0xc000175cd0 pc=0x45a501a
github.com/therecipe/qt/qml.(*QJSEngine).GlobalObject.func1(0xc0000b6198, 0x4af67a0)
$GOPATH/src/github.com/therecipe/qt/qml/qml-minimal.go:127 +0x66 fp=0xc000175d40 sp=0xc000175d00 pc=0x45b1c66
github.com/therecipe/qt/qml.(*QJSEngine).GlobalObject(0xc0000b6198, 0x4c1a3ea)
$GOPATH/src/github.com/therecipe/qt/qml/qml-minimal.go:127 +0x47 fp=0xc000175d80 sp=0xc000175d40 pc=0x45a9497
github.com/therecipe/qt/qml.Z_initEngine(0x4defec0, 0xc0000b6198)
$GOPATH/src/github.com/therecipe/qt/qml/utils-qml.go:30 +0x1ef fp=0xc000175ef0 sp=0xc000175d80 pc=0x459e78f
github.com/therecipe/qt/qml.NewQQmlApplicationEngine(0x0, 0x0, 0x0)
$GOPATH/src/github.com/therecipe/qt/qml/qml-minimal.go:873 +0xd1 fp=0xc000175f30 sp=0xc000175ef0 pc=0x45ac781
main.main()
$GOPATH/src/github.com/fibercrypto/fibercryptowallet/main.go:42 +0x1ce fp=0xc000175f98 sp=0xc000175f30 pc=0x48cc48e
runtime.main()
/usr/local/Cellar/go@1.12/1.12.14/libexec/src/runtime/proc.go:200 +0x20c fp=0xc000175fe0 sp=0xc000175f98 pc=0x403241c
runtime.goexit()
/usr/local/Cellar/go@1.12/1.12.14/libexec/src/runtime/asm_amd64.s:1337 +0x1 fp=0xc000175fe8 sp=0xc000175fe0 pc=0x405cd61
goroutine 18 [runnable]:
github.com/therecipe/qt/qml._Cfunc_QJSValue_DestroyQJSValue(0x769c270)
_cgo_gotypes.go:597 +0x41
github.com/therecipe/qt/qml.(*QJSValue).DestroyQJSValue.func1(0xc000405208)
$GOPATH/src/github.com/therecipe/qt/qml/qml-minimal.go:756 +0x64
github.com/therecipe/qt/qml.(*QJSValue).DestroyQJSValue(0xc000405208)
$GOPATH/src/github.com/therecipe/qt/qml/qml-minimal.go:756 +0x43
goroutine 34 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/Cellar/go@1.12/1.12.14/libexec/src/runtime/sigqueue.go:139 +0x9f
os/signal.loop()
/usr/local/Cellar/go@1.12/1.12.14/libexec/src/os/signal/signal_unix.go:23 +0x22
created by os/signal.init.0
/usr/local/Cellar/go@1.12/1.12.14/libexec/src/os/signal/signal_unix.go:29 +0x41
make: *** [run] Error 2
```
**Expected behavior**
App should load instead
**Additional context**
The offending line is
```
$ head -n42 main.go | tail -n 1
engine := qml.NewQQmlApplicationEngine(nil)
```
Contributor guide
Assessment
This issue has not been assessed yet.