You are not logged in.

#1 2019-05-07 16:22:31

somik
Member
Registered: 2018-02-07
Posts: 65

Camera not working

After the update, the camera stopped working. (build #2185)
When you click the "Take Photo" button, the image is not updated, the files in the "/ home / pi / printer / public / shots" folder do not appear, the link "/home/pi/printer/public/shot.jpg changes".
In the log "Notice 0 2019-05-07 16: 23: 40.420495 Camera Taking Photo [] exit status 2"

With the command "raspistill -o cam.jpg -w 1000 -h 1296 --timeout 700 --rotation 90 --awb sun" the current image appears in the folder "/ home / pi", i.e. The camera is working.
It looks like a similar problem has already been https://www.nanodlp.com/forum/viewtopic.php?id=45

Last edited by somik (2019-05-07 17:05:58)

Offline

#2 2019-05-07 16:27:41

Yianni-VJ
Member
Registered: 2016-05-24
Posts: 95

Re: Camera not working

I never got the camera working right either.
And the more I tried the more memory problems happened which ruined my print so I gave up.
I would like to know if anybody got that thing working.

Offline

#3 2019-05-07 16:29:09

somik
Member
Registered: 2018-02-07
Posts: 65

Re: Camera not working

Yianni-VJ wrote:

I never got the camera working right either.
And the more I tried the more memory problems happened which ruined my print so I gave up.
I would like to know if anybody got that thing working.

My camera used to work well in all modes - very convenient. And after the update - stopped.

Offline

#4 2019-05-07 17:04:47

somik
Member
Registered: 2018-02-07
Posts: 65

Re: Camera not working

Changelog Build #2101 https://www.nanodlp.com/forum/viewtopic.php?id=2&p=2
Change: Remove camera raspistill dependency and make camera support generic

How to control the camera now?

Offline

#5 2019-05-07 19:14:34

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

Re: Camera not working

Try this one
raspistill -o {{file}} -w 1000 -h 1296 --timeout 700 --rotation 90 --awb sun  --nopreview

Offline

#6 2019-05-08 01:27:19

somik
Member
Registered: 2018-02-07
Posts: 65

Re: Camera not working

Shahin wrote:

Try this one
raspistill -o {{file}} -w 1000 -h 1296 --timeout 700 --rotation 90 --awb sun  --nopreview

Thank you very much. Camera works:)

Offline

#7 2019-05-18 15:39:37

PhiMX
Member
Registered: 2019-05-10
Posts: 21

Re: Camera not working

Where can I enter this?
My camera works when I send a console command, but nothing in nanoDLP, not even a menu option

Offline

#8 2019-05-19 05:05:06

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

Re: Camera not working

Camera input on the setup page.

Offline

#9 2019-05-21 23:13:45

somik
Member
Registered: 2018-02-07
Posts: 65

Re: Camera not working

The camera stopped working again. In the log such a message:
Camera    Taking Photo [] fork/exec /bin/sh: cannot allocate memory

Offline

#10 2019-05-23 04:03:36

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

Re: Camera not working

Have you checked if your pi have enough memory or not?
Please, share debug file after system start throwing the error.

Offline

#11 2019-05-24 00:29:15

somik
Member
Registered: 2018-02-07
Posts: 65

Re: Camera not working

Shahin wrote:

Have you checked if your pi have enough memory or not?
Please, share debug file after system start throwing the error.

Disk    51%    Memory    38%
16 gb microsd

nanodlp.debug.93236871.zip

Last edited by somik (2019-05-24 00:30:37)

Offline

#12 2019-05-24 15:04:54

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

Re: Camera not working

Looks like a bug on lang/compiler.
https://github.com/golang/go/issues/31936

Offline

#13 2019-05-24 18:19:20

somik
Member
Registered: 2018-02-07
Posts: 65

Re: Camera not working

I did not update linux and its services.
A problem with the camera occurred after updating the NanoDLP.
Also, sometimes a photo is taken by the camera.
This information will probably help:

top - 18:16:29 up 20:57,  1 user,  load average: 1.63, 1.48, 1.39
Tasks: 130 total,   2 running, 128 sleeping,   0 stopped,   0 zombie
%Cpu(s): 10.9 us, 17.3 sy,  0.0 ni, 71.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:    815592 total,   756776 used,    58816 free,    30880 buffers
KiB Swap:   102396 total,    51704 used,    50692 free.   182832 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
  635 root      20   0    7732   1368   1268 S   5.9  0.2  72:23.90 pigpiod
  612 root      20   0  158444  32128   6396 S   5.0  3.9  40:09.10 node
  606 root      20   0  154636  27188   6408 S   4.6  3.3  39:00.61 node
  610 root      20   0  154576  26612   6328 S   4.6  3.3  39:11.36 node
  615 root      20   0  154440  29156   6328 S   4.6  3.6  39:28.37 node
  609 root      20   0  153500  26552   6296 S   4.3  3.3  38:52.81 node
  614 root      20   0  154356  27604   6396 S   4.0  3.4  39:45.79 node
  616 root      20   0  152568  27452   6320 S   4.0  3.4  39:05.09 node
  607 root      20   0  243368  79332   7136 S   2.6  9.7  43:52.49 node
  611 root      20   0  156376  29624   6476 S   2.3  3.6  39:36.82 node
  605 root      20   0  155380  28448   6476 S   2.0  3.5  39:58.28 node
  608 root      20   0  157424  30680   6396 S   2.0  3.8  39:49.44 node
  702 root      20   0  999508 211292   7392 S   2.0 25.9 250:09.95 printer
30837 pi        20   0    5248   2440   2076 R   0.7  0.3   0:06.78 top

Offline

#14 2019-05-26 04:27:04

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

Re: Camera not working

Looks like you have nodejs installed and it takes too much memory. Terminate it, maybe it helps.

Offline

#15 2019-07-11 02:21:33

somik
Member
Registered: 2018-02-07
Posts: 65

Re: Camera not working

Kill Node process does not resolve the error.

Offline

#16 2019-07-11 02:46:17

somik
Member
Registered: 2018-02-07
Posts: 65

Re: Camera not working

The camera sometimes works before slicing starts. Perhaps the memory eats slicer

Offline

Board footer

Powered by FluxBB