openframeworks / openframeworks/openFrameworks

printDeviceList() causes crash on Raspberry Pi

Open
#5,945 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

soundStream.printDeviceList(); causes a crash when trying to run this example on a Raspberry Pi.
It compiles fine, but when trying to run I get a Segmentation fault, followed by the message:
make: *** [RunRelease] Error 139

Commenting it out fixes the problem. I used ofSoundStreamListDevices(); instead, and it worked about the same.

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

Reproduce the example on a Raspberry Pi with soundStream.printDeviceList() enabled, then compare it with ofSoundStreamListDevices(). Inspect the implementation and call path for soundStream.printDeviceList() and capture the failure; done means the example runs without a segmentation fault while listing devices.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, raspberry-pi
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.