Homescreen crashing when unable to find Master volume control

Description

At the moment, with or without pipewire started, the Homescreen application crashes with:

Jun 12 23:15:43 intel-corei7-64 afbd-agl-service-audiomixer@0.1-06070d7[627]: NOTICE: [REQ/API audiomixer] No mixer controls were exposed in PipeWire after 3 seconds [/ws/scottm/dev/agl/agl-repo/build-i7/tmp/w>
Jun 12 23:15:43 intel-corei7-64 afbd-homescreen@0.1[583]: WebSocket Text Received: "[4,\"0\",{\"jtype\":\"afb-reply\",\"request\":{\"status\":\"failed\",\"info\":\"Could not find control\",\"uuid\":\"0f0a38dc->
Jun 12 23:15:43 intel-corei7-64 afbd-homescreen@0.1[583]: WebSocket Text Sent: "[2,\"1\",\"audiomixer/subscribe\",{\"event\":\"volume_changed\"}]"
Jun 12 23:15:43 intel-corei7-64 afbd-homescreen@0.1[583]: WebSocket Text Received: "[3,\"1\",{\"jtype\":\"afb-reply\",\"request\":{\"status\":\"success\",\"info\":\"Subscribed\"}}]"
Jun 12 23:15:44 intel-corei7-64 afbd-homescreen@0.1[583]: terminate called after throwing an instance of 'std::bad_function_call'
Jun 12 23:15:44 intel-corei7-64 afbd-homescreen@0.1[583]: what(): bad_function_call
Jun 12 23:15:44 intel-corei7-64 audit[603]: ANOM_ABEND auid=4294967295 uid=0 gid=0 ses=4294967295 subj=User::App::homescreen pid=603 comm="HomeScreen" exe="/var/local/lib/afm/applications/homescreen/0.1/bin/Hom>
Jun 12 23:15:44 intel-corei7-64 login[394]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Jun 12 23:15:44 intel-corei7-64 kernel: audit: type=1701 audit(1560381344.075:5): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=User::App::homescreen pid=603 comm="HomeScreen" exe="/var/local/lib/afm/applicat>

It probably should be handling the control not being found gracefully as opposed to crashing...

Environment

None

Activity

Walt Miner 
July 9, 2019 at 3:27 PM

Close for HH RC3

George Kiagiadakis 
June 13, 2019 at 7:41 AM

Mixer controls are under development, but this definitely shouldn't crash.

It looks as if QAfbWebsocketClient does not like it when there is no callback given on a call to an API ? The relevant piece of code is basically:

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Contract ID

Hardware Platform(s) Affected

Intel Upsquare

Components

Affects versions

Priority

Created June 12, 2019 at 11:25 PM
Updated September 19, 2019 at 12:06 PM
Resolved June 20, 2019 at 8:47 AM