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

Unable to launch on macOS #107

Open
aptonline opened this issue Aug 27, 2024 · 5 comments
Open

Unable to launch on macOS #107

aptonline opened this issue Aug 27, 2024 · 5 comments

Comments

@aptonline
Copy link

Running Sonoma (14.6.1 on M1 Studio that app is not launching but showing no error. In the logs I do see the following however:

Last login: Tue Aug 27 11:23:34 on ttys000
/Applications/WiiUDownloader.app/Contents/MacOS/WiiUDownloader ; exit;          
apt@Studio ~ % /Applications/WiiUDownloader.app/Contents/MacOS/WiiUDownloader ; exit;

(<unknown>:23656): Gtk-WARNING **: 11:30:01.560: Could not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/check-symbolic.svg.
This may indicate that pixbuf loaders or the mime database could not be found.
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow should only be instantiated on the main thread!'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007ff801f2789e __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007ff801a17d5b objc_exception_throw + 48
	2   CoreFoundation                      0x00007ff801f4b0bc -[NSException raise] + 9
	3   AppKit                              0x00007ff805499011 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1595
	4   AppKit                              0x00007ff8054989d0 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
	5   AppKit                              0x00007ff80575b361 -[NSWindow initWithContentRect:styleMask:backing:defer:screen:] + 50
	6   libgdk-3.0.dylib                    0x000000010e8ad5a6 -[GdkQuartzNSWindow initWithContentRect:styleMask:backing:defer:screen:] + 61
	7   libgdk-3.0.dylib                    0x000000010e8b87c8 _gdk_quartz_display_create_window_impl + 992
	8   libgdk-3.0.dylib                    0x000000010e89ca0e gdk_window_new + 862
	9   libgtk-3.0.dylib                    0x000000010f1f066f gtk_window_realize + 931
	10  libgobject-2.0.0.dylib              0x000000010df47d57 _g_closure_invoke_va + 212
	11  libgobject-2.0.0.dylib              0x000000010df5d551 signal_emit_valist_unlocked + 2540
	12  libgobject-2.0.0.dylib              0x000000010df5cb44 g_signal_emit_valist + 52
	13  libgobject-2.0.0.dylib              0x000000010df5da30 g_signal_emit + 120
	14  libgtk-3.0.dylib                    0x000000010f1d3cb8 gtk_widget_realize + 279
	15  libgtk-3.0.dylib                    0x000000010f1efebe gtk_window_show + 81
	16  libgobject-2.0.0.dylib              0x000000010df47b8e g_closure_invoke + 199
	17  libgobject-2.0.0.dylib              0x000000010df5e226 signal_emit_unlocked_R + 995
	18  libgobject-2.0.0.dylib              0x000000010df5d2b3 signal_emit_valist_unlocked + 1870
	19  libgobject-2.0.0.dylib              0x000000010df5cb44 g_signal_emit_valist + 52
	20  libgobject-2.0.0.dylib              0x000000010df5da30 g_signal_emit + 120
	21  libgtk-3.0.dylib                    0x000000010f1d3614 gtk_widget_show + 152
	22  WiiUDownloader                      0x00000001046db204 WiiUDownloader + 455172
)
libc++abi: terminating due to uncaught exception of type NSException
SIGABRT: abort
PC=0x7ff801d9edb6 m=5 sigcode=0
signal arrived during cgo execution

goroutine 1 gp=0xc0000061c0 m=5 mp=0xc000100008 [syscall, locked to thread]:
runtime.cgocall(0x104979a70, 0xc000028718)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/cgocall.go:157 +0x4b fp=0xc0000286f0 sp=0xc0000286b8 pc=0x10467352b
github.com/gotk3/gotk3/gtk._Cfunc_gtk_widget_show(0x7f8062822980)
	_cgo_gotypes.go:34987 +0x3f fp=0xc000028718 sp=0xc0000286f0 pc=0x1048dc57f
main.main.func2.3.(*Widget).Show.2(0xc000216090?)
	/Users/runner/go/pkg/mod/github.com/gotk3/[email protected]/gtk/widget.go:253 +0x39 fp=0xc000028750 sp=0xc000028718 pc=0x104943dd9
github.com/gotk3/gotk3/gtk.(*Widget).Show(...)
	/Users/runner/go/pkg/mod/github.com/gotk3/[email protected]/gtk/widget.go:253
main.main.func2.3()
	/Users/runner/work/WiiUDownloader/WiiUDownloader/cmd/WiiUDownloader/main.go:93 +0x4f fp=0xc000028788 sp=0xc000028750 pc=0x104943d8f
