0may / f1uxu5

f1luxu5 is a live lightpainting app
Other
2 stars 0 forks source link

Crashing issue/confusion on f1uxu5 app #1

Closed gameblabla closed 3 years ago

gameblabla commented 3 years ago

Hey, wanted to give this a try with a Gopro i borrowed and it seems that no matter if it's plugged in or not, i can't even start up the app. (not to mention the documentation does not even talk about the fact you have to run it i believe)

I'm utterly confused as to get this to work : is the app running in the background already? Because if that's the case, then how am i supposed to get the final video output ? (not to mention that ffmpeg, fswebcam... isn't provided on the firmware image)

The README and https://www.oliver-mayer.com/work_f1uxu5.html tells you how to configure it (and i was able to get the web ui working) but not how to actually run it on the Pi 3B. Does this only work on the pi camera ? To me, there's no reason it wouldn't work on an external camera but i could be wrong.

GNU gdb (Raspbian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from f1uxu5/bin/f1uxu5...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/pi/f1uxu5/bin/f1uxu5 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0x74b1a2a0 (LWP 749)]
[New Thread 0x741ff2a0 (LWP 750)]
[New Thread 0x739fe2a0 (LWP 751)]
[New Thread 0x731fd2a0 (LWP 752)]
[New Thread 0x729fc2a0 (LWP 753)]
[New Thread 0x721fb2a0 (LWP 754)]
[New Thread 0x719fa2a0 (LWP 755)]

Setting up camera
- Specified camera resolution: 1280x720
- Available options for RPi camera:
  - White Balance names:   Auto Cloudy Flash Fluorescent Horizon Incandescent Off Shade SunLight Tungsten 
  - Metering Type names:   Average Backlit Matrix Spot 
  - Exposure Preset names: Antishake Auto BackLight Beach Fireworks FixedFps LargeAperture Night NightWithPreview Off SmallAperture Snow Sports SpotLight VeryLong 

Thread 1 "f1uxu5" received signal SIGSEGV, Segmentation fault.
0x0016c9f4 in DisableAllPortsForComponent ()
(gdb) bt
#0  0x0016c9f4 in DisableAllPortsForComponent ()
#1  0x0016f7a4 in VideoEngine::setup(ofxOMXCameraSettings*, VideoEngineListener*, void*) ()
#2  0x0015c0ac in ofxOMXVideoGrabber::setup(ofxOMXCameraSettings&) ()
#3  0x0008c948 in ofApp::setupCamera() ()
#4  0x0008ccac in ofApp::setup() ()
#5  0x00196bcc in std::_Function_handler<bool (void const*, ofEventArgs&), std::shared_ptr<of::priv::Function<ofEventArgs, std::recursive_mutex> > ofEvent<ofEventArgs, std::recursive_mutex>::make_function<ofBaseApp>(ofBaseApp*, void (ofBaseApp::*)(ofEventArgs&), int)::{lambda(void const*, ofEventArgs&)#1}>::_M_invoke(std::_Any_data const&, void const*&&, ofEventArgs&) ()
#6  0x0017c128 in ofCoreEvents::notifySetup() ()
#7  0x00196b08 in ofMainLoop::run(std::shared_ptr<ofBaseApp>&&) ()
#8  0x001a3930 in ofRunApp(ofBaseApp*) ()
#9  0x0006b124 in main ()
(gdb) 
0may commented 3 years ago

Hi, the app uses https://github.com/jvcleave/ofxOMXCamera (ofxOMXVideoGrabber) to control the Raspberry Pi camera module only. It won't work with USB cameras, only camera modules connected to the Raspi's CSI interface may work. I only tested with the Raspberry Pi camera module v2.

0may commented 3 years ago

I also uploaded a Raspbian image here https://www.oliver-mayer.com/files/f1uxu5-1.0.zip (you can find it at https://www.oliver-mayer.com/work_f1uxu5.html) It sets up and starts everything you need at startup to instanly use the system (wifi host, webserver for webUI, lightpainting app). Of course using the Raspi camera module.

gameblabla commented 3 years ago

Hey, thanks ! That's actually the firmware i've been using. Sadly i don't have the raspbi camera (and the whole point was to also have better image quality over the pi camera also : P)... Kind of a shame actually, i guess this may have to be implemented with ffmpeg at some later point. Another guy told me it didn't work at all on the pi4 (it does boot on my pi3), i assume this wasn't tested on the pi4 either ?

Of course for the latter, i could spin my own build if needed...

0may commented 3 years ago

I wanted to develop a cheap system that you can just install at festivals or exhibitions and don't have to worry about expensive hardware like GoPros. That's why I used the camera module. It uses a different interface than USB cameras, but is highly integrated and thus has good performance on the Raspi compared to other cameras if I remember correctly.

I was already told that it does not work on RPi4. That's because the image uses an older Raspbian version that does not work with RPi4. The project is from before RPi4 and I did not have the time yet to bring it to RPi4. Please go ahead and do it if you like. Maybe I can support but do not have the time to do it right now.