libEGL warning: DRI!: ailed to authenticate - image-processing

ibcamera-still
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:07:27.483694161] [1545] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3866-0c55e522
[0:07:27.582976454] [1559] INFO RPI raspberrypi.cpp:1374 Registered camera /base/soc/i2c0mux/i2c#1/ov5647#36 to Unicam device /dev/media3 and ISP device /dev/media0
[0:07:27.584988561] [1545] INFO Camera camera.cpp:1035 configuring streams: (0) 1296x972-YUV420
[0:07:27.585692007] [1559] INFO RPI raspberrypi.cpp:761 Sensor: /base/soc/i2c0mux/i2c#1/ov5647#36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
terminate called after throwing an instance of 'std::runtime_error'
what(): failed to import fd 19
Aborted
ibcamera-still
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:07:27.483694161] [1545] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3866-0c55e522
[0:07:27.582976454] [1559] INFO RPI raspberrypi.cpp:1374 Registered camera /base/soc/i2c0mux/i2c#1/ov5647#36 to Unicam device /dev/media3 and ISP device /dev/media0
[0:07:27.584988561] [1545] INFO Camera camera.cpp:1035 configuring streams: (0) 1296x972-YUV420
[0:07:27.585692007] [1559] INFO RPI raspberrypi.cpp:761 Sensor: /base/soc/i2c0mux/i2c#1/ov5647#36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
terminate called after throwing an instance of 'std::runtime_error'
what(): failed to import fd 19
Aborted

Related

IWD ap not starting: START_AP failed: -95

Interface is set to AP mode.
When turning on ap it is giving "Operation not supported".
[iwd]# ap wlan0 start "start_wpa2" password
Operation not supported
Output of iwd -d:
src/netdev.c:netdev_link_notify() event 16 on ifindex 5
src/scan.c:scan_notify() Scan notification Trigger Scan(33)
src/scan.c:scan_notify() Scan notification New Scan Results(34)
src/netdev.c:netdev_link_notify() event 16 on ifindex 5
Could not register frame watch type 0000: -22
Could not register frame watch type 0020: -22
Could not register frame watch type 00a0: -22
Could not register frame watch type 00c0: -22
START_AP failed: -95
Using WPA_Supplicant, same AP is able to start.
Using a different device driver solves the problem, it is problem in the driver, not in IWD. By adding debug prints in cfg80211 and Netlink helps which is making problem.

Vidyo.io call recording issue

