openDsh / dash

Join us on Slack! https://join.slack.com/t/opendsh/shared_invite/zt-la398uly-a6eMH5ttEQhbtE6asVKx4Q
GNU General Public License v3.0
254 stars 80 forks source link

White Screen #152

Open danbulant opened 9 months ago

danbulant commented 9 months ago

Issue

Yet another white screen issue :)

Hardware

Device Connection Method Screen Mobile Device Android Auto Version
Raspberry Pi 4 8GB USB Cable Waveshare touchscreen 10.1' Xiaomi redmi note 10 pro 10.9.634644 (the app) ; 1.7 (based on logs from dash)

Installation Method: Install.sh

Description of problem:

White screen, no errors in console. Audio playback via bluetooth works, phone detects it correctly, in console, I can see that it connected and started receiving data correctly, but no output is shown.

Expected Result:

Working android auto screen

Problem-relevant steps to reproduce:

  1. Fix issues regarding new rpi os version (flashed latest rpios image, today) based on #127 until it compiles
  2. Change video codecs as needed (tried v4l2 (the default) and openh264dec (based on the issue, I added it myself to the code, hopefully correctly))

Additional info:

I tried changing the codecs as well as their order

I see "Selecting the openh264dec h264 decoder", so maybe that worked? I have no errors in console, the only errors I got was no audio device before I connected something to the jack, but that fixed all errors in console. And audio playback via bluetooth works. Sometimes when I disconnect and reconnect I get aasdk error code 30 or 10, but that seems to be just a simple "disconnected" thing.

I tried disabling RtAudio, which also shows a white screen but also stops the stream (well, it seems the whole AA app quits) after few seconds.

I'm new to low level stuff, android dev and got the raspberry pi just a few days ago, so I don't know much about how to debug it well.

Logs

