You are not logged in.
Pages: 1
Hi Shahin, i've started printing again some time ago
Maybe you remember my random crashes while using python syscalls. It seems they have gotten worse since i've updated.
I know it's probably not a bug because it's outside of NanoDLPs stuff. Anyways, would there be a possibility to include an option to start printing immediately after startup if there's a plate that's not finished?
I would simply run NanoDLP using supervisor which could restart the process and printing could continue.
Normally, when I notice a crash and restart the printer within an hour before pigment concentration or warping sets in, the crash is not noticeable on the prints. When it happens on an overnight print, that's not really possible manually.
Let me know what you think.
Here's the last error for reference:
2016/10/03 04:26:55.111042 {"Layer":"761","module":"Image","level":"Warning","msg":"Display layer public/plates/46/761.png"}
2016/10/03 04:27:15.144819 {"Layer":"762","module":"Image","level":"Warning","msg":"Display layer public/plates/46/762.png"}
2016/10/03 04:27:35.491617 {"Layer":"763","module":"Image","level":"Warning","msg":"Display layer public/plates/46/763.png"}
2016/10/03 04:27:55.566340 {"Layer":"764","module":"Image","level":"Warning","msg":"Display layer public/plates/46/764.png"}
2016/10/03 04:28:15.717832 {"Layer":"765","module":"Image","level":"Warning","msg":"Display layer public/plates/46/765.png"}
runtime/cgo: pthread_create failed: Resource temporarily unavailable
SIGABRT: abort
PC=0x76cccf70 m=147
goroutine 0 [idle]:
goroutine 6 [syscall]:
runtime.notetsleepg(0x6b65f4, 0x1e43c196, 0x0, 0x0)
/usr/local/go/src/runtime/lock_futex.go:205 +0x4c fp=0x10a1a788 sp=0x10a1a770
runtime.timerproc()
/usr/local/go/src/runtime/time.go:209 +0x11c fp=0x10a1a7dc sp=0x10a1a788
runtime.goexit()
/usr/local/go/src/runtime/asm_arm.s:998 +0x4 fp=0x10a1a7dc sp=0x10a1a7dc
created by runtime.addtimerLocked
/usr/local/go/src/runtime/time.go:116 +0x1c4
goroutine 1 [IO wait, 41 minutes]:
net.runtime_pollWait(0x75a25f78, 0x72, 0x69ed60)
/usr/local/go/src/runtime/netpoll.go:160 +0x60
net.(*pollDesc).wait(0x10b581b8, 0x72, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:73 +0x34
net.(*pollDesc).waitRead(0x10b581b8, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:78 +0x30
net.(*netFD).accept(0x10b58180, 0x0, 0x69e238, 0x10e2c020)
/usr/local/go/src/net/fd_unix.go:419 +0x21c
net.(*TCPListener).accept(0x10b3ea18, 0x2470d1ff, 0x0, 0x0)
/usr/local/go/src/net/tcpsock_posix.go:132 +0x30
net.(*TCPListener).AcceptTCP(0x10b3ea18, 0xa02f0, 0x0, 0x0)
/usr/local/go/src/net/tcpsock.go:209 +0x9c
net/http.tcpKeepAliveListener.Accept(0x10b3ea18, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2608 +0x3c
net/http.(*Server).Serve(0x10b5a0a0, 0x6a0578, 0x10b3ea18, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2273 +0x200
net/http.(*Server).ListenAndServe(0x10b5a0a0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2219 +0xf4
net/http.ListenAndServe(0x10b843ba, 0x3, 0x69dc50, 0x10ab0480, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2351 +0x90
github.com/plimble/ace.(*Ace).Run(0x10ab0480, 0x10b843ba, 0x3)
/home/pi/go/src/github.com/plimble/ace/ace.go:75 +0x3c
main.webInit()
/home/pi/printer/app/web.go:932 +0x2588
main.main()
/home/pi/printer/app/server.go:70 +0x158
goroutine 17 [syscall, 271 minutes, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_arm.s:998 +0x4
goroutine 18 [runnable]:
time.Sleep(0x540be400, 0x2)
/usr/local/go/src/runtime/time.go:59 +0xec
main.(*StatusStruct).FindIP(0x6b6a88)
/home/pi/printer/app/db.go:472 +0xe0
created by main.(*StatusStruct).Load
/home/pi/printer/app/db.go:438 +0x58
goroutine 19 [sleep]:
time.Sleep(0x2a05f200, 0x1)
/usr/local/go/src/runtime/time.go:59 +0xec
main.faultDetection()
/home/pi/printer/app/hardware-interface.go:303 +0x3a4
created by main.hwInit
/home/pi/printer/app/hardware-interface.go:29 +0x21c
goroutine 23 [syscall]:
syscall.Syscall(0x3, 0x4, 0x11b9fefc, 0x1, 0x1, 0x0, 0x0)
/usr/local/go/src/syscall/asm_linux_arm.s:17 +0x8
syscall.read(0x4, 0x11b9fefc, 0x1, 0x1, 0x1, 0x0, 0x0)
/usr/local/go/src/syscall/zsyscall_linux_arm.go:783 +0x78
syscall.Read(0x4, 0x11b9fefc, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/syscall_unix.go:161 +0x4c
os.(*File).read(0x10ab42f8, 0x11b9fefc, 0x1, 0x1, 0x1, 0x0, 0x0)
/usr/local/go/src/os/file_unix.go:228 +0x54
os.(*File).Read(0x10ab42f8, 0x11b9fefc, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/os/file.go:101 +0x7c
github.com/tarm/serial.(*Port).Read(0x10ab4300, 0x11b9fefc, 0x1, 0x1, 0x0, 0x0, 0x0)
/home/pi/go/src/github.com/tarm/serial/serial_posix.go:129 +0x50
_/home/pi/printer/app/shield.(*Conf).Read(0x6b6698, 0x11b9fefc, 0x1, 0x1, 0x1, 0x0, 0x0)
/home/pi/printer/app/shield/shield.go:90 +0x98
main.(*termStruct).readLine(0x6b6670, 0x0, 0x0, 0x0)
/home/pi/printer/app/term.go:54 +0x100
main.(*termStruct).Reader(0x6b6670)
/home/pi/printer/app/term.go:39 +0xdc
created by main.main
/home/pi/printer/app/server.go:54 +0xac
goroutine 24 [sleep]:
time.Sleep(0x540be400, 0x2)
/usr/local/go/src/runtime/time.go:59 +0xec
main.(*monitorStruct).watch(0x6c57c0)
/home/pi/printer/app/slice-monitor.go:84 +0x548
created by main.main
/home/pi/printer/app/server.go:55 +0xc8
goroutine 26 [sleep]:
time.Sleep(0x2a05f200, 0x1)
/usr/local/go/src/runtime/time.go:59 +0xec
_/home/pi/printer/app/hw.Monitor()
/home/pi/printer/app/hw/hw-monitor_linux.go:127 +0x7c
created by main.main
/home/pi/printer/app/server.go:57 +0xf0
goroutine 32 [IO wait, 2 minutes]:
net.runtime_pollWait(0x75a25f00, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:160 +0x60
net.(*pollDesc).wait(0x10a0f078, 0x72, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:73 +0x34
net.(*pollDesc).waitRead(0x10a0f078, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:78 +0x30
net.(*netFD).readFrom(0x10a0f040, 0x10b55a8c, 0x400, 0x400, 0x0, 0x0, 0x0, 0x69ed60, 0x10a10068)
/usr/local/go/src/net/fd_unix.go:270 +0x20c
net.(*UDPConn).readFrom(0x10b300a0, 0x10b55a8c, 0x400, 0x400, 0x10ebe284, 0x4, 0x0, 0x0)
/usr/local/go/src/net/udpsock_posix.go:43 +0x54
net.(*UDPConn).ReadFromUDP(0x10b300a0, 0x10b55a8c, 0x400, 0x400, 0x10ebe200, 0xde, 0x0, 0x0)
/usr/local/go/src/net/udpsock.go:85 +0xc8
_/home/pi/printer/app/ssdp.Server(0x10b9e090, 0x2, 0x10ac28e7, 0x8)
/home/pi/printer/app/ssdp/ssdp.go:56 +0x1ec
created by main.afterIP
/home/pi/printer/app/server.go:82 +0x90
goroutine 8 [sleep]:
time.Sleep(0x7e11d600, 0x3)
/usr/local/go/src/runtime/time.go:59 +0xec
main.WifiStatus()
/home/pi/printer/app/wireless.go:106 +0x32c
created by main.wifiConnect
/home/pi/printer/app/wireless.go:22 +0x7c
goroutine 399 [runnable]:
time.Sleep(0xf4240, 0x0)
/usr/local/go/src/runtime/time.go:59 +0xec
main.waitPinBlock()
/home/pi/printer/app/hardware-interface.go:53 +0x1ec
main.processInternalKeyword(0x10e58300, 0x3, 0x3, 0x0, 0x0)
/home/pi/printer/app/gcode.go:66 +0x15f8
main.gcodeExecute(0x10eefff3, 0xb)
/home/pi/printer/app/gcode.go:42 +0x18c
main.gcodeSend(0x10ab2e60, 0x11, 0x10b040a0, 0x96)
/home/pi/printer/app/gcode.go:29 +0xd8
main.printLayer(0x2fd, 0x5bd, 0x2fe)
/home/pi/printer/app/printing.go:192 +0x59c
main.startPlate(0x2e, 0x1)
/home/pi/printer/app/printing.go:77 +0x368
created by main.printerStart
/home/pi/printer/app/web.go:700 +0x134
goroutine 50 [sleep]:
time.Sleep(0xf8475800, 0xd)
/usr/local/go/src/runtime/time.go:59 +0xec
main.updateControlPanel()
/home/pi/printer/app/server.go:173 +0x28
created by main.afterIP
/home/pi/printer/app/server.go:84 +0xf8
trap 0x0
error 0x0
oldmask 0x0
r0 0x0
r1 0x1a37
r2 0x6
r3 0x0
r4 0x76ddd094
r5 0x7cfa5460
r6 0x0
r7 0x10c
r8 0x1
r9 0x610ff920
r10 0x10e5e4b0
fp 0x698694
ip 0x7cfa5920
sp 0x7cfa4b00
lr 0x76cccf44
pc 0x76cccf70
cpsr 0x20000010
fault 0x0
Offline
If your supervisor call /printer/resume url it could resume the last print.
Offline
nice, i will try that, thanks!
Offline
Pages: 1