I'm developing a web application integrating Vidyo and I need to record video calls. I followed the documentation guide and installed a Media Bridge Docker image in my server. I don't face problems on connecting with the media bridge, but effectively it doesn't record video nor audio. The output .flv file shows only a 10 seconds black screen with display names of the call particpants.
My configuration file is:
width=1280
height=720
fps=30
kbps=2000
layout=1
maxParticipants=8
overlay=1
videoCodec=H264
audioCodec=AAC
maxCallDuration=180
presentationAllowed=1
presWidth=1280
presHeight=720
presFps=5
presKbps=300
destination="flv:/opt/vidyo/recordingTest.flv"
resourceId="test_recording"
token=<TOKEN HERE>
host="prod.vidyo.io"
mediaPorts="50000-50100"
publicIp="127.0.0.1"
log=debug
And the errors in the output log file are:
[1050]: LmiAudioProcessing ERROR [System thread] LmiAudioProcessing.c:1208 LmiAudioProcessingSetVoiceProcessing scip_xmpp_audio_processing audio processing: special voice processing should be set to off prior to setting voice processing off.
[1050]: LmiAudioProcessing ERROR [System thread] LmiAudioProcessing.c:1219 LmiAudioProcessingSetVoiceProcessing scip_xmpp_audio_processing audio processing: unable to set voice processing off.
[1050]: LmiTransport ERROR [System thread] LmiTcpTransport.c:1435 LmiTcpTransportConstructAddressFromString Error resolving address roni.eng.vidyo.com:443: UnknownHost
[1050]: LmiSignaling ERROR [System thread] LmiStackConnection.c:36 LmiStackConnectionConstructOutbound Could not create connection to ed3df5eef18e3b0d
[1050]: XmppGateway ERROR [System thread] xmpp.c:1010 makeXmppCall failed: LmiUserLogin
[1050]: leg ERROR [System thread] leg.c:845 legStart epMakeCall failed. protocol: xmpp dest: room:demoRoom~token:<TOKEN>~server:roni.eng.vidyo.com config: addOverlay:on~caFile:/opt/vidyo/conf/openssl/certs/ca-certificates.crt~dropCall:on
[1050]: gwCall ERROR [System thread] call.c:1744 main failed: legStart 0
[126]: LmiAudioProcessing ERROR [System thread] LmiAudioProcessing.c:1208 LmiAudioProcessingSetVoiceProcessing scip_xmpp_audio_processing audio processing: special voice processing should be set to off prior to setting voice processing off.
[126]: LmiAudioProcessing ERROR [System thread] LmiAudioProcessing.c:1219 LmiAudioProcessingSetVoiceProcessing scip_xmpp_audio_processing audio processing: unable to set voice processing off.
[126]: writer ERROR [System thread] writer.c:876 writerUpdateStats failed: Assign audio stats
[126]: rtmp ERROR [System thread] rtmp.c:662 endpointGetStats failed: Update stats
[126]: leg ERROR [System thread] leg.c:1567 legGetStats failed: epGetStats failed
[126]: ScipXmppCommon ERROR xmpp scip_xmpp_common.c:269 sxcRemoteSourceAdded We already have video remote source - skip this one
[126]: LmiRtp ERROR xmpp LmiRtpSessionInline.h:294 LmiRtpSessionGetActiveRtpDestination 3LI/IGh+pOy/zbUmmgAa conn 1: Can't get active RTP destination from stopped session
[126]: LmiRtp ERROR xmpp LmiRtpSessionInline.h:294 LmiRtpSessionGetActiveRtpDestination 3LI/IGh+pOy/zbUmmgAa conn 2: Can't get active RTP destination from stopped session
[126]: XmppGateway ERROR xmpp xmpp.c:586 selectedParticipantListChanged failed: selected_participants_do_show_selected_n
[126]: leg ERROR videoRenderer leg.c:388 epCaptureVideo leg: xmpp get video frame failed
[126]: gwCall ERROR gw-tp-1 call.c:1472 peerCallEndTask legEndCall failed
In case if this helps you try this, this worked for me.You don't need SIP configuration
#main video/audio settings
width=1280
height=720
fps=30
kbps=2000
layout=1
maxParticipants=8
overlay=1
videoCodec=H264
audioCodec=PCM
maxCallDuration=180 # duration in minutes
#Presentation settings
presentationAllowed=1 #0 - ignore presentations 1 - replace main video with presentation
presWidth=1280
presHeight=720
presFps=5
presKbps=300
destination="flv:/opt/vidyo/<call_id>.flv"
#vidyo.io connection info
resourceId="<room_id>"
token="<call_token>"
host="prod.vidyo.io"

Xcode unit testing session exited error while running the unit test cases