full logs, incl disconnect
[2023-12-26 20:58:12.207222] [0x0000007fac398500] [info]    [Dash] loaded config: /home/dan/.config/openDsh/dash.conf
[2023-12-26 20:58:12.775804] [0x0000007fac398500] [info]    [Dash] [Bluetooth] Init
[2023-12-26 20:58:12.936793] [0x0000007fac398500] [info]    [OpenAuto] [GSTVideoOutput] Selecting the openh264dec h264 decoder
[2023-12-26 20:58:12.975235] [0x0000007fac398500] [info]    [OpenAuto] [AndroidBluetoothServer] listening.
[2023-12-26 20:58:12.987087] [0x0000007fac398500] [info]    [OpenAuto] [btservice] Listening for connections, address: D8:3A:DD:B3:E2:4D, port: 22
[2023-12-26 20:58:12.989002] [0x0000007fac398500] [info]    [OpenAuto] [btservice] Service registered, port: 22
[2023-12-26 20:58:12.989058] [0x0000007fac398500] [info]    [OpenAuto] SERVICE FACTORY INITED
[2023-12-26 20:58:13.009385] [0x0000007fac398500] [info]    [OpenAuto] [App] Waiting for USB device...
[2023-12-26 20:58:13.009598] [0x0000007fac398500] [info]    [OpenAuto] [App] Waiting for Wireless device...
[2023-12-26 20:58:13.117890] [0x0000007fac398500] [info]    [Dash] [SocketCANBus] 'socketcan' Available
[2023-12-26 20:58:13.120621] [0x0000007fac398500] [info]    [Dash] [SocketCANBus] Connecting CAN interface disabled
[2023-12-26 20:58:13.120890] [0x0000007fac398500] [info]    [Dash] [Gauges] Registered frame handler for id 2024
[2023-12-26 20:58:13.121249] [0x0000007fac398500] [info]    [Dash] [Gauges] Registered frame handler for id 2024
[2023-12-26 20:58:13.121533] [0x0000007fac398500] [info]    [Dash] [Gauges] Registered frame handler for id 2024
[2023-12-26 20:58:13.121815] [0x0000007fac398500] [info]    [Dash] [Gauges] Registered frame handler for id 2024
[2023-12-26 20:58:13.321195] [0x0000007fac398500] [info]    [OpenAuto] [GSTVideoOutput] Got resize request to 1228x686
[2023-12-26 20:58:13.321461] [0x0000007fac398500] [info]    [OpenAuto] [GSTVideoOutput] Android Auto is 800x480, calculated margins of: 0x16.5472
[2023-12-26 20:58:13.519820] [0x0000007fac398500] [info]    [OpenAuto] [GSTVideoOutput] Got resize request to 1228x678
[2023-12-26 20:58:13.520035] [0x0000007fac398500] [info]    [OpenAuto] [GSTVideoOutput] Android Auto is 800x480, calculated margins of: 0x19.1531
[2023-12-26 20:58:13.626772] [0x0000007fac398500] [info]    [Dash] [Bluetooth] Init complete!
[2023-12-26 20:58:13.627034] [0x0000007fac398500] [info]    [Dash] [Bluetooth] Has Adapter: true, Has Media Device: true
[2023-12-26 20:58:14.042349] [0x0000007f6a7cef80] [info]    [OpenAuto] [App] Devices enumeration result: false
[2023-12-26 20:58:25.335401] [0x0000007f6afdef80] [info]    [OpenAuto] [App] USB Device connected.
[2023-12-26 20:58:25.348944] [0x0000007fac398500] [debug]   [OpenAuto] [AudioInput] create.
[2023-12-26 20:58:25.368951] [0x0000007f6afdef80] [info]    [OpenAuto] [InputService] Created
[2023-12-26 20:58:25.369146] [0x0000007f6afdef80] [info]    [OpenAuto] [AndroidAutoEntity] start.
[2023-12-26 20:58:25.369174] [0x0000007f6afdef80] [info]    [OpenAuto] [AudioInputService] start.
[2023-12-26 20:58:25.369494] [0x0000007f6afdef80] [info]    [OpenAuto] [AudioService] start, channel: MEDIA_AUDIO
[2023-12-26 20:58:25.369528] [0x0000007f6afdef80] [info]    [OpenAuto] [AudioService] start, channel: SPEECH_AUDIO
[2023-12-26 20:58:25.369547] [0x0000007f6afdef80] [info]    [OpenAuto] [AudioService] start, channel: SYSTEM_AUDIO
[2023-12-26 20:58:25.369569] [0x0000007f6afdef80] [info]    [OpenAuto] [SensorService] start.
[2023-12-26 20:58:25.369595] [0x0000007f6afdef80] [info]    [OpenAuto] [VideoService] start.
[2023-12-26 20:58:25.369659] [0x0000007f6afdef80] [info]    [OpenAuto] [BluetoothService] start.
[2023-12-26 20:58:25.369734] [0x0000007f6afdef80] [info]    [AaSdk] [BluetoothServiceChannel] receive 
[2023-12-26 20:58:25.369766] [0x0000007f6afdef80] [info]    [OpenAuto] [NavigationStatusService] start.
[2023-12-26 20:58:25.369782] [0x0000007f6afdef80] [info]    [AaSdk] [NavigationStatusServiceChannel] receive 
[2023-12-26 20:58:25.369802] [0x0000007f6afdef80] [info]    [OpenAuto] [MediaStatusService] start.
[2023-12-26 20:58:25.369828] [0x0000007f6afdef80] [info]    [OpenAuto] [InputService] start.
[2023-12-26 20:58:26.061433] [0x0000007f6afdef80] [info]    [OpenAuto] [AndroidAutoEntity] version response, version: 1.7, status: 0
[2023-12-26 20:58:26.061473] [0x0000007f6afdef80] [info]    [OpenAuto] [AndroidAutoEntity] Begin handshake.
[2023-12-26 20:58:26.080887] [0x0000007f6b7eef80] [info]    [OpenAuto] [AndroidAutoEntity] Handshake, size: 2274
[2023-12-26 20:58:26.091273] [0x0000007f6b7eef80] [info]    [OpenAuto] [AndroidAutoEntity] continue handshake.
[2023-12-26 20:58:26.099156] [0x0000007f6afdef80] [info]    [OpenAuto] [AndroidAutoEntity] Handshake, size: 51
[2023-12-26 20:58:26.100106] [0x0000007f6afdef80] [info]    [OpenAuto] [AndroidAutoEntity] Auth completed.
[2023-12-26 20:58:26.109261] [0x0000007f6b7eef80] [info]    [OpenAuto] [AndroidAutoEntity] Discovery request, device name: Android, brand: Xiaomi M2101K6G
[2023-12-26 20:58:26.109460] [0x0000007f6b7eef80] [info]    [OpenAuto] [AudioInputService] fill features.
[2023-12-26 20:58:26.109597] [0x0000007f6b7eef80] [info]    [OpenAuto] [AudioService] fill features, channel: MEDIA_AUDIO
[2023-12-26 20:58:26.109684] [0x0000007f6b7eef80] [info]    [OpenAuto] [AudioService] fill features, channel: SPEECH_AUDIO
[2023-12-26 20:58:26.109753] [0x0000007f6b7eef80] [info]    [OpenAuto] [AudioService] fill features, channel: SYSTEM_AUDIO
[2023-12-26 20:58:26.109838] [0x0000007f6b7eef80] [info]    [OpenAuto] [SensorService] fill features.
[2023-12-26 20:58:26.109958] [0x0000007f6b7eef80] [info]    [OpenAuto] [VideoService] fill features.
[2023-12-26 20:58:26.110062] [0x0000007f6b7eef80] [info]    [OpenAuto] [BluetoothService] fill features
[2023-12-26 20:58:26.110145] [0x0000007f6b7eef80] [info]    [OpenAuto] [NavigationStatusService] fill features
[2023-12-26 20:58:26.110247] [0x0000007f6b7eef80] [info]    [OpenAuto] [MediaStatusService] fill features
[2023-12-26 20:58:26.110340] [0x0000007f6b7eef80] [info]    [OpenAuto] [InputService] fill features.
[2023-12-26 20:58:26.285936] [0x0000007f6b7eef80] [info]    [OpenAuto] [AndroidAutoEntity] requested audio focus, type: 4
[2023-12-26 20:58:26.286118] [0x0000007f6b7eef80] [info]    [OpenAuto] [AndroidAutoEntity] audio focus state: 3
[2023-12-26 20:58:26.325252] [0x0000007f6afdef80] [info]    [OpenAuto] [AudioInputService] open request, priority: 0
[2023-12-26 20:58:26.325292] [0x0000007f6afdef80] [info]    [OpenAuto] [AudioInputService] open status: 0
[2023-12-26 20:58:26.340077] [0x0000007f6a7cef80] [info]    [OpenAuto] [AudioService] open request, channel: MEDIA_AUDIO, priority: 0
[2023-12-26 20:58:26.340120] [0x0000007f6a7cef80] [debug]   [OpenAuto] [AudioService] channel: MEDIA_AUDIO audio output sample rate: 48000, sample size: 16, channel count: 2
[2023-12-26 20:58:26.341263] [0x0000007f6b7eef80] [info]    [OpenAuto] [AudioService] open request, channel: SPEECH_AUDIO, priority: 0
[2023-12-26 20:58:26.341420] [0x0000007f6b7eef80] [debug]   [OpenAuto] [AudioService] channel: SPEECH_AUDIO audio output sample rate: 16000, sample size: 16, channel count: 1
[2023-12-26 20:58:26.341811] [0x0000007f6bffef80] [info]    [OpenAuto] [AudioService] open request, channel: SYSTEM_AUDIO, priority: 0
[2023-12-26 20:58:26.341841] [0x0000007f6bffef80] [debug]   [OpenAuto] [AudioService] channel: SYSTEM_AUDIO audio output sample rate: 16000, sample size: 16, channel count: 1
[2023-12-26 20:58:26.342531] [0x0000007f6afdef80] [info]    [OpenAuto] [SensorService] open request, priority: 0
[2023-12-26 20:58:26.342563] [0x0000007f6afdef80] [info]    [OpenAuto] [SensorService] open status: 0
[2023-12-26 20:58:26.353929] [0x0000007f6afdef80] [info]    [AaSdk] [NavigationStatusServiceChannel] message handler 
[2023-12-26 20:58:26.353993] [0x0000007f6afdef80] [info]    [AaSdk] [NavigationStatusServiceChannel] channel open request 
[2023-12-26 20:58:26.354020] [0x0000007f6afdef80] [info]    [OpenAuto] [NavigationStatusService] open request, priority: 0
[2023-12-26 20:58:26.354032] [0x0000007f6afdef80] [info]    [OpenAuto] [NavigationStatusService] open status: 0
[2023-12-26 20:58:26.354049] [0x0000007f6afdef80] [info]    [AaSdk] [NavigationStatusServiceChannel] channel open response 
[2023-12-26 20:58:26.354230] [0x0000007f6afdef80] [info]    [AaSdk] [NavigationStatusServiceChannel] receive 
[2023-12-26 20:58:26.354508] [0x0000007f6afdef80] [info]    [AaSdk] [MediaStatusServiceChannel] channel open request 
[2023-12-26 20:58:26.354551] [0x0000007f6afdef80] [info]    [OpenAuto] [MediaStatusService] open request, priority: 0
[2023-12-26 20:58:26.354568] [0x0000007f6afdef80] [info]    [OpenAuto] [MediaStatusService] open status: 0
[2023-12-26 20:58:26.354583] [0x0000007f6afdef80] [info]    [AaSdk] [MediaStatusServiceChannel] channel open response 
[2023-12-26 20:58:26.354986] [0x0000007f6afdef80] [info]    [OpenAuto] [InputService] open request, priority: 0
[2023-12-26 20:58:26.355012] [0x0000007f6afdef80] [info]    [OpenAuto] [InputService] open status: 0
[2023-12-26 20:58:26.355187] [0x0000007f6afdef80] [info]    [OpenAuto] [VideoService] open request, priority: 0
[2023-12-26 20:58:26.367170] [0x0000007f6afdef80] [info]    [OpenAuto] [VideoService] open status: 0
[2023-12-26 20:58:26.367898] [0x0000007f6afdef80] [info]    [OpenAuto] [SensorService] sensor start request, type: 13
[2023-12-26 20:58:26.371966] [0x0000007f6afdef80] [info]    [OpenAuto] [InputService] binding request, scan codes count: 0
[2023-12-26 20:58:26.372154] [0x0000007f6afdef80] [info]    [OpenAuto] [InputDevice] start.
[2023-12-26 20:58:26.372232] [0x0000007f6afdef80] [info]    [OpenAuto] [InputService] binding request, status: 0
[2023-12-26 20:58:26.375278] [0x0000007f6afdef80] [info]    [OpenAuto] [SensorService] sensor start request, type: 10
[2023-12-26 20:58:26.375977] [0x0000007f6afdef80] [info]    [OpenAuto] [VideoService] setup request, config index: 3
[2023-12-26 20:58:26.376017] [0x0000007f6afdef80] [info]    [OpenAuto] [GSTVideoOutput] init
[2023-12-26 20:58:26.376091] [0x0000007f6afdef80] [info]    [OpenAuto] [VideoService] setup status: 2
[2023-12-26 20:58:26.383818] [0x0000007f6afdef80] [info]    [OpenAuto] [VideoService] video focus indication.
[2023-12-26 20:58:26.396171] [0x0000007f6afdef80] [info]    [OpenAuto] [VideoService] start indication, session: 0
[2023-12-26 20:58:26.415136] [0x0000007fac398500] [info]    [OpenAuto] [GSTVideoOutput] Resizing to video container
[2023-12-26 20:58:26.459488] [0x0000007f6b7eef80] [info]    [OpenAuto] [AudioService] open status: 0, channel: SPEECH_AUDIO
[2023-12-26 20:58:26.467012] [0x0000007f6b7eef80] [info]    [OpenAuto] [AudioService] setup request, channel: SPEECH_AUDIO, config index: 1
[2023-12-26 20:58:26.467066] [0x0000007f6b7eef80] [info]    [OpenAuto] [AudioService] setup status: 2, channel: SPEECH_AUDIO
[2023-12-26 20:58:36.606920] [0x0000007fac398500] [info]    [OpenAuto] [GSTVideoOutput] Dumped dot debug info

