SOLVED - Segmentation fault on Raspberry PI
See original GitHub issueHi, 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:
- Created 7 years ago
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Solved : Driver webcam-capture-driver-v4l4j
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")
.