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

segmentation violation at 9-th start #323

Open
0Karakurt0 opened this issue Sep 10, 2021 · 0 comments
Open

segmentation violation at 9-th start #323

0Karakurt0 opened this issue Sep 10, 2021 · 0 comments

Comments

@0Karakurt0
Copy link

Error log

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x6f1805]

goroutine 1 [running, locked to thread]:
github.com/hajimehoshi/ebiten/v2/internal/glfw.(*Window).SetTitle(...)
	/home/runner/work/darktile/darktile/vendor/github.com/hajimehoshi/ebiten/v2/internal/glfw/glfw_notwindows.go:232
github.com/hajimehoshi/ebiten/v2/internal/uidriver/glfw.(*UserInterface).setWindowTitle(0xb64860, 0x889aa7, 0x8)
	/home/runner/work/darktile/darktile/vendor/github.com/hajimehoshi/ebiten/v2/internal/uidriver/glfw/ui.go:1613 +0x65
github.com/hajimehoshi/ebiten/v2/internal/uidriver/glfw.(*window).SetTitle.func1(0xc00006c2a0, 0xc00019da80)
	/home/runner/work/darktile/darktile/vendor/github.com/hajimehoshi/ebiten/v2/internal/uidriver/glfw/window.go:263 +0x3f
github.com/hajimehoshi/ebiten/v2/internal/thread.(*OSThread).Loop(0xc00044c8b0)
	/home/runner/work/darktile/darktile/vendor/github.com/hajimehoshi/ebiten/v2/internal/thread/thread.go:51 +0x99
github.com/hajimehoshi/ebiten/v2/internal/uidriver/glfw.(*UserInterface).Run(0xb64860, 0x9148d0, 0x10be260, 0xc00019db38, 0x472ba0)
	/home/runner/work/darktile/darktile/vendor/github.com/hajimehoshi/ebiten/v2/internal/uidriver/glfw/run_notsinglethread.go:60 +0x1ab
github.com/hajimehoshi/ebiten/v2.RunGame(0x913130, 0xc00015e000, 0x0, 0x0)
	/home/runner/work/darktile/darktile/vendor/github.com/hajimehoshi/ebiten/v2/run.go:158 +0xe6
github.com/liamg/darktile/internal/app/darktile/gui.(*GUI).Run(0xc00015e000, 0xc0001562d0, 0xa)
	/home/runner/work/darktile/darktile/internal/app/darktile/gui/gui.go:99 +0x15f
github.com/liamg/darktile/internal/app/darktile/cmd.glob..func2(0xb4a480, 0xc0003b0620, 0x0, 0x2, 0x0, 0x0)
	/home/runner/work/darktile/darktile/internal/app/darktile/cmd/root.go:130 +0x4c8
github.com/spf13/cobra.(*Command).execute(0xb4a480, 0xc0000120a0, 0x2, 0x2, 0xb4a480, 0xc0000120a0)
	/home/runner/work/darktile/darktile/vendor/github.com/spf13/cobra/command.go:852 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0xb4a480, 0x10bc690, 0x88ab9e, 0xa)
	/home/runner/work/darktile/darktile/vendor/github.com/spf13/cobra/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/work/darktile/darktile/vendor/github.com/spf13/cobra/command.go:897
github.com/liamg/darktile/internal/app/darktile/cmd.Execute(0xffffffff, 0xc00006c058)
	/home/runner/work/darktile/darktile/internal/app/darktile/cmd/root.go:153 +0x3a5
main.main()
	/home/runner/work/darktile/darktile/cmd/darktile/main.go:75 +0x25
~ ➜ darktile --version
0.0.10
~ ➜

How to reproduce
~ ➜ hyperfine -r 100 "darktile -c 'tree ./Games ; exit'" --show-output

Consistenly fails at 4-14 iteration.
Other commands didn't seem to make a difference

PS: Why does darktile remains in interactive mode after finishing non-interactive command???

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

1 participant