dmigwi / sample

0 stars 0 forks source link

Crash on Mac's Os X #542

Open dmigwi opened 1 year ago

dmigwi commented 1 year ago
2023-02-23 01:38:42.717 [WRN] DCR: Peering attempt failed: localpeer.ConnectOutbound(96.92.233.221:19108): dial tcp 96.92.233.221:19108: connect: connection refused
^C^C2023-02-23 01:39:03.812 [INF] UI: ...Initiating the app shutdown protocols...
2023-02-23 01:39:03.815 [INF] UI: Displaying the shutdown wallets view page
2023-02-23 01:39:03.815 [INF] DLWL: Shutting down libwallet
2023-02-23 01:39:03.815 [INF] DCR: Canceling sync. May take a while for sync to fully cancel.
panic: runtime/cgo: misuse of an invalid Handle

goroutine 17 [running, locked to thread]:
runtime/cgo.Handle.Value(...)
    /usr/local/go/src/runtime/cgo/handle.go:124
gioui.org/app.gio_onFrameCallback(0x0?, 0xc000006601?)
    /Users/migwindungu/theSecretCoder/App/Golang/pkg/mod/gioui.org@v0.0.0-20230118222818-e0cf570339bd/app/os_darwin.go:204 +0x85
exit status 2

![Screenshot_2023-02-23_at_02.01.14]

(Issue originally authored by: @Kennedy Izuegbu in gitlab.com)

dmigwi commented 1 year ago

Similar crash reported by people working on a different product: https://github.com/lima-vm/lima/issues/1381

By Migwi Ndung'u on 2023-03-04T07:37:04 (imported from GitLab)

(Comment originally authored by: @Kennedy Izuegbu in gitlab.com)

dmigwi commented 1 year ago

I am unable to replicate this crash on my updated Mac OS of Monterey. I have also learnt from the project referenced above that the same crash occurs in the latest release of Ventura Mac OS.

Although not yet proven I suspect the crash has a relationship with the Garbage Collector cleaning up memory its not supposed to touch when the CPU gets overwhelmed by the workload. More explanation is available here: https://github.com/lima-vm/lima/issues/1381#issuecomment-1454866968

For now I will move it to the blocked section till we are able to replicate it.

By Migwi Ndung'u on 2023-03-06T22:54:27 (imported from GitLab)

(Comment originally authored by: @Kennedy Izuegbu in gitlab.com)

dmigwi commented 1 year ago

assigned to @dmigwi

By Migwi Ndung'u on 2023-03-02T16:36:06 (imported from GitLab)

(Comment originally authored by: @Kennedy Izuegbu in gitlab.com)