Here's the command and the panic. When I run it, I can see a window popup on my screen for at most a few milliseconds. Then it disappears.
[andrew@Ocelot Fergulator] Fergulator test_roms/nesstress.nes
PRG-ROM Count: 2
CHR-ROM Count: 1
Vertical mirroring
Writing bank 1 to 0xC000, base value: 0x0
Mapper: 0x0
unexpected fault address 0x7f32fc6c0000
throw: fault
[signal 0xb code=0x2 addr=0x7f32fc6c0000 pc=0x42d67f]
goroutine 6 [running]:
main.(*Video).Render(0x59ae58, 0x0)
/home/andrew/go/src/github.com/scottferg/Fergulator/video.go:58 +0x37b
created by main.main
/home/andrew/go/src/github.com/scottferg/Fergulator/machine.go:176 +0x46e
goroutine 1 [runnable]:
main.(*Ppu).raster(0x5aa910, 0x40ea02)
/home/andrew/go/src/github.com/scottferg/Fergulator/ppu.go:190 +0x17d
main.(*Ppu).Step(0x5aa910, 0x3)
/home/andrew/go/src/github.com/scottferg/Fergulator/ppu.go:214 +0xfd
main.main()
/home/andrew/go/src/github.com/scottferg/Fergulator/machine.go:182 +0x4c9
goroutine 2 [syscall]:
created by runtime.main
/opt/go/src/pkg/runtime/proc.c:220
goroutine 3 [runnable]:
github.com/0xe2-0x9a-0x9b/Go-SDL/sdl.pollEvents()
/home/andrew/go/src/github.com/0xe2-0x9a-0x9b/Go-SDL/sdl/event.go:52 +0xbc
created by github.com/0xe2-0x9a-0x9b/Go-SDL/sdl.init·1
/home/andrew/go/src/github.com/0xe2-0x9a-0x9b/Go-SDL/sdl/event.go:64 +0x1f
goroutine 4 [timer goroutine (idle)]:
created by addtimer
/opt/go/src/pkg/runtime/ztime_linux_amd64.c:70
goroutine 5 [chan receive]:
main.JoypadListen()
/home/andrew/go/src/github.com/scottferg/Fergulator/controller.go:77 +0x46
created by main.main
/home/andrew/go/src/github.com/scottferg/Fergulator/machine.go:175 +0x454
I get the same error with any other ROM it seems. (I first tried Super Mario.)
I am on the latest commit from master to my knowledge: 06de8e525bfb4e26d8d09a0a3ccfd7d9b0bd54d1
I'm on Archlinux: Linux Ocelot 3.5.4-1-ARCH #1 SMP PREEMPT Sat Sep 15 08:12:04 CEST 2012 x86_64 GNU/Linux.
Here are my versions of the dependencies from the README:
[andrew@Ocelot Fergulator] y -Qi sdl sdl_gfx sdl_image | egrep '^(Name|Version)'
Name : sdl
Version : 1.2.15-3
Name : sdl_gfx
Version : 2.0.24-1
Name : sdl_image
Version : 1.2.12-2
Go-SDL:
[andrew@Ocelot Go-SDL] git show
commit f4b2c0ad232e3955f9f9325f95e513a47bf399d6
Merge: d4ded26 c6f47f2
Author: ⚛ <[email protected]>
Date: Wed Sep 19 00:05:41 2012 -0700
Merge pull request #12 from davecheney/master
linux/arm support
Oh, and I'm on Go tip:
[andrew@Ocelot go-hg] go version
go version devel +97b5f757b30e Fri Oct 05 23:51:40 2012 +0800
Let me know if you want to me to try it on 1.0.3.