You are not logged in.

#1 2018-03-19 01:12:47

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

External Call Problem fork/exec /bin/sh: cannot allocate memory

I get a lot of these errors with build 1814.
In terms of external program calls, I just use a couple of python scripts to control the Light Engine.

Memory usage gets up to 53% if I don't restart after each print, and I have to disable camera otherwise the Pi crashes mid print.

Any suggestions?

Offline

#2 2018-03-19 04:00:00

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

Re: External Call Problem fork/exec /bin/sh: cannot allocate memory

Try run commands below on SSH one by one, see if they make any difference.

sysctl -w vm.overcommit_memory=1
sysctl -w vm.swappiness=1

Offline

#3 2018-03-19 04:23:22

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

Re: External Call Problem fork/exec /bin/sh: cannot allocate memory

I used the supplied commands, enabled camera, and did a dry run.
Memory usage reached 55% and the file printed for 15 mins, then RPi crashed.

Offline

#4 2018-03-19 04:47:27

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

Re: External Call Problem fork/exec /bin/sh: cannot allocate memory

Please, attach a debug file.

Offline

#5 2018-03-19 04:59:11

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

Re: External Call Problem fork/exec /bin/sh: cannot allocate memory

I cant, RPi locked me out sad
https://photos.app.goo.gl/75WOnqWOZ7kanu073

Does it mean I have to do a fresh install?

Offline

Board footer

Powered by FluxBB