[software development] 运行govcl的miniwebview失败
Tofloor
poster avatar
daswerden
deepin
2024-05-18 10:13
Author

本人使用的是go语言,在20.9 amd64上运行https://github.com/ying32/govcl/tree/v2.2.3/samples/miniwebview失败,给出的错误如下:

SIGSEGV: segmentation violation
PC=0x0 m=0 sigcode=1 addr=0x0
signal arrived during cgo execution

goroutine 1 gp=0xc0000061c0 m=0 mp=0x880a80 [syscall, locked to thread]:
runtime.cgocall(0x56f380, 0xc000036dd0)
/usr/local/go/src/runtime/cgocall.go:157 +0x4b fp=0xc000036da8 sp=0xc000036d70 pc=0x40b56b
github.com/ying32/govcl/vcl/api/dllimports._Cfunc_Syscall1(0x7f0f2a979be0, 0x7f0f2860f210)
_cgo_gotypes.go:112 +0x4c fp=0xc000036dd0 sp=0xc000036da8 pc=0x4d3cec
github.com/ying32/govcl/vcl/api/dllimports.SyscallN(0x1a2c040?, {0xc000036ea8?, 0x3d6a?, 0x5c0a20?})
~/go/pkg/mod/github.com/ying32/[email protected]+incompatible/vcl/api/dllimports/dll_posix.go:91 +0x6e fp=0xc000036e50 sp=0xc000036dd0 pc=0x4d5f6e
github.com/ying32/govcl/vcl/api/dllimports.ProcAddr.Call(...)
~/go/pkg/mod/github.com/ying32/[email protected]+incompatible/vcl/api/dllimports/dll_posix.go:78
github.com/ying32/govcl/vcl/api.syscallN(0x5c0a20?, {0xc000036ea8, 0x1, 0x1})
~/go/pkg/mod/github.com/ying32/[email protected]+incompatible/vcl/api/dylib.go:65 +0x65 fp=0xc000036e88 sp=0xc000036e50 pc=0x4d77c5
github.com/ying32/govcl/vcl/api.MiniWebview_Create(...)
~/go/pkg/mod/github.com/ying32/[email protected]+incompatible/vcl/api/importFuncsAuto.go:37502
github.com/ying32/govcl/vcl.NewMiniWebview({0x672358, 0xc000130000})
~/go/pkg/mod/github.com/ying32/[email protected]+incompatible/vcl/miniwebview.go:32 +0x6d fp=0xc000036ec8 sp=0xc000036e88 pc=0x52c82d
main.(*TMainForm).OnFormCreate(0xc000130000, {0x0?, 0x0?})
/mnt/data/myprog/golang/gui/govcl/samples2.2.3/miniwebview/MainFormImpl.go:22 +0xb9 fp=0xc000036f78 sp=0xc000036ec8 pc=0x55d459
runtime.call32(0xc000190ab0, 0xc000193700, 0x0, 0x0, 0x0, 0x18, 0xc0000372a0)
/usr/local/go/src/runtime/asm_amd64.s:771 +0x43 fp=0xc000036fa8 sp=0xc000036f78 pc=0x46b483
runtime.reflectcall(0x5c0a20?, 0xc000130000?, 0x4?, 0x5d3130?, 0x0?, 0x12?, 0x5a1740?)
:1 +0x36 fp=0xc000036fe8 sp=0xc000036fa8 pc=0x46f816
reflect.Value.call({0x5c0a20?, 0xc000130000?, 0x5c0a20?}, {0x5c58a5, 0x4}, {0xc000037c98, 0x1, 0x0?})
/usr/local/go/src/reflect/value.go:596 +0xce5 fp=0xc0000375f0 sp=0xc000036fe8 pc=0x48c3a5
reflect.Value.Call({0x5c0a20?, 0xc000130000?, 0x0?}, {0xc000037c98?, 0x0?, 0x8000107?})
/usr/local/go/src/reflect/value.go:380 +0xb9 fp=0xc000037668 sp=0xc0000375f0 pc=0x48b479
github.com/ying32/govcl/vcl.callEvent({0x5c0a20?, 0xc000130000?, 0x0?}, {0xc000037c98?, 0x672ae0?, 0xc00019a340?})
~/go/pkg/mod/github.com/ying32/[email protected]+incompatible/vcl/autoBindEvents.go:214 +0x74 fp=0xc0000376b8 sp=0xc000037668 pc=0x4ef374
github.com/ying32/govcl/vcl.autoBindEvents({0x5c0a20?, 0xc000130000?, 0x7f0f28616e50?}, {0x672440, 0xc00010e210}, 0x1, 0xec?)
~/go/pkg/mod/github.com/ying32/[email protected]+incompatible/vcl/autoBindEvents.go:175 +0x649 fp=0xc000037cc8 sp=0xc0000376b8 pc=0x4ee929
github.com/ying32/govcl/vcl.fullFiledVal({0x672440, 0xc00010e210}, {0x5c0a20?, 0xc000130000?, 0x0?}, 0x1, 0x0)
~/go/pkg/mod/github.com/ying32/[email protected]+incompatible/vcl/resform.go:124 +0x271 fp=0xc000037d70 sp=0xc000037cc8 pc=0x53a8b1
github.com/ying32/govcl/vcl.resObjectBuild(0x0, {0x0, 0x0}, 0x7f0f286078f0, {0xc00006ef30, 0x1, 0xc00006ef40?})
~/go/pkg/mod/github.com/ying32/[email protected]+incompatible/vcl/resform.go:232 +0x805 fp=0xc000037eb8 sp=0xc000037d70 pc=0x53b1e5
github.com/ying32/govcl/vcl.(*TApplication).CreateForm(0x0?, {0xc00006ef30?, 0x1?, 0x1?})
~/go/pkg/mod/github.com/ying32/[email protected]+incompatible/vcl/applicationdef.go:86 +0x32 fp=0xc000037f08 sp=0xc000037eb8 pc=0x4ee112
main.main()
/mnt/data/myprog/golang/gui/govcl/samples2.2.3/miniwebview/main.go:10 +0x7c fp=0xc000037f50 sp=0xc000037f08 pc=0x55d37c
runtime.main()
/usr/local/go/src/runtime/proc.go:271 +0x29d fp=0xc000037fe0 sp=0xc000037f50 pc=0x43e67d
runtime.goexit({})
/usr/local/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc000037fe8 sp=0xc000037fe0 pc=0x46cea1