----- DISCONNECT ------


[2023-12-26 20:58:41.068891] [0x0000007f6afdef80] [error]   [OpenAuto] [AndroidAutoEntity] channel error: AaSdk error code: 10, native code: 1
[2023-12-26 20:58:41.068974] [0x0000007f6afdef80] [info]    [OpenAuto] [App] quit.
[2023-12-26 20:58:41.069003] [0x0000007f6afdef80] [info]    [OpenAuto] [AndroidAutoEntity] stop.
[2023-12-26 20:58:41.069321] [0x0000007f6b7eef80] [error]   [OpenAuto] [AudioService] channel error: AaSdk error code: 10, native code: 1, channel: SPEECH_AUDIO
[2023-12-26 20:58:41.069399] [0x0000007f6b7eef80] [error]   [OpenAuto] [VideoService] channel error: AaSdk error code: 10, native code: 1
[2023-12-26 20:58:41.069431] [0x0000007f6b7eef80] [error]   [OpenAuto] [SensorService] channel error: AaSdk error code: 10, native code: 1
[2023-12-26 20:58:41.069455] [0x0000007f6afdef80] [info]    [OpenAuto] [App] Waiting for USB device...
[2023-12-26 20:58:41.069506] [0x0000007f6afdef80] [info]    [OpenAuto] [App] Waiting for Wireless device...
[2023-12-26 20:58:41.069553] [0x0000007f6afdef80] [error]   [OpenAuto] [MediaStatusService] channel error: AaSdk error code: 10, native code: 1
[2023-12-26 20:58:41.069580] [0x0000007f6afdef80] [error]   [OpenAuto] [NavigationStatusService] channel error: AaSdk error code: 10, native code: 1
[2023-12-26 20:58:41.069607] [0x0000007f6afdef80] [error]   [OpenAuto] [AudioInputService] channel error: AaSdk error code: 10, native code: 1
[2023-12-26 20:58:41.069635] [0x0000007f6afdef80] [error]   [OpenAuto] [BluetoothService] channel error: AaSdk error code: 10, native code: 1
[2023-12-26 20:58:41.069703] [0x0000007f6afdef80] [info]    [OpenAuto] [AudioService] stop, channel: SPEECH_AUDIO
[2023-12-26 20:58:41.070083] [0x0000007f6b7eef80] [error]   [OpenAuto] [InputService] channel error: AaSdk error code: 10, native code: 1
[2023-12-26 20:58:41.070149] [0x0000007f6b7eef80] [info]    [OpenAuto] [VideoService] stop.
[2023-12-26 20:58:41.070228] [0x0000007f6b7eef80] [info]    [OpenAuto] [SensorService] stop.
[2023-12-26 20:58:41.070263] [0x0000007f6b7eef80] [info]    [OpenAuto] [MediaStatusService] stop.
[2023-12-26 20:58:41.070287] [0x0000007f6b7eef80] [info]    [OpenAuto] [NavigationStatusService] stop.
[2023-12-26 20:58:41.070310] [0x0000007f6b7eef80] [info]    [OpenAuto] [AudioInputService] stop.
[2023-12-26 20:58:41.070352] [0x0000007f6b7eef80] [info]    [OpenAuto] [BluetoothService] stop.
[2023-12-26 20:58:41.070388] [0x0000007f6b7eef80] [debug]   [OpenAuto] [AndroidAutoEntity] destroy.
[2023-12-26 20:58:41.070476] [0x0000007f6b7eef80] [info]    [OpenAuto] [InputService] stop.
[2023-12-26 20:58:41.070524] [0x0000007f6b7eef80] [info]    [OpenAuto] [InputDevice] stop.
[2023-12-26 20:58:41.072129] [0x0000007fac398500] [info]    [OpenAuto] [GSTVideoOutput] stop.
rsjudka commented 7 months ago

man we struggle so much with this :(

this is the first time I've seen something mentioning audio still working.. so already getting some good info from this!

you didn't happen to try these steps? hah https://github.com/openDsh/dash/issues/151#issuecomment-1826944544

ItsJustAGitHubMichealWhosGonnaSeeIt5Ppl commented 6 months ago

Apologies for the necro, but I am pretty sure I had audio with a white screen until I disabled RTAudio. Not 100% positive, but I seem to remember being able to hear my music.

legouju commented 3 weeks ago

Apologies for the necro too lol, but can confirm a similar behavior that audio worked for a bit after RTAudio was disabled to fix the white screen bug.

I believe restarting the system may have borked audio after that, will try https://github.com/openDsh/dash/issues/151#issuecomment-1826944544 and keep yall updated.

Device Connection Method Screen Mobile Device Android Auto Version
Nextbook Ares 8 (Intel Atom® Z3735G) 1GB Mirco USB to Type A OTG and Type A to USB C Cable Built-in 8" IPS Screen Samsung Galaxy S20 12.5.643034-release (app)