runtime.call16(0xc000206390, 0xc0002081c8, 0x0, 0x0, 0x0, 0x0, 0xc000028aa0)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/asm_amd64.s:770 +0x43 fp=0xc0000287a8 sp=0xc000028788 pc=0x1046d9a83
runtime.reflectcall(0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	<autogenerated>:1 +0x36 fp=0xc0000287e8 sp=0xc0000287a8 pc=0x1046dde36
reflect.Value.call({0x104a5ee80?, 0xc0002081c8?, 0xc0000c4e58?}, {0x104991062, 0x4}, {0x0, 0x0, 0xc0002141a0?})
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/reflect/value.go:596 +0xca6 fp=0xc000028df0 sp=0xc0000287e8 pc=0x104706ce6
reflect.Value.Call({0x104a5ee80?, 0xc0002081c8?, 0x10?}, {0x0?, 0x104685378?, 0x15af50208?})
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/reflect/value.go:380 +0xb9 fp=0xc000028e68 sp=0xc000028df0 pc=0x104705f79
github.com/gotk3/gotk3/glib.sourceFunc(0x46850a5?)
	/Users/runner/go/pkg/mod/github.com/gotk3/[email protected]/glib/glib.go:324 +0xa5 fp=0xc000028f10 sp=0xc000028e68 pc=0x1048c84e5
_cgoexp_75ce697d4a8b_sourceFunc(0x30f6dc730)
	_cgo_gotypes.go:6436 +0x1e fp=0xc000028f28 sp=0xc000028f10 pc=0x1048cb83e
runtime.cgocallbackg1(0x1048cb820, 0x30f6dc730, 0x0)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/cgocall.go:403 +0x295 fp=0xc000028fe8 sp=0xc000028f28 pc=0x104673c55
runtime.cgocallbackg(0x1048cb820, 0x30f6dc730, 0x0)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/cgocall.go:322 +0x136 fp=0xc000029060 sp=0xc000028fe8 pc=0x104673916
runtime.cgocallbackg(0x1048cb820, 0x30f6dc730, 0x0)
	<autogenerated>:1 +0x29 fp=0xc000029088 sp=0xc000029060 pc=0x1046dda29
runtime.cgocallback(0xc0000290e8, 0x104673555, 0x104965760)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/asm_amd64.s:1079 +0xcc fp=0xc0000290b0 sp=0xc000029088 pc=0x1046db32c
runtime.systemstack_switch()
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/asm_amd64.s:474 +0x8 fp=0xc0000290c0 sp=0xc0000290b0 pc=0x1046d9528
runtime.cgocall(0x104965760, 0xc000029120)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/cgocall.go:175 +0x75 fp=0xc0000290f8 sp=0xc0000290c0 pc=0x104673555
github.com/gotk3/gotk3/gtk._Cfunc_gtk_main()
	_cgo_gotypes.go:17494 +0x3f fp=0xc000029120 sp=0xc0000290f8 pc=0x1048d789f
github.com/gotk3/gotk3/gtk.Main(...)
	/Users/runner/go/pkg/mod/github.com/gotk3/[email protected]/gtk/gtk.go:1243
main.main.func3(0x0?)
	/Users/runner/work/WiiUDownloader/WiiUDownloader/cmd/WiiUDownloader/main.go:98 +0x10 fp=0xc000029130 sp=0xc000029120 pc=0x1049550f0
runtime.call16(0xc000095140, 0x104b45b50, 0x0, 0x0, 0x0, 0x8, 0xc000029448)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/asm_amd64.s:770 +0x43 fp=0xc000029150 sp=0xc000029130 pc=0x1046d9a83
runtime.reflectcall(0x104af5c60?, 0xc000206360?, 0x1?, 0x4998133?, 0x1?, 0x12?, 0x104af5c60?)
	<autogenerated>:1 +0x36 fp=0xc000029190 sp=0xc000029150 pc=0x1046dde36
reflect.Value.call({0x104a66360?, 0x104b45b50?, 0x104b4ebe8?}, {0x104991062, 0x4}, {0xc0002081f8, 0x1, 0xc000200140?})
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/reflect/value.go:596 +0xca6 fp=0xc000029798 sp=0xc000029190 pc=0x104706ce6
reflect.Value.Call({0x104a66360?, 0x104b45b50?, 0x600003848820?}, {0xc0002081f8?, 0x104af5c60?, 0x0?})
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/reflect/value.go:380 +0xb9 fp=0xc000029810 sp=0xc000029798 pc=0x104705f79
github.com/gotk3/gotk3/glib.goMarshal(0x10?, 0x0, 0x1, 0x30f6dcad0, 0xc0000061c0?, 0x1?)
	/Users/runner/go/pkg/mod/github.com/gotk3/[email protected]/glib/glib.go:271 +0xa11 fp=0xc000029ac0 sp=0xc000029810 pc=0x1048c7cf1
_cgoexp_75ce697d4a8b_goMarshal(0x1046b1b19?)
	_cgo_gotypes.go:6427 +0x2c fp=0xc000029b00 sp=0xc000029ac0 pc=0x1048cb7ec
runtime.cgocallbackg1(0x1048cb7c0, 0x30f6dc8f8, 0x0)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/cgocall.go:403 +0x295 fp=0xc000029bc0 sp=0xc000029b00 pc=0x104673c55
runtime.cgocallbackg(0x1048cb7c0, 0x30f6dc8f8, 0x0)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/cgocall.go:322 +0x136 fp=0xc000029c38 sp=0xc000029bc0 pc=0x104673916
runtime.cgocallbackg(0x1048cb7c0, 0x30f6dc8f8, 0x0)
	<autogenerated>:1 +0x29 fp=0xc000029c60 sp=0xc000029c38 pc=0x1046dda29
runtime.cgocallback(0xc000029cc0, 0x104673555, 0x104955870)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/asm_amd64.s:1079 +0xcc fp=0xc000029c88 sp=0xc000029c60 pc=0x1046db32c
runtime.systemstack_switch()
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/asm_amd64.s:474 +0x8 fp=0xc000029c98 sp=0xc000029c88 pc=0x1046d9528
runtime.cgocall(0x104955870, 0xc000029cf8)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/cgocall.go:175 +0x75 fp=0xc000029cd0 sp=0xc000029c98 pc=0x104673555
github.com/gotk3/gotk3/glib._Cfunc_g_application_run(0x7f806291cef0, 0x1, 0x600002f03180)
	_cgo_gotypes.go:1584 +0x4b fp=0xc000029cf8 sp=0xc000029cd0 pc=0x1048c322b
github.com/gotk3/gotk3/glib.(*Application).Run.func4(0x600002f03180?, {0xc000016170?, 0x1, 0x0?}, 0x600002f03180)
	/Users/runner/go/pkg/mod/github.com/gotk3/[email protected]/glib/application.go:185 +0x74 fp=0xc000029d30 sp=0xc000029cf8 pc=0x1048c6174
github.com/gotk3/gotk3/glib.(*Application).Run(0xc0002062d0, {0xc000016170, 0x1, 0x1})
	/Users/runner/go/pkg/mod/github.com/gotk3/[email protected]/glib/application.go:185 +0x18d fp=0xc000029dd0 sp=0xc000029d30 pc=0x1048c60ad
main.main()
	/Users/runner/work/WiiUDownloader/WiiUDownloader/cmd/WiiUDownloader/main.go:100 +0x768 fp=0xc000029f50 sp=0xc000029dd0 pc=0x104943b68
runtime.main()
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/proc.go:271 +0x29d fp=0xc000029fe0 sp=0xc000029f50 pc=0x1046a883d
runtime.goexit({})
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc000029fe8 sp=0xc000029fe0 pc=0x1046db561

goroutine 2 gp=0xc000006c40 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/proc.go:402 +0xce fp=0xc000050fa8 sp=0xc000050f88 pc=0x1046a8c6e
runtime.goparkunlock(...)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/proc.go:408
runtime.forcegchelper()
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/proc.go:326 +0xb3 fp=0xc000050fe0 sp=0xc000050fa8 pc=0x1046a8af3
runtime.goexit({})
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc000050fe8 sp=0xc000050fe0 pc=0x1046db561
created by runtime.init.6 in goroutine 1
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/proc.go:314 +0x1a

goroutine 3 gp=0xc000007180 m=nil [GC sweep wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/proc.go:402 +0xce fp=0xc000051780 sp=0xc000051760 pc=0x1046a8c6e
runtime.goparkunlock(...)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/proc.go:408
runtime.bgsweep(0xc00007c000)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/mgcsweep.go:278 +0x94 fp=0xc0000517c8 sp=0xc000051780 pc=0x104694c74
runtime.gcenable.gowrap1()
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/mgc.go:203 +0x25 fp=0xc0000517e0 sp=0xc0000517c8 pc=0x1046895c5
runtime.goexit({})
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc0000517e8 sp=0xc0000517e0 pc=0x1046db561
created by runtime.gcenable in goroutine 1
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/mgc.go:203 +0x66

goroutine 4 gp=0xc000007340 m=nil [GC scavenge wait]:
runtime.gopark(0xc00007c000?, 0x104a2afe8?, 0x1?, 0x0?, 0xc000007340?)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/proc.go:402 +0xce fp=0xc000051f78 sp=0xc000051f58 pc=0x1046a8c6e
runtime.goparkunlock(...)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/proc.go:408
runtime.(*scavengerState).park(0x104d9e340)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/mgcscavenge.go:425 +0x49 fp=0xc000051fa8 sp=0xc000051f78 pc=0x104692669
runtime.bgscavenge(0xc00007c000)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/mgcscavenge.go:653 +0x3c fp=0xc000051fc8 sp=0xc000051fa8 pc=0x104692bfc
runtime.gcenable.gowrap2()
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/mgc.go:204 +0x25 fp=0xc000051fe0 sp=0xc000051fc8 pc=0x104689565
runtime.goexit({})
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc000051fe8 sp=0xc000051fe0 pc=0x1046db561
created by runtime.gcenable in goroutine 1
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/mgc.go:204 +0xa5

goroutine 5 gp=0xc000007c00 m=nil [finalizer wait]:
runtime.gopark(0xc000050648?, 0x10467d2e5?, 0xa8?, 0x1?, 0xc0000061c0?)
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/proc.go:402 +0xce fp=0xc000050620 sp=0xc000050600 pc=0x1046a8c6e
runtime.runfinq()
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/mfinal.go:194 +0x107 fp=0xc0000507e0 sp=0xc000050620 pc=0x104688607
runtime.goexit({})
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc0000507e8 sp=0xc0000507e0 pc=0x1046db561
created by runtime.createfing in goroutine 1
	/Users/runner/hostedtoolcache/go/1.22.4/x64/src/runtime/mfinal.go:164 +0x3d

rax    0x0
rbx    0x6
rcx    0x0
rdx    0x0
rdi    0x2003
rsi    0x6
rbp    0x30f6da900
rsp    0x30f6da8d8
r8     0x30f6da7a0
r9     0x30f6daa00
r10    0x0
r11    0x60000031cf00
r12    0x2003
r13    0x3000000008
r14    0x30f6dd000
r15    0x16
rip    0x7ff801d9edb6
rflags 0x246
cs     0x2b
fs     0x0
gs     0x0

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...none found.

[Process completed]
@vrmiguel
Copy link

Yep, same here

@aptonline
Copy link
Author

As a workaround I've downgraded to v2.59 and this works as expected.

@c22dev
Copy link

c22dev commented Sep 23, 2024

The solution for me was to use Rosetta 2 and launch the app as if it was x86_64

Open a Terminal and run the following commands

First, install Rosetta :

softwareupdate --install-rosetta --agree-to-license

Then, launch the app (this is needed every time you launch the app, and this assumes the app is in /Application)!

arch -x86_64 /Applications/WiiUDownloader.app/Contents/MacOS/WiiUDownloader

@lediara
Copy link

lediara commented Oct 7, 2024

Hey, that doesn't work for me.
objc[58559]: Class GNotificationCenterDelegate is implemented in both /Applications/WiiUDownloader.app/Contents/MacOS/lib/libgio-2.0.0.dylib (0x1099d76b0) and /usr/local/Cellar/glib/2.82.1/lib/libgio-2.0.0.dylib (0x1606c16c0). One of the two will be used. Which one is undefined.

(:58559): GdkPixbuf-CRITICAL **: 13:40:33.911: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(:58559): GdkPixbuf-CRITICAL **: 13:40:33.911: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(:58559): GdkPixbuf-CRITICAL **: 13:40:33.911: gdk_pixbuf_set_option: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(:58559): GdkPixbuf-CRITICAL **: 13:40:33.911: gdk_pixbuf_set_option: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(:58559): GdkPixbuf-CRITICAL **: 13:40:33.912: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(:58559): GdkPixbuf-CRITICAL **: 13:40:33.912: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(:58559): GdkPixbuf-CRITICAL **: 13:40:33.912: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(:58559): GdkPixbuf-CRITICAL **: 13:40:33.912: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(:58559): GdkPixbuf-CRITICAL **: 13:40:33.912: gdk_pixbuf_scale_simple: assertion 'GDK_IS_PIXBUF (src)' failed

(:58559): Gtk-WARNING **: 13:40:33.912: Could not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/check-symbolic.svg.
This may indicate that pixbuf loaders or the mime database could not be found.

(:58559): GLib-CRITICAL **: 13:40:33.912: g_propagate_error: assertion 'src != NULL' failed
SIGSEGV: segmentation violation
PC=0x10a7cf0f7 m=0 sigcode=1 addr=0x8
signal arrived during cgo execution

@lediara
Copy link

lediara commented Oct 7, 2024

the registers rcx, rdx, r8, r9 all contain 0x0.

also known as a void pointer

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

4 participants