goroutine 2 gp=0xc000006c40 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:402 +0xce fp=0xc00005efa8 sp=0xc00005ef88 pc=0x43eaae
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:408
runtime.forcegchelper()
/usr/local/go/src/runtime/proc.go:326 +0xb3 fp=0xc00005efe0 sp=0xc00005efa8 pc=0x43e933
runtime.goexit({})
/usr/local/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc00005efe8 sp=0xc00005efe0 pc=0x46cea1
created by runtime.init.6 in goroutine 1
/usr/local/go/src/runtime/proc.go:314 +0x1a

goroutine 3 gp=0xc000007180 m=nil [GC sweep wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:402 +0xce fp=0xc00005f780 sp=0xc00005f760 pc=0x43eaae
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:408
runtime.bgsweep(0xc000088000)
/usr/local/go/src/runtime/mgcsweep.go:278 +0x94 fp=0xc00005f7c8 sp=0xc00005f780 pc=0x42a814
runtime.gcenable.gowrap1()
/usr/local/go/src/runtime/mgc.go:203 +0x25 fp=0xc00005f7e0 sp=0xc00005f7c8 pc=0x41f165
runtime.goexit({})
/usr/local/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc00005f7e8 sp=0xc00005f7e0 pc=0x46cea1
created by runtime.gcenable in goroutine 1
/usr/local/go/src/runtime/mgc.go:203 +0x66

goroutine 4 gp=0xc000007340 m=nil [GC scavenge wait]:
runtime.gopark(0xc000088000?, 0x66f030?, 0x1?, 0x0?, 0xc000007340?)
/usr/local/go/src/runtime/proc.go:402 +0xce fp=0xc00005ff78 sp=0xc00005ff58 pc=0x43eaae
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:408
runtime.(*scavengerState).park(0x880420)
/usr/local/go/src/runtime/mgcscavenge.go:425 +0x49 fp=0xc00005ffa8 sp=0xc00005ff78 pc=0x428209
runtime.bgscavenge(0xc000088000)
/usr/local/go/src/runtime/mgcscavenge.go:653 +0x3c fp=0xc00005ffc8 sp=0xc00005ffa8 pc=0x42879c
runtime.gcenable.gowrap2()
/usr/local/go/src/runtime/mgc.go:204 +0x25 fp=0xc00005ffe0 sp=0xc00005ffc8 pc=0x41f105
runtime.goexit({})
/usr/local/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc00005ffe8 sp=0xc00005ffe0 pc=0x46cea1
created by runtime.gcenable in goroutine 1
/usr/local/go/src/runtime/mgc.go:204 +0xa5

goroutine 5 gp=0xc000007c00 m=nil [finalizer wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:402 +0xce fp=0xc000060620 sp=0xc000060600 pc=0x43eaae
runtime.runfinq()
/usr/local/go/src/runtime/mfinal.go:194 +0x107 fp=0xc0000607e0 sp=0xc000060620 pc=0x41e1a7
runtime.goexit({})
/usr/local/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc0000607e8 sp=0xc0000607e0 pc=0x46cea1
created by runtime.createfing in goroutine 1
/usr/local/go/src/runtime/mfinal.go:164 +0x3d

rax 0x0
rbx 0xc000036dd0
rcx 0x7f0f78671360
rdx 0x7f0f2aeb7090
rdi 0x1fa0
rsi 0x1
rbp 0x7ffcc77ca9f0
rsp 0x7ffcc77ca8f8
r8 0x7ffcc77ca690
r9 0x1a2bfd8
r10 0x0
r11 0x206
r12 0xc000038000
r13 0x0
r14 0xc0000061c0
r15 0xffffffffff
rip 0x0
rflags 0x10246
cs 0x33
fs 0x0
gs 0x0
请有能力的人帮忙分析一下原因,运行需要的so库可以从 https://github.com/ying32/govcl进行下载,谢谢。

Reply Favorite View the author
All Replies
yehun
deepin
2024-05-19 23:06
#1

你问错地方了吧,去https://github.com/ying32/govcl提issue都比在这问强

Reply View the author