question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SOLVED - Segmentation fault on Raspberry PI

See original GitHub issue

Hi, I’m sorry but I don’t speak English verry well…

I have a segmentation fault when I run my program on my Raspberry PI (3) but it’s works on Windows. I use “webcam-capture 0.3.10” and “bridj 0.7”.

public CameraStream(Camera camera) {
    this.camera = camera;
    this.start();
}

public void run() {
    Webcam camera = Webcam.getDefault(); <- ERROR
    if (camera == null) {
        System.err.println("Pas de caméra.");
        return;
    } else {
        System.out.println("Caméra : " + camera.getName());
    }
    camera.setViewSize(new Dimension(320, 240));
    camera.open();
}

Does anyone know of any solution to this problem ?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
LTNicocommented, Jul 16, 2016

Solved : Driver webcam-capture-driver-v4l4j

1reaction
Longoon12000commented, Oct 30, 2020

Is there any workaround for the “we shouldnt be here…” thing? I can’t get it to work even with using Webcam.getWebcamByName("/dev/video0").

Read more comments on GitHub >

github_iconTop Results From Across the Web

What means "Segmentation fault" error using apt?
Try adding sudo to the start of your commands, just in case it's a permissions issue. · It's not a permissions issue. ·...
Read more >
How to resolve “segmentation fault” on Raspberry Pi - Quora
1. Compile your program with the -g flag. So, it'd be something like: · 2. You need a tool called "gdb". It is...
Read more >
[Solved] Segmentation fault and debugging
The bug is due to it trying to figure out how far it needs to seek backwards in the raw buffer to align...
Read more >
Segmentation Fault when running on Raspberry Pi 3B+ #3296
I am trying to run ONNX Runtime on RaspberryPi 3 B+, which has armv7l quad-core CPU. In order to perform the cross-compilation for...
Read more >
Segmentation Fault when Cross Compiling for Raspberry Pi ...
I'm experimenting with the most simplest program I can came up with, to check out cross-compiling and remote debugging on a raspberry pi...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found