I am executing the unit test cases using XCTest but the test cases are failed without running the method call.
The below error is displayed in the test log.
Test session exited(45) without completing.
Below are the log file contents.
10:13:51.477 Xcode[27399:424996] <IDETestOperationCoordinator: 0x7fec86f3a2d0>: parseConsoleOutputFromOriginalOutput: called, 78 bytes written out to StandardOutputAndStandardError
10:13:51.581 Xcode[27399:463189] Lost connection to the test daemon.
10:13:51.581 Xcode[27399:462510] Closing socket 69 to testmanagerd for Sim iPhone 5
10:13:51.582 Xcode[27399:462503] Closing socket 58 to testmanagerd for Sim iPhone 5
10:13:51.585 Xcode[27399:424996] Got death notice for pid 31596, removing from SimulatorSessionMap
10:13:51.585 Xcode[27399:424996] Checking to see if pid 31476 is valid: kill(pid, 0) = 0 (YES, it's still running)
10:13:51.585 Xcode[27399:424996] <IDETestOperationCoordinator: 0x7fec86f3a2d0>: parseConsoleOutputFromOriginalOutput: called, 0 bytes written out to StandardOutputAndStandardError
10:13:51.585 Xcode[27399:424996] <IDETestOperationCoordinator: 0x7fec86f3a2d0> is flushing delegate queue, count: 1
10:13:51.592 Xcode[27399:424996] Launch session LaunchSessionClaim_0x7fec86ee5630 relinquised claim on simulator 8678C2A5-960D-4E64-A1CC-9F485D7A1DFC
10:13:51.592 Xcode[27399:424996] Launch session LaunchSessionClaim_0x7fec86ee5630 relinquised claim on simulator 8678C2A5-960D-4E64-A1CC-9F485D7A1DFC
10:13:51.840 Xcode[27399:424996] <IDETestOperationCoordinator: 0x7fec86f3a2d0> finished receiving data from <IDEConsoleAdaptor: 0x7fec86a9fe30 'target' stdin: (null) 0 stdout: (null) 0 stderr: (null) 0>
10:13:51.840 Xcode[27399:424996] <IDETestOperationCoordinator: 0x7fec86f3a2d0>: _considerFlushingDelegateBlockQueue - nothing to flush
10:13:53.785 Xcode[27399:424996] Test operation failure: Test session exited(45) without completing.
10:13:53.785 Xcode[27399:424996] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Test session exited(45) without completing." UserInfo={NSLocalizedDescription=Test session exited(45) without completing.}
Need to know the reason for this error.

Starting AudioKit results in AudioHAL_Client errors 50% of the time

I've been using AudioKit for over 8 months, but recently I've run into a weird issue.
When I start AudioKit, in (roughly) 50% of the cases the audio stops playing after a few seconds and I get a stream of lower-level AudioHAL_Client errors:
2019-03-14 17:17:15.567027+0100 TestApp[68164:1626512] [AudioHAL_Client] HALC_ProxyIOContext.cpp:1399:IOWorkLoop: HALC_ProxyIOContext::IOWorkLoop: failed to send the final message to the server, Error: 0x10000003
2019-03-14 17:17:16.104180+0100 TestApp[68164:1626365] [AudioHAL_Client] HALC_ShellPlugIn.cpp:817:HAL_HardwarePlugIn_ObjectHasProperty: HAL_HardwarePlugIn_ObjectHasProperty: no object
or:
2019-03-15 08:15:33.756244+0100 macOSDevelopment[47186:2925180] [AudioHAL_Client] HALC_ProxyIOContext.cpp:1399:IOWorkLoop: HALC_ProxyIOContext::IOWorkLoop: failed to send the final message to the server, Error: 0x10000003
2019-03-15 08:15:34.290366+0100 macOSDevelopment[47186:2925038] [AudioHAL_Client] HALC_ShellPlugIn.cpp:817:HAL_HardwarePlugIn_ObjectHasProperty: HAL_HardwarePlugIn_ObjectHasProperty: no object
2019-03-15 08:15:34.290431+0100 macOSDevelopment[47186:2925038] [AudioHAL_Client] HALC_ShellPlugIn.cpp:817:HAL_HardwarePlugIn_ObjectHasProperty: HAL_HardwarePlugIn_ObjectHasProperty: no object
It is not related to my specific app, because when I build the AudioKit macOS development app, the same happens. I've also tried it with a clean macOS project.
This is enough to trigger the bug:
AudioKit.output = AKMixer()
AudioKit.start()
Same happens when I connect an AKOscillator instead of AKMixer.
I've tried to debug this, but I cannot figure out what's going wrong.

android oreo/pie - paho mqtt Unable to start activity in background

I'm trying to solve paho mqtt running on android pie(9.0).
I'm running my mqtt connection in Service class (return START_STICKY) and connecting to UI with bind... All is working perfectly fine but WHAT IS NOT WORKING is
when app is killed, Service and mqtt connection stops. Mqtt
AlarmPingSender stop working.. Tried to test it on Nougat(7.0) and it's working perfectly fine.
Is there a solution to make mqtt paho library working on new version of Android?
LOGCAT:
2019-03-22 02:35:08.854 12651-12651/com.example.dominik.smarthome2 E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.dominik.smarthome2, PID: 12651
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dominik.smarthome2/com.example.dominik.smarthome2.MainActivity}: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.example.dominik.smarthome2/.MyService }: app is in background uid UidRecord{ee07604 u0a297 TPSL idle procs:1 proclist:12651, seq(0,0,0)}
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3108)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3251)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1948)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7045)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.example.dominik.smarthome2/.MyService }: app is in background uid UidRecord{ee07604 u0a297 TPSL idle procs:1 proclist:12651, seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1666)
at android.app.ContextImpl.startService(ContextImpl.java:1611)
at android.content.ContextWrapper.startService(ContextWrapper.java:677)
at com.example.dominik.smarthome2.MainActivity.onCreate(MainActivity.java:122)
at android.app.Activity.performCreate(Activity.java:7327)
at android.app.Activity.performCreate(Activity.java:7318)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3088)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3251) 
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) 
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) 
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1948) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loop(Looper.java:214) 
at android.app.ActivityThread.main(ActivityThread.java:7045) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964) 
Android 8.0 has introduced Background Execution Limits and thus you should use startForegroundService() instead of startService() to run a Foreground Service with visible notification:

Resources