robbielyman / seamstress

seamstress is an art engine
GNU General Public License v3.0
123 stars 12 forks source link

screen.arc params crash #99

Closed jaseknighter closed 9 months ago

jaseknighter commented 10 months ago

if theta1 param is greater than theta2 param, the screen.arc function crashes seamstress.

example code to crash: screen.arc(10,2,1)

example output:

thread 795257 panic: OOM!
???:?:?: 0x10f88a3a1 in _lib.wrapZigFn__anon_32514__struct_33582.inner (???)
???:?:?: 0x10f951d64 in _precallC (???)
???:?:?: 0x10f951f53 in _luaD_precall (???)
???:?:?: 0x10f944681 in _luaV_execute (???)
???:?:?: 0x10f9520db in _luaD_callnoyield (???)
???:?:?: 0x10f95120f in _luaD_rawrunprotected (???)
???:?:?: 0x10f95261c in _luaD_pcall (???)
???:?:?: 0x10f93f459 in _lua_pcallk (???)
???:?:?: 0x10f87610a in _spindle.docall (???)
???:?:?: 0x10f8a848b in _events.handle (???)
???:?:?: 0x10f885afa in _Thread.PosixThreadImpl.spawn__anon_32731.Instance.entryFn (???)
???:?:?: 0x7fff208498fb in ??? (libsystem_pthread.dylib)
Unwind error at address `libsystem_pthread.dylib:0x7fff208498fb` (error.InvalidDebugInfo), trace may be incomplete

???:?:?: 0x7fff20845442 in ??? (libsystem_pthread.dylib)
???:?:?: 0x0 in ??? (???)