Camera Video Capture Call On Pi3 - raspberry-pi3

I'm getting the following error when trying to record video on the Pi:
03-29 20:30:16.434 661-661/xxx.xxx.xxx D/Camera: Media Recoder Prepare Completedandroid.media.MediaRecorder#2da1655
Starting Video
Media Recorder: android.media.MediaRecorder#2da1655
03-29 20:30:17.900 661-661/xxx.xxx.xxx E/MediaRecorder: start failed: -19
03-29 20:30:17.906 661-661/xxx.xxx.xxx E/Camera: Video Initialization Error
java.lang.RuntimeException: start failed.
at android.media.MediaRecorder.start(Native Method)
at xxx.xxx.xxx.capture.VideoCapture.startRecordVideo(VideoCapture.java:176)
at xxx.xxx.xxx.capture.VideoCapture$1.onOpened(VideoCapture.java:70)
at android.hardware.camera2.impl.CameraDeviceImpl$1.run(CameraDeviceImpl.java:139)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
It looks to be a native JNI call error returned from camera.v4l2.so
Does anyone know what the -19 error means? Also, has anyone successfully
captured video with Android Things on Pi? Image capture works like a champ but I've had no success with video.

Related

RocksDB exception in Kafka Streams with kafka_2.13-3.2.0 running on Window

I have kafka 2.13-3.2.0 running on Window machine. I am trying stream Join operation and getting following error. I can see same issue fixed in 1.0.1 version as per : https://issues.apache.org/jira/browse/KAFKA-6162
But I am still getting this error with kafka 2.13-3.2.0.
Error Logs:
Caused by: org.rocksdb.RocksDBException: Failed to create dir: D:\tmp\kafka-streams\join_driver_application\1_0\KSTREAM-JOINTHIS-0000000014-store\KSTREAM-JOINTHIS-0000000014-store:1661385600000: Invalid argument
at org.rocksdb.RocksDB.open(Native Method)
at org.rocksdb.RocksDB.open(RocksDB.java:231)
at org.apache.kafka.streams.state.internals.RocksDBStore.openDB(RocksDBStore.java:197)
... 23 more

Jmeter HLS Plugin Error - master/slave configuration. Thread[StandardJMeterEngine,5,RMI Runtime] java.lang.NullPointerException: null

when using the Jmeter Streamer Plugin (HLS Plugin) in a distributed setup (master/slave), I'm getting an error message an no tests are run. I have not issue when accessing a mpeg-dash live video stream without a distributed setup. Everything works fine. In a master/slave configuration I'm getting the following error:
2020-05-28 17:06:34,629 ERROR o.a.j.JMeter: Uncaught exception in thread Thread[StandardJMeterEngine,5,RMI Runtime]
java.lang.NullPointerException: null
at com.blazemeter.jmeter.hls.logic.HlsSampler.testStarted(HlsSampler.java:234) ~[jmeter-bzm-hls-3.0.2.jar:?]
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.testStarted(HTTPSamplerBase.java:1589) ~[ApacheJMeter_http.jar:5.3]
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:207) ~[ApacheJMeter_core.jar:5.3]
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:380) ~[ApacheJMeter_core.jar:5.3]
at java.lang.Thread.run(Thread.java:834) [?:?]
Any ideas what the issue could be? The master/slave configuration seems to be ok, as i tried this successfully with a simple http-request sampler. I'm assuming the issue is related to the Streaming Plugin, but just assuming ...
The issue is fixed with the v3.0.3 of the HLS Plugin. The Jmeter distributed test setup worked for me now. https://github.com/Blazemeter/HLSPlugin/issues/9

ICE failed for component 1 in stream

I have configured janus server for video call.
configured all setups and installed all dependencies as per the Docs
successfully established the connection but unable to stream the video. After starts the new session ICE failed error throws error logs as follows
JANUS WebSockets transport plugin initialized!
WebSockets thread started
Creating new session: 7153905178555544; 0x7fd244004c00
Creating new handle in session 7153905178555544: 7459090747208459; 0x7fd244004c00 0x7fd244005670
Creating new session: 8203604816882479; 0x7fd24400b8c0
Creating new handle in session 8203604816882479: 1196748959220562; 0x7fd24400b8c0 0x7fd244018910
Destroying session 8203604816882479; 0x7fd24400b8c0
Detaching handle from JANUS VideoRoom plugin; 0x7fd244018910 0x7fd24400b890 0x7fd244018910 0x7fd24401f760
[janus.plugin.videoroom-0x7fd24400b890] No WebRTC media anymore; 0x7fd244018910 0x7fd24401f760
[1196748959220562] Handle and related resources freed; 0x7fd244018910 0x7fd24400b8c0
[WSS-0x7fd244008340] Destroying WebSocket client
[7459090747208459] Creating ICE agent (ICE Lite mode, controlled)
[WARN] [7459090747208459] ICE failed for component 1 in stream 1, but let's give it some time... (trickle received, answer received, alert not set)
[ERR] [ice.c:janus_ice_check_failed:1692] [7459090747208459] ICE failed for component 1 in stream 1...
[janus.plugin.videoroom-0x7fd244001e60] No WebRTC media anymore; 0x7fd244005670 0x7fd244005fe0
[7459090747208459] WebRTC resources freed; 0x7fd244005670 0x7fd244004c00
[ERR] [transports/janus_http.c:janus_http_handler:1239] Invalid url /ws/v1/cluster/apps/new-application
[ERR] [transports/janus_http.c:janus_http_handler:1239] Invalid url /ws/v1/cluster/apps/new-application
[ERR] [transports/janus_http.c:janus_http_handler:1239] Invalid url /ws/v1/cluster/apps/new-application
[ERR] [transports/janus_http.c:janus_http_handler:1239] Invalid url /ws/v1/cluster/apps/new-application
[ERR] [transports/janus_http.c:janus_http_handler:1239] Invalid url /ws/v1/cluster/apps/new-application
[ERR] [transports/janus_http.c:janus_http_handler:1239] Invalid url /ws/v1/cluster/apps/new-applicatio
You can speicfy stun/turn servers for icing in /opt/janus/etc/janus/janus.jcfg.
Also you should open ports for udp like 40000-65535

PITEST mutationCoverage is returning SocketException

While running clean test verify org.pitest:pitest-maven:mutationCoverage, getting the below exception.
PIT >> INFO : MINION :
.pitest.testapi.execute.containers.UnContainer.execute(UnContainer.java:31)
- at org.pitest.testapi.execute.Pitest.executeTests(Pitest.java:57)
- at org.pitest.testapi.execute.Pitest.run(Pitest.java:48)
- at org.pitest.coverage.execute.CoverageWorker.run(C
-Caused by: java.net.SocketException: Software caused connection abort: socket write error
-- at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java
The micro service has many scenarios to execute, would like to know how this can be fixed. I see some details in http://pitest.org/faq/ refering under section
PIT is taking forever to run, but not sure, if there is a way to increase the thread count.

NiFi fails to launch due to java.lang.IllegalArgumentException

I have been trying to launch NiFi, but everytime I do so I get the following error:
2019-03-06 18:53:46,935 ERROR [main] org.apache.nifi.NiFi Failure to
launch NiFi due to java.lang.IllegalArgumentException:
java.security.NoSuchAlgorithmException: md5 MessageDigest not
available java.lang.IllegalArgumentException:
java.security.NoSuchAlgorithmException: md5 MessageDigest not
available
at org.apache.nifi.nar.NarUnpacker.calculateMd5sum(NarUnpacker.java:419)
at org.apache.nifi.nar.NarUnpacker.unpackNar(NarUnpacker.java:228)
at org.apache.nifi.nar.NarUnpacker.unpackNars(NarUnpacker.java:123)
at org.apache.nifi.NiFi.(NiFi.java:128)
at org.apache.nifi.NiFi.(NiFi.java:71)
at org.apache.nifi.NiFi.main(NiFi.java:296) Caused by: java.security.NoSuchAlgorithmException: md5 MessageDigest not
available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.MessageDigest.getInstance(MessageDigest.java:167)
at org.apache.nifi.nar.NarUnpacker.calculateMd5sum(NarUnpacker.java:407)
... 5 common frames omitted 2019-03-06 18:53:46,939 INFO [Thread-1] org.apache.nifi.NiFi Initiating shutdown of Jetty web
server... 2019-03-06 18:53:46,940 INFO [Thread-1] org.apache.nifi.NiFi
Jetty web server shutdown completed (nicely or otherwise).
I understand this is coming from "calculateMd5sum " function that calculates md5 sum of a specified file. However, I have made no changes to any of Nars neither have I added any custom nars. The same instance did launch before.
I have also tried to start afresh by extracting the setup again, however I face the same error. I fail to understand why the issue is coming up all of a sudden. Please help!
I got it.
My java home pointed to "C:\Program Files\Java\jdk1.8.0_65"
changed the path to "C:\Program Files (x86)\Java\jre1.8.0_121"
It works fine now.
Thanks #BryanBende

Resources