openframeworks / openframeworks/openFrameworks

ofSystem() On Raspberry Pi Error

Open
#5,108 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

linuxarm
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

Raspberry Pi 2 with Raspbian, openFrameworks arm6

I've got code in my program to shutdown the Pi using "ofSystem("sudo halt")". Some times it works and sometimes it doesn't. When it doesn't work, it returns an error that says ofSystem() wasn't able to open the return file or something. Maybe it says sudo halt doesn't exist? I'm not sure because I can't reproduce it right now, but it's been happening on and off since I started using ofSystem() on the Pi. Thanks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names ofSystem() and the sudo halt command on Raspberry Pi with Raspbian; start by reproducing the intermittent failure and tracing the error reported when ofSystem() cannot open its return file. Done means the failure is reproducible and the command's behavior or error handling has a clear resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux, raspberry-pi
Domain
embedded-iot, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.