You are not logged in.

#1 2022-06-16 08:09:15

peaceblackhair
Member
Registered: 2018-12-11
Posts: 42

Automatically generate 3d previews of all models in usb

Hello Shahin,

i upgraded my nanodlp to 5828.

i checked logs and i saw nanodlp trying to generate preview of all files with extension svg, zip, slc, stl in usb flash disk

is it bug or feature ? if its feature please add option for it.

2022/06/16 11:12:18.068471 {"Layer":"0","module":"Preview","level":"Error","msg":"pixel crop failed crop dimensions are not valid"}
2022/06/16 11:12:18.068502 3D preview generator has been failed and terminated runtime error: invalid memory address or nil pointer dereference
goroutine 653 [running]:
runtime/debug.Stack(0x5190cc, 0xc000094050, 0x2)
	/usr/local/go/src/runtime/debug/stack.go:24 +0x9f
runtime/debug.PrintStack()
	/usr/local/go/src/runtime/debug/stack.go:16 +0x25
nanodlp/app/threed/preview.Render.func1()
	/go/src/projects/printer/app/threed/preview/preview.go:71 +0xa5
panic(0xf61d60, 0x17637f0)
	/usr/local/go/src/runtime/panic.go:965 +0x1b9
nanodlp/app/threed/preview.Render(0xc000293e00, 0xc000500048, 0xc0004de420, 0x56, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/src/projects/printer/app/threed/preview/preview.go:129 +0x7d7
nanodlp/app/threed/preview.renderWithContext(0xc0004de540, 0xc000293e00, 0xc000500048, 0xc0004de420, 0x56, 0x0, 0x0, 0x176b600, 0x0, 0x0)
	/go/src/projects/printer/app/threed/preview/preview.go:55 +0x96
created by nanodlp/app/threed/preview.RenderWithTimeout
	/go/src/projects/printer/app/threed/preview/preview.go:43 +0x153
2022/06/16 11:12:18.068536 {"Layer":"0","module":"3D Preview","level":"Notice","msg":"3D preview has been generated /media/nroot/483AD00F629E8A36/node_modules/ammap3/ammap/maps/svg/belgiumLow.svg"}

Last edited by peaceblackhair (2022-06-16 08:13:21)

Offline

#2 2022-06-24 06:10:22

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,517

Re: Automatically generate 3d previews of all models in usb

Thank you for the report.
Yes it should not try generating preview for 2D files.

Offline

Board footer

Powered by FluxBB