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

render, render/gl: signal arrived during cgo execution #22

Closed
7ERr0r opened this issue May 16, 2015 · 40 comments
Closed

render, render/gl: signal arrived during cgo execution #22

7ERr0r opened this issue May 16, 2015 · 40 comments

Comments

@7ERr0r
Copy link

7ERr0r commented May 16, 2015

steven.exe compiled with 64bits on windows, downloaded steven (x64) didn't work too.

Specs: Windows x64, Intel i5, Asus R7 260X

Server map is showing for about 200 milis, then the game crashes.

[More "missing block" spam above]
Missing block variant (normal) for minecraft:hopper
Error loading state iron_trap_door: file not found
Missing block model for minecraft:iron_trap_door
Missing block variant (normal) for minecraft:hay_block
Error loading state double_plant: file not found
Missing block model for minecraft:double_plant
Error loading state standing_banner: file not found
Missing block model for minecraft:standing_banner
Error loading state wall_banner: file not found
Missing block model for minecraft:wall_banner
Missing block variant (normal) for minecraft:daylight_detector_inverted
Unhandled plugin message REGISTER
The server is running: BungeeCord (git:BungeeCord-Bootstrap:1.8-SNAPSHOT:"fa828eb":1059)
Unhandled plugin message REGISTER
The server is running: BungeeCord (git:BungeeCord-Bootstrap:1.8-SNAPSHOT:"fa828eb":1059) <- Spigot
MSG(0):                                      
Exception 0xc0000005 0x0 0x82d400e 0x651c9660
PC=0x651c9660
signal arrived during cgo execution

github.com/thinkofdeath/gl/v3.2-core/gl._Cfunc_glowDrawElements(0x7ff85db68d80, 0x573000000004, 0x1403, 0x0)
    github.com/thinkofdeath/gl/v3.2-core/gl/_obj/_cgo_gotypes.go:3087 +0x4c
github.com/thinkofdeath/gl/v3.2-core/gl.DrawElements(0x573000000004, 0x1403, 0x0)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/gl/v3.2-core/gl/package.go:7175 +0x53
github.com/thinkofdeath/steven/render/gl.DrawElements(0x4, 0x5730, 0x1403, 0x0)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/render/gl/gl.go:175 +0x4a
github.com/thinkofdeath/steven/render.renderBuffer(0xc082021a00, 0x0, 0x5, 0x0, 0x6)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/render/render.go:255 +0x549
github.com/thinkofdeath/steven/render.Draw(0x356, 0x1e0, 0x3ff9f18a86d71f36)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/render/render.go:180 +0xb37
github.com/thinkofdeath/steven.draw()
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/steven.go:239 +0x46c
github.com/thinkofdeath/steven.startWindow()
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/desktop.go:68 +0x2a2
github.com/thinkofdeath/steven.Main(0xc082008290, 0x6, 0xc082064030, 0x20, 0xc082064060, 0x20, 0xc082008260, 0xb)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/steven.go:89 +0x13b
main.main()
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/cmd/steven/steven.go:43 +0x25e

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    c:/go/src/runtime/asm_amd64.s:2232 +0x1

goroutine 8 [chan receive]:
github.com/thinkofdeath/steven.writeHandler(0xc082304300)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/network.go:101 +0x15e
created by github.com/thinkofdeath/steven.startConnection
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/network.go:73 +0x396

goroutine 7 [IO wait]:
net.(*pollDesc).Wait(0xc08293a170, 0x72, 0x0, 0x0)
    c:/go/src/net/fd_poll_runtime.go:84 +0x4e
net.(*ioSrv).ExecIO(0xc082430018, 0xc08293a060, 0x96c0e0, 0x7, 0xb6beb8, 0x10, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:188 +0x305
net.(*netFD).Read(0xc08293a000, 0xc08377819c, 0x7, 0x7, 0x0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:470 +0x180
net.(*conn).Read(0xc08204e080, 0xc08377819c, 0x7, 0x7, 0x0, 0x0, 0x0)
    c:/go/src/net/net.go:121 +0xe3
crypto/cipher.StreamReader.Read(0x630db20, 0xc082bdc050, 0x62cc860, 0xc08204e080, 0xc08377819c, 0x7, 0x7, 0x1c, 0x0, 0x0)
    c:/go/src/crypto/cipher/io.go:20 +0x84
crypto/cipher.(*StreamReader).Read(0xc083a0e020, 0xc08377819c, 0x7, 0x7, 0x1c, 0x0, 0x0)
    <autogenerated>:11 +0xdd
io.ReadAtLeast(0x630db48, 0xc083a0e020, 0xc083778180, 0x23, 0x23, 0x23, 0x1c, 0x0, 0x0)
    c:/go/src/io/io.go:298 +0xf8
io.ReadFull(0x630db48, 0xc083a0e020, 0xc083778180, 0x23, 0x23, 0x23, 0x0, 0x0)
    c:/go/src/io/io.go:316 +0x74
github.com/thinkofdeath/steven/protocol.(*Conn).ReadPacket(0xc082304300, 0x0, 0x0, 0x0, 0x0)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/protocol/connection.go:163 +0x201
github.com/thinkofdeath/steven.startConnection(0xc082008290, 0x6, 0xc082064030, 0x20, 0xc082064060, 0x20, 0xc082008260, 0xb)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/network.go:67 +0x31f
created by github.com/thinkofdeath/steven.connect
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/steven.go:95 +0x7b

goroutine 21 [IO wait]:
net.(*pollDesc).Wait(0xc083720170, 0x72, 0x0, 0x0)
    c:/go/src/net/fd_poll_runtime.go:84 +0x4e
net.(*ioSrv).ExecIO(0xc082430018, 0xc083720060, 0x96c0e0, 0x7, 0xb6beb8, 0xd1, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:188 +0x305
net.(*netFD).Read(0xc083720000, 0xc0828e4800, 0x400, 0x400, 0x0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:470 +0x180
net.(*conn).Read(0xc0834ac050, 0xc0828e4800, 0x400, 0x400, 0x0, 0x0, 0x0)
    c:/go/src/net/net.go:121 +0xe3
crypto/tls.(*block).readFromUntil(0xc083496570, 0x62cc860, 0xc0834ac050, 0x5, 0x0, 0x0)
    c:/go/src/crypto/tls/conn.go:454 +0xed
crypto/tls.(*Conn).readRecord(0xc082a16000, 0x17, 0x0, 0x0)
    c:/go/src/crypto/tls/conn.go:539 +0x2e1
crypto/tls.(*Conn).Read(0xc082a16000, 0xc082bce000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    c:/go/src/crypto/tls/conn.go:904 +0x16d
net/http.noteEOFReader.Read(0x630d700, 0xc082a16000, 0xc082126478, 0xc082bce000, 0x1000, 0x1000, 0xc0830aa200, 0x0, 0x0)
    c:/go/src/net/http/transport.go:1270 +0x75
net/http.(*noteEOFReader).Read(0xc084007600, 0xc082bce000, 0x1000, 0x1000, 0xc082012000, 0x0, 0x0)
    <autogenerated>:125 +0xdb
bufio.(*Reader).fill(0xc082c3c840)
    c:/go/src/bufio/bufio.go:97 +0x1d5
bufio.(*Reader).Peek(0xc082c3c840, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/bufio/bufio.go:132 +0xf7
net/http.(*persistConn).readLoop(0xc082126420)
    c:/go/src/net/http/transport.go:842 +0xab
created by net/http.(*Transport).dialConn
    c:/go/src/net/http/transport.go:660 +0xca6

goroutine 22 [select]:
net/http.(*persistConn).writeLoop(0xc082126420)
    c:/go/src/net/http/transport.go:945 +0x424
created by net/http.(*Transport).dialConn
    c:/go/src/net/http/transport.go:661 +0xcc3

goroutine 105 [IO wait]:
net.(*pollDesc).Wait(0xc08300a5f0, 0x72, 0x0, 0x0)
    c:/go/src/net/fd_poll_runtime.go:84 +0x4e
net.(*ioSrv).ExecIO(0xc082430018, 0xc08300a4e0, 0x96c0e0, 0x7, 0xb6beb8, 0x0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:188 +0x305
net.(*netFD).Read(0xc08300a480, 0xc08353f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:470 +0x180
net.(*conn).Read(0xc083138218, 0xc08353f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    c:/go/src/net/net.go:121 +0xe3
net/http.noteEOFReader.Read(0x62cc860, 0xc083138218, 0xc08244e9f8, 0xc08353f000, 0x1000, 0x1000, 0x865b00, 0x0, 0x0)
    c:/go/src/net/http/transport.go:1270 +0x75
net/http.(*noteEOFReader).Read(0xc08255f820, 0xc08353f000, 0x1000, 0x1000, 0xc0823ce000, 0x0, 0x0)
    <autogenerated>:125 +0xdb
bufio.(*Reader).fill(0xc083b78300)
    c:/go/src/bufio/bufio.go:97 +0x1d5
bufio.(*Reader).Peek(0xc083b78300, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/bufio/bufio.go:132 +0xf7
net/http.(*persistConn).readLoop(0xc08244e9a0)
    c:/go/src/net/http/transport.go:842 +0xab
created by net/http.(*Transport).dialConn
    c:/go/src/net/http/transport.go:660 +0xca6

goroutine 122 [IO wait]:
net.(*pollDesc).Wait(0xc083720770, 0x72, 0x0, 0x0)
    c:/go/src/net/fd_poll_runtime.go:84 +0x4e
net.(*ioSrv).ExecIO(0xc082430018, 0xc083720660, 0x96c0e0, 0x7, 0xb6beb8, 0x0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:188 +0x305
net.(*netFD).Read(0xc083720600, 0xc0834ae000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:470 +0x180
net.(*conn).Read(0xc08285e3e8, 0xc0834ae000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    c:/go/src/net/net.go:121 +0xe3
net/http.noteEOFReader.Read(0x62cc860, 0xc08285e3e8, 0xc0839185d8, 0xc0834ae000, 0x1000, 0x1000, 0x865b00, 0x0, 0x0)
    c:/go/src/net/http/transport.go:1270 +0x75
net/http.(*noteEOFReader).Read(0xc08278f4c0, 0xc0834ae000, 0x1000, 0x1000, 0xc0823ce000, 0x0, 0x0)
    <autogenerated>:125 +0xdb
bufio.(*Reader).fill(0xc082c3ce40)
    c:/go/src/bufio/bufio.go:97 +0x1d5
bufio.(*Reader).Peek(0xc082c3ce40, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/bufio/bufio.go:132 +0xf7
net/http.(*persistConn).readLoop(0xc083918580)
    c:/go/src/net/http/transport.go:842 +0xab
created by net/http.(*Transport).dialConn
    c:/go/src/net/http/transport.go:660 +0xca6

goroutine 129 [IO wait]:
net.(*pollDesc).Wait(0xc083721070, 0x77, 0x0, 0x0)
    c:/go/src/net/fd_poll_runtime.go:84 +0x4e
net.(*ioSrv).ExecIO(0xc082430e18, 0xc083720fe8, 0x97d0d0, 0x9, 0xb6beb0, 0x0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:188 +0x305
net.(*netFD).connect(0xc083720f00, 0x2baefe0, 0xc08255fe80, 0x2baefe0, 0xc08255fe60, 0xecce93d55, 0x1b531d38, 0xd3ace0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:361 +0x391
net.(*netFD).dial(0xc083720f00, 0x2baef90, 0x0, 0x2baef90, 0xc083b0fda0, 0xecce93d55, 0x1b531d38, 0xd3ace0, 0x0, 0x0)
    c:/go/src/net/sock_posix.go:139 +0x381
net.socket(0x975440, 0x3, 0x2, 0x1, 0x0, 0xc083b0fd00, 0x2baef90, 0x0, 0x2baef90, 0xc083b0fda0, ...)
    c:/go/src/net/sock_posix.go:91 +0x377
net.internetSocket(0x975440, 0x3, 0x2baef90, 0x0, 0x2baef90, 0xc083b0fda0, 0xecce93d55, 0x1b531d38, 0xd3ace0, 0x1, ...)
    c:/go/src/net/ipsock_posix.go:137 +0x14f
net.dialTCP(0x975440, 0x3, 0x0, 0xc083b0fda0, 0xecce93d55, 0x1b531d38, 0xd3ace0, 0x1, 0x0, 0x0)
    c:/go/src/net/tcpsock_posix.go:156 +0x12c
net.dialSingle(0x975440, 0x3, 0xc082eef0e0, 0x19, 0x0, 0x0, 0x2baef00, 0xc083b0fda0, 0xecce93d55, 0x1b531d38, ...)
    c:/go/src/net/dial.go:235 +0x3fc
net.func·016(0xecce93d55, 0x1b531d38, 0xd3ace0, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/net/dial.go:163 +0x133
net.dial(0x975440, 0x3, 0x2baef00, 0xc083b0fda0, 0xc083b0fdd0, 0xecce93d55, 0xe1b531d38, 0xd3ace0, 0x0, 0x0, ...)
    c:/go/src/net/fd_windows.go:92 +0x122
net.(*Dialer).Dial(0xc0820044c0, 0x975440, 0x3, 0xc082eef0e0, 0x19, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/net/dial.go:170 +0x6bc
net.*Dialer.Dial·fm(0x975440, 0x3, 0xc082eef0e0, 0x19, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/net/http/transport.go:38 +0x80
net/http.(*Transport).dial(0xc082054090, 0x975440, 0x3, 0xc082eef0e0, 0x19, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/net/http/transport.go:479 +0x8b
net/http.(*Transport).dialConn(0xc082054090, 0x0, 0xc082c3da40, 0x4, 0xc082eef0e0, 0x19, 0xc08244efd0, 0x0, 0x0)
    c:/go/src/net/http/transport.go:564 +0x167f
net/http.func·019()
    c:/go/src/net/http/transport.go:520 +0x49
created by net/http.(*Transport).getConn
    c:/go/src/net/http/transport.go:522 +0x33c

goroutine 123 [select]:
net/http.(*persistConn).writeLoop(0xc083918580)
    c:/go/src/net/http/transport.go:945 +0x424
created by net/http.(*Transport).dialConn
    c:/go/src/net/http/transport.go:661 +0xcc3

goroutine 106 [select]:
net/http.(*persistConn).writeLoop(0xc08244e9a0)
    c:/go/src/net/http/transport.go:945 +0x424
created by net/http.(*Transport).dialConn
    c:/go/src/net/http/transport.go:661 +0xcc3

goroutine 132 [IO wait]:
net.(*pollDesc).Wait(0xc0837211f0, 0x77, 0x0, 0x0)
    c:/go/src/net/fd_poll_runtime.go:84 +0x4e
net.(*ioSrv).ExecIO(0xc082430e18, 0xc083721168, 0x97d0d0, 0x9, 0xb6beb0, 0x0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:188 +0x305
net.(*netFD).connect(0xc083721080, 0x2baefe0, 0xc08255ffa0, 0x2baefe0, 0xc08255ff80, 0xecce93d55, 0x1b626428, 0xd3ace0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:361 +0x391
net.(*netFD).dial(0xc083721080, 0x2baef90, 0x0, 0x2baef90, 0xc083b0fef0, 0xecce93d55, 0x1b626428, 0xd3ace0, 0x0, 0x0)
    c:/go/src/net/sock_posix.go:139 +0x381
net.socket(0x975440, 0x3, 0x2, 0x1, 0x0, 0xc083b0fe00, 0x2baef90, 0x0, 0x2baef90, 0xc083b0fef0, ...)
    c:/go/src/net/sock_posix.go:91 +0x377
net.internetSocket(0x975440, 0x3, 0x2baef90, 0x0, 0x2baef90, 0xc083b0fef0, 0xecce93d55, 0x1b626428, 0xd3ace0, 0x1, ...)
    c:/go/src/net/ipsock_posix.go:137 +0x14f
net.dialTCP(0x975440, 0x3, 0x0, 0xc083b0fef0, 0xecce93d55, 0x1b626428, 0xd3ace0, 0x1, 0x0, 0x0)
    c:/go/src/net/tcpsock_posix.go:156 +0x12c
net.dialSingle(0x975440, 0x3, 0xc08255fea0, 0x19, 0x0, 0x0, 0x2baef00, 0xc083b0fef0, 0xecce93d55, 0x1b626428, ...)
    c:/go/src/net/dial.go:235 +0x3fc
net.func·016(0xecce93d55, 0x1b626428, 0xd3ace0, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/net/dial.go:163 +0x133
net.dial(0x975440, 0x3, 0x2baef00, 0xc083b0fef0, 0xc083b0ff20, 0xecce93d55, 0xe1b626428, 0xd3ace0, 0x0, 0x0, ...)
    c:/go/src/net/fd_windows.go:92 +0x122
net.(*Dialer).Dial(0xc0820044c0, 0x975440, 0x3, 0xc08255fea0, 0x19, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/net/dial.go:170 +0x6bc
net.*Dialer.Dial·fm(0x975440, 0x3, 0xc08255fea0, 0x19, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/net/http/transport.go:38 +0x80
net/http.(*Transport).dial(0xc082054090, 0x975440, 0x3, 0xc08255fea0, 0x19, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/net/http/transport.go:479 +0x8b
net/http.(*Transport).dialConn(0xc082054090, 0x0, 0xc08213b8f0, 0x4, 0xc08255fea0, 0x19, 0xc08255fe20, 0x0, 0x0)
    c:/go/src/net/http/transport.go:564 +0x167f
net/http.func·019()
    c:/go/src/net/http/transport.go:520 +0x49
created by net/http.(*Transport).getConn
    c:/go/src/net/http/transport.go:522 +0x33c

goroutine 227 [running]:
    goroutine running on other thread; stack unavailable
created by github.com/thinkofdeath/steven.(*chunkSection).build
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/chunkbuilder.go:140 +0x1c4

goroutine 180 [chan receive]:
net/http.func·016()
    c:/go/src/net/http/transport.go:507 +0x6c
created by net/http.func·017
    c:/go/src/net/http/transport.go:513 +0xc1

goroutine 194 [chan receive]:
net/http.func·016()
    c:/go/src/net/http/transport.go:507 +0x6c
created by net/http.func·017
    c:/go/src/net/http/transport.go:513 +0xc1
rax     0xb0
rbx     0xaaf6970
rcx     0xab13e20
rdx     0x8
rdi     0x82d400e
rsi     0x3
rbp     0x5730
rsp     0x23f5c0
r8      0x1c9a
r9      0x14
r10     0x8
r11     0x3
r12     0x80fa3e0
r13     0x667f8980
r14     0x1c
r15     0x2
rip     0x651c9660
rflags  0x10202
cs      0x33
fs      0x53
gs      0x2b
@Thinkofname
Copy link
Owner

Possible driver bug? I've had others testing on windows (and myself) and it's been fine

@7ERr0r
Copy link
Author

7ERr0r commented May 16, 2015

Server is mineplex.eu, i'll run it with 32 bits.

@Thinkofname Thinkofname changed the title Panic: signal arrived during cgo execution render, render/gl: signal arrived during cgo execution May 16, 2015
@7ERr0r
Copy link
Author

7ERr0r commented May 16, 2015

Client crashes even with 32bit version on every server.

@7ERr0r
Copy link
Author

7ERr0r commented May 16, 2015

Video: [removed, server down]

@Thinkofname
Copy link
Owner

Tested on Windows 64bit with an intel card and a nvidia card. Both seem fine.

@Thinkofname
Copy link
Owner

Checked for driver updates just in case?

@7ERr0r
Copy link
Author

7ERr0r commented May 16, 2015

I've just installed an update (windows fixes and AMD update), but the bug still exists.

@7ERr0r
Copy link
Author

7ERr0r commented May 16, 2015

Here's a shorter stacktrace, generated by running ./steven:

Missing block variant (normal) for minecraft:hay_block
Error loading state double_plant: file not found
Missing block model for minecraft:double_plant
Error loading state standing_banner: file not found
Missing block model for minecraft:standing_banner
Error loading state wall_banner: file not found
Missing block model for minecraft:wall_banner
Missing block variant (normal) for minecraft:daylight_detector_inverted
Exception 0xc0000005 0x0 0x788f000 0x63e89660
PC=0x63e89660
signal arrived during cgo execution

github.com/thinkofdeath/gl/v3.2-core/gl._Cfunc_glowDrawElements(0x7ffcd9ae8d80, 0xa0800000004, 0x1403, 0x0)
        github.com/thinkofdeath/gl/v3.2-core/gl/_obj/_cgo_gotypes.go:3087 +0x4c
github.com/thinkofdeath/gl/v3.2-core/gl.DrawElements(0xa0800000004, 0x200001403, 0x0)
        src/github.com/thinkofdeath/gl/v3.2-core/gl/package.go:7175 +0x53
github.com/thinkofdeath/steven/render/gl.DrawElements(0x4, 0xa08, 0x1403, 0x0)
        src/github.com/thinkofdeath/steven/render/gl/gl.go:175 +0x4a
github.com/thinkofdeath/steven/render.renderBuffer(0xc08384dad0, 0x0, 0x4, 0x0, 0x6)
        src/github.com/thinkofdeath/steven/render/render.go:255 +0x549
github.com/thinkofdeath/steven/render.Draw(0x356, 0x1e0, 0x3fe1545c78a6dacb)
        src/github.com/thinkofdeath/steven/render/render.go:180 +0xb37
github.com/thinkofdeath/steven.draw()
        src/github.com/thinkofdeath/steven/steven.go:239 +0x46c
github.com/thinkofdeath/steven.startWindow()
        src/github.com/thinkofdeath/steven/desktop.go:67 +0x286
github.com/thinkofdeath/steven.Main(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        src/github.com/thinkofdeath/steven/steven.go:89 +0x13b
main.main()
        src/github.com/thinkofdeath/steven/cmd/steven/steven.go:43 +0x25e

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:2232 +0x1
rax     0x0
rbx     0x80e38d4
rcx     0x80e6f46
rdx     0x6
rdi     0x788f000
rsi     0x3
rbp     0xa08
rsp     0x23f5c0
r8      0x33a
r9      0x14
r10     0x8
r11     0x3
r12     0x7828d20
r13     0x654b8980
r14     0x1c
r15     0x2
rip     0x63e89660
rflags  0x10206
cs      0x33
fs      0x53
gs      0x2b

@Thinkofname
Copy link
Owner

I've tried multiple systems and still can't cause this, as far as I can tell this is a driver issue since the code in question is valid. Don't think I can work around it either

@7ERr0r
Copy link
Author

7ERr0r commented May 16, 2015

Similar issue? golang/go#10300
Go1.5Maybe?

@Thinkofname
Copy link
Owner

Doesn't match exactly but it could be. I'll leave this issue open and see if anyone else who scrolls by has any ideas, i'm at a loss currently

@7ERr0r
Copy link
Author

7ERr0r commented May 16, 2015

Changing:

func DrawArrays(mode uint32, first int32, count int32) {
    fmt.Println("Mode", mode)
    fmt.Println("First", first)
    fmt.Println("Count", count)
    C.glowDrawArrays(gpDrawArrays, (C.GLenum)(mode), (C.GLint)(first), (C.GLsizei)(count))
}

in github.com/thinkofdeath/gl/v3.2-core/gl/package.go outputs:

Missing block variant (normal) for minecraft:daylight_detector_inverted
Mode 4
First 0
Count 13950
Exception 0xc0000005 0x0 0xc0892ef048 0x63d79660
PC=0x63d79660
signal arrived during cgo execution

github.com/thinkofdeath/gl/v3.2-core/gl._Cfunc_glowDrawArrays(0x7ffcd9988d70, 0x4, 0x367e)
        github.com/thinkofdeath/gl/v3.2-core/gl/_obj/_cgo_gotypes.go:3043 +0x4c
github.com/thinkofdeath/gl/v3.2-core/gl.DrawArrays(0x4, 0x367e)
        src/github.com/thinkofdeath/gl/v3.2-core/gl/package.go:7146 +0x381
github.com/thinkofdeath/steven/render/gl.DrawArrays(0x889200000004, 0x0, 0x367e)
        src/github.com/thinkofdeath/steven/render/gl/gl.go:171 +0x43
github.com/thinkofdeath/steven/render.drawUI()

But does it help somehow?

@Thinkofname
Copy link
Owner

that crash is in a different place than the last ones and that output is fine.

@Thinkofname
Copy link
Owner

Exception 0xc0000005 0x0 0x5c9f006 0x5135f170
PC=0x5135f170
signal arrived during cgo execution

github.com/thinkofdeath/gl/v3.2-core/gl._Cfunc_glowDrawElements(0x7ff8d33a8d80,
0x50e200000004, 0x100001403, 0x0)
        github.com/thinkofdeath/gl/v3.2-core/gl/_obj/_cgo_gotypes.go:3087 +0x4c
github.com/thinkofdeath/gl/v3.2-core/gl.DrawElements(0x50e200000004, 0x1403, 0x
)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github
com/thinkofdeath/gl/v3.2-core/gl/package.go:7175 +0x53
github.com/thinkofdeath/steven/render/gl.DrawElements(0x889200000004, 0x50e2, 0
1403, 0x0)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github
com/thinkofdeath/steven/render/gl/gl.go:175 +0x4a
github.com/thinkofdeath/steven/render.drawUI()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github
com/thinkofdeath/steven/render/ui.go:97 +0x249
github.com/thinkofdeath/steven/render.Draw(0x356, 0x1e0, 0x3ff999999999999a)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github
com/thinkofdeath/steven/render/render.go:217 +0x11b2
github.com/thinkofdeath/steven.draw()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github
com/thinkofdeath/steven/steven.go:243 +0x4c5
github.com/thinkofdeath/steven.startWindow()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github
com/thinkofdeath/steven/desktop.go:68 +0x2a2
github.com/thinkofdeath/steven.Main(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github
com/thinkofdeath/steven/steven.go:98 +0x13b
main.main()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github
com/thinkofdeath/steven/cmd/steven/steven.go:43 +0x25e

From another AMD card, seems limited to them. Sadly I don't have any AMD cards to work with.

@THUNDERGROOVE
Copy link

Getting similar issues. Crashes as the screen starts rendering the main menu.

Exception 0xc0000005 0x0 0x7cd9012 0x6a3d9660
PC=0x6a3d9660
signal arrived during cgo execution

github.com/thinkofdeath/gl/v3.2-core/gl._Cfunc_glowDrawElements(0x7ffd46e58d80, 0xb2800000004, 0x1403, 0x0)
        github.com/thinkofdeath/gl/v3.2-core/gl/_obj/_cgo_gotypes.go:3087 +0x4c
github.com/thinkofdeath/gl/v3.2-core/gl.DrawElements(0xb2800000004, 0xffffffff00001403, 0x0)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/gl/v3.2-core/gl/package.go:7175 +0x53
github.com/thinkofdeath/steven/render/gl.DrawElements(0x4, 0xb28, 0x1403, 0x0)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/render/gl/gl.go:175 +0x4a
github.com/thinkofdeath/steven/render.renderBuffer(0xc08392e680, 0x0, 0x4, 0x0, 0x6)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/render/render.go:255 +0x549
github.com/thinkofdeath/steven/render.Draw(0x356, 0x1e0, 0x4003adc5d6388659)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/render/render.go:180 +0xb37
github.com/thinkofdeath/steven.draw()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/steven.go:239 +0x46c
github.com/thinkofdeath/steven.startWindow()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/desktop.go:68 +0x2a2
github.com/thinkofdeath/steven.Main(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/steven.go:89 +0x13b
main.main()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/cmd/steven/steven.go:43 +0x25e

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:2232 +0x1
rax     0x0
rbx     0xa591050
rcx     0xa596958
rdx     0x8
rdi     0x7cd9012
rsi     0x3
rbp     0xb28
rsp     0x23f5c0
r8      0x7
r9      0x14
r10     0x8
r11     0x3
r12     0x75b0860
r13     0x6ba08980
r14     0x1c
r15     0x2
rip     0x6a3d9660
rflags  0x10202
cs      0x33
fs      0x53
gs      0x2b

I'm using an AMD GPU as well.

@Thinkofname
Copy link
Owner

The only AMD card I had to test with (a really old one) had a different issue when testing which was fixed when the drivers were updated. I guess I need to work out how to report issues to AMD as this seems like it's completely on their end and not something i'd be able to work around

Edit: or better yet, someone with a graphics card with the issue could report it

@THUNDERGROOVE
Copy link

I did submit it on their bug/crash/whatever survey thing.

I don't expect much of it but we'll see.

@Thinkofname
Copy link
Owner

Thanks

@7ERr0r
Copy link
Author

7ERr0r commented May 22, 2015

I see that @THUNDERGROOVE is using linux, but my issue is (maybe) something different:
Windows 8, 64bit, Intel i5, AMD Asus R7 260X - crashes
Ubuntu 15.04, 64bit, Intel i5, AMD Asus R7 260X (the same computer) - works perfectly

@Thinkofname
Copy link
Owner

Maybe you are using the open source drivers on linux?

@7ERr0r
Copy link
Author

7ERr0r commented May 22, 2015

Yes, I have default drivers on linux, I tried to update windows drives but it didn't work.

@Thinkofname
Copy link
Owner

The open source ones are maintained separately from the closed source ones (the ones you'll be using on windows). Kinda proves its a driver issue

@7ERr0r
Copy link
Author

7ERr0r commented May 26, 2015

Some-think new?

Missing block model for minecraft:wall_banner
Missing block variant (normal) for minecraft:daylight_detector_inverted
WARNING: 0:3: warning(#62) enable/warn/disable extension is not found. Extension
 "GL_ARB_conservative_depth" is not supported

WARNING: 0:4: warning(#62) enable/warn/disable extension is not found. Extension
 "GL_ARB_conservative_depth" is not supported

WARNING: 0:3: warning(#62) enable/warn/disable extension is not found. Extension
 "GL_ARB_conservative_depth" is not supported

WARNING: 0:3: warning(#62) enable/warn/disable extension is not found. Extension
 "GL_ARB_conservative_depth" is not supported

Exception 0xc0000005 0x0 0x36ddd000 0x6d198a90
PC=0x6d198a90
signal arrived during cgo execution

github.com/thinkofdeath/gl/v3.2-core/gl._Cfunc_glowDrawElements(0x6fd7f7d0, 0x4,
 0x502e, 0x1403, 0x0)
        github.com/thinkofdeath/gl/v3.2-core/gl/_obj/_cgo_gotypes.go:3087 +0x3f
github.com/thinkofdeath/gl/v3.2-core/gl.DrawElements(0x4, 0x502e, 0x1403, 0x0)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.
com/thinkofdeath/gl/v3.2-core/gl/package.go:7175 +0x4a
github.com/thinkofdeath/steven/render/gl.DrawElements(0x4, 0x502e, 0x1403, 0x0)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.
com/thinkofdeath/steven/render/gl/gl.go:175 +0x40
github.com/thinkofdeath/steven/render.drawUI()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.
com/thinkofdeath/steven/render/ui.go:96 +0x203
github.com/thinkofdeath/steven/render.Draw(0x356, 0x1e0, 0xbe5d9e41, 0x406186f5)

        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.
com/thinkofdeath/steven/render/render.go:202 +0x1025
github.com/thinkofdeath/steven.draw()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.
com/thinkofdeath/steven/steven.go:188 +0x453
github.com/thinkofdeath/steven.startWindow()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.
com/thinkofdeath/steven/desktop.go:68 +0x23d
github.com/thinkofdeath/steven.Main(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.
com/thinkofdeath/steven/steven.go:57 +0x112
main.main()
        /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.
com/thinkofdeath/steven/cmd/steven/steven.go:43 +0x1b1

This pops up after installing AMD drives on Windows

@Thinkofname
Copy link
Owner

Nope, the warnings are just an optional optimization I added. Not every gpu supports it but it'll keep working anyway (minus the minor speed boost)

@Thinkofname
Copy link
Owner

Most likely wont help but running steven with the environment variable STEVEN_DEBUG=true will enable logging from the driver (not all of them support it). The output will outputted to stdout and steven-log.txt. If it actually works paste it here.

Full command
STEVEN_DEBUG=true ./steven

@THUNDERGROOVE
Copy link

Didn't output anything more or create a log. In my case it crashes basically the frame after the main menu loads.

@Thinkofname
Copy link
Owner

Running latest? I only added it in the last few commits

@THUNDERGROOVE
Copy link

Yes sorry.

15:53:07 gl.go:302: [api][performance][medium]: glDrawElements uses input attribute 'VERTEX_ATTRIB[2]' with offset '6' that is not optimally aligned; consider aligning on a 4-byte boundary
15:53:07 gl.go:302: [api][performance][medium]: glDrawElements uses input attribute 'VERTEX_ATTRIB[3]' which is specified as 'type = GL_SHORT size = 3'; this combination is not a natively supported input attribute type
15:53:07 gl.go:302: [api][performance][medium]: glDrawElements uses input attribute 'VERTEX_ATTRIB[3]' with offset '14' that is not optimally aligned; consider aligning on a 4-byte boundary

It's printed right before the crash

Crash traces are the same as previous

Exception 0xc0000005 0x0 0x5d03000 0x697ff170
PC=0x697ff170
signal arrived during cgo execution

github.com/thinkofdeath/gl/v3.2-core/gl._Cfunc_glowDrawElements(0x7ffd2fab8d80, 0x4fce00000004, 0x1403, 0x0)
        github.com/thinkofdeath/gl/v3.2-core/gl/_obj/_cgo_gotypes.go:3087 +0x4c
github.com/thinkofdeath/gl/v3.2-core/gl.DrawElements(0x4fce00000004, 0x1403, 0x0)
        Z:/code/src/github.com/thinkofdeath/gl/v3.2-core/gl/package.go:7175 +0x53
github.com/thinkofdeath/steven/render/gl.DrawElements(0x889200000004, 0x4fce, 0x1403, 0x0)
        Z:/code/src/github.com/thinkofdeath/steven/render/gl/gl.go:176 +0x4a
github.com/thinkofdeath/steven/render.drawUI()
        Z:/code/src/github.com/thinkofdeath/steven/render/ui.go:96 +0x249
github.com/thinkofdeath/steven/render.Draw(0x356, 0x1e0, 0x407026eaec0724b8)
        Z:/code/src/github.com/thinkofdeath/steven/render/render.go:207 +0x117b
github.com/thinkofdeath/steven.draw()
        Z:/code/src/github.com/thinkofdeath/steven/steven.go:188 +0x4a5
github.com/thinkofdeath/steven.startWindow()
        Z:/code/src/github.com/thinkofdeath/steven/desktop.go:81 +0x31a
github.com/thinkofdeath/steven.Main(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        Z:/code/src/github.com/thinkofdeath/steven/steven.go:57 +0x17a
main.main()
        Z:/code/src/github.com/thinkofdeath/steven/cmd/steven/steven.go:43 +0x25e

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:2232 +0x1

goroutine 18 [running]:
        goroutine running on other thread; stack unavailable
created by github.com/thinkofdeath/steven.fakeGen
        Z:/code/src/github.com/thinkofdeath/steven/fakegen.go:107 +0x67
rax     0x0
rbx     0x78ed000
rcx     0x7907aaa
rdx     0x6
rdi     0x5d03000
rsi     0x4fce
rbp     0x18
rsp     0x23f580
r8      0x1a79
r9      0x10
r10     0x8
r11     0x3
r12     0x8
r13     0x6af4c040
r14     0x2
r15     0x3
rip     0x697ff170
rflags  0x10206
cs      0x33
fs      0x53
gs      0x2b

@Thinkofname
Copy link
Owner

Is that all it outputs? Could you https://gist.github.com/ the whole steven-log.txt?

@7ERr0r
Copy link
Author

7ERr0r commented May 27, 2015

Whole steven-log.txt file:
https://gist.github.com/Szperak/550472fec7f47a093e68
Go panics as always

Edit: I'll run it with steven_debug

@Thinkofname
Copy link
Owner

@Szperak Doesn't appear that steven was run with STEVEN_DEBUG=true there, either that or your gpu doesn't support debug contextes.

@7ERr0r
Copy link
Author

7ERr0r commented May 27, 2015

@Thinkofname
Copy link
Owner

I've just pushed something to improve the alignment for vertex data, might help although I don't see how

@7ERr0r
Copy link
Author

7ERr0r commented May 27, 2015

steven-log.txt: https://gist.github.com/Szperak/f7cb42db44464066b8e8
Main menu works :)

@7ERr0r 7ERr0r closed this as completed May 27, 2015
@Thinkofname
Copy link
Owner

\o/

@7ERr0r
Copy link
Author

7ERr0r commented May 27, 2015

Crashes after joining mc.hypixel.net with:
https://gist.github.com/Szperak/d18d1c65f13ad401fc5c

@7ERr0r 7ERr0r reopened this May 27, 2015
@Thinkofname
Copy link
Owner

@7ERr0r
Copy link
Author

7ERr0r commented May 27, 2015

http://dl.thinkofdeath.co.uk/steven/steven-align2.zip
Yes, it works, I can move around, everything works fine.

@Thinkofname
Copy link
Owner

Should be fixed with 4d994f8 then, thanks

@THUNDERGROOVE
Copy link

Yeap. Fixed it for me as well. Thanks man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants