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

Brick breaker panics on startup #39

Open
jdknives opened this issue Sep 21, 2021 · 0 comments
Open

Brick breaker panics on startup #39

jdknives opened this issue Sep 21, 2021 · 0 comments

Comments

@jdknives
Copy link
Member

When running brick breaker, the following panic occurs:

$work:brick-breaker[master] cat README.md 
$work:brick-breaker[master] cx .
error: internal/brick.cx:47 'geometry' redeclared
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running, locked to thread]:
github.com/skycoin/cx/cxparser/actions.ProcessSymbolFields(0xc00086e500, 0xc00086e100)
	/home/work/go/src/github.com/skycoin/cx/cxparser/actions/functions.go:1086 +0x945
github.com/skycoin/cx/cxparser/actions.GiveOffset(0xc00061ee70, 0xc00086e500, 0xc00061ee2c, 0x1)
	/home/work/go/src/github.com/skycoin/cx/cxparser/actions/functions.go:903 +0x8f
github.com/skycoin/cx/cxparser/actions.ProcessExpressionArguments(0xc00087a1b0, 0xc00061ee40, 0x6, 0x30, {0xc0002c26a0, 0x1, 0x30}, 0xc69c20, 0x0)
	/home/work/go/src/github.com/skycoin/cx/cxparser/actions/functions.go:374 +0x2b4
github.com/skycoin/cx/cxparser/actions.FunctionDeclaration(0xc000799440, {0xc0002c2618, 0xc0002c2688, 0x0}, {0x0, 0x0, 0xc000191bc8}, {0xc0008312f0, 0x6, 0x6})
	/home/work/go/src/github.com/skycoin/cx/cxparser/actions/functions.go:158 +0x3bd
github.com/skycoin/cx/cxparser/cxparsingcompletor.yyParse({0x8f9778, 0xc000822480})
	/home/work/go/src/github.com/skycoin/cx/cxparser/cxparsingcompletor/parsingcompletor.go:1698 +0x13ae
github.com/skycoin/cx/cxparser/cxparsingcompletor.Parse(...)
	/home/work/go/src/github.com/skycoin/cx/cxparser/cxparsingcompletor/parsingcompletor.go:31
github.com/skycoin/cx/cxparser/cxparsing.Passtwo(0xc00001a540)
	/home/work/go/src/github.com/skycoin/cx/cxparser/cxparsing/helpers.go:26 +0x34
github.com/skycoin/cx/cxparser/cxparsing.ParseSourceCode({0xc0000b5300, 0x11, 0x10}, {0xc0000b6400, 0x10, 0x20})
	/home/work/go/src/github.com/skycoin/cx/cxparser/cxparsing/cxparsing.go:108 +0x6e5
main.parseProgram({0x0, {0x8f1218, 0x0}, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, {0x0, ...}, ...}, ...)
	/home/work/go/src/github.com/skycoin/cx/cmd/cx/helpers.go:54 +0x327
main.Run({0xc000012050, 0x1, 0x1})
	/home/work/go/src/github.com/skycoin/cx/cmd/cx/main.go:160 +0x371
main.main()
	/home/work/go/src/github.com/skycoin/cx/cmd/cx/main.go:22 +0x45

Cx version used is 0.8.0 and the OS is Arch.

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