Skip to content


Subversion checkout URL

You can clone with
Download ZIP


panic: runtime error: integer divide by zero #133

jpablobr opened this Issue · 10 comments

8 participants


Hi, I'm getting the following error when running zeus start

Any recommendations as to how to debug this problem?

$ uname -a
Linux dell-17 3.5.4-1-ARCH #1 SMP PREEMPT Sat Sep 15 13:04:04 UTC 2012 i686 GNU/Linux

$ ruby -v 
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]

also tried with ruby-1.9.3-p194-perf.



Looks to me like removing your .zeus.sock file could do the trick.


Nop :( I also tried that. Basically the same, but without the following error:

It looks like Zeus is already running. If not, remove .zeus.sock and try again.

This is what happen in a clean app:

jpablobr$ zeus start
Starting Zeus server
Required config file zeus.json not found in the current directory.
jpablobr$ zeus init
Wrote zeus.json
jpablobr$ zeus start
Starting Zeus server
[ready] [crashed] [running] [connecting] [waiting]
└── default_bundle
    ├── development_environment
    │   └── prerake
    └── test_environment
        ├── test_helper
        └── cucumber_environment

Available Commands: [waiting] [crashed] [ready]
zeus dbconsole
zeus rake
zeus console (alias: c)
zeus server (alias: s)
zeus runner (alias: r)
zeus generate (alias: g)
zeus test (alias: rspec, testrb)
zeus cucumber
panic: runtime error: integer divide by zero
[signal 0x8 code=0x1 addr=0x80739dc pc=0x80739dc]

goroutine 7 [running]:*StatusChart).lengthOfOutput(0x1872d360, 0x1, 0x1)
    /Users/burke/go/src/ +0x142*StatusChart).draw(0x1872d360, 0x18729fc0)
    /Users/burke/go/src/ +0x6b, 0x1872dd80, 0x0)
    /Users/burke/go/src/ +0x3d5
created by
    /Users/burke/go/src/ +0x1ca

I'm getting the same problem with 0.12.0 on OS X Lion.

I think this line is key

statuslogger.go:49: inappropriate ioctl for device

I get this when I run zeus through foreman under Mountain Lion (see #92)


I get this as well when running Zeus under foreman on Mountain Lion.




Fixed in 1890a68, though I'm curious why your terminal doesn't support winsize. I suppose my ioctl code for linux is broken. I'll open a different issue for that.

@burke burke closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.