Linux Client Troubleshooting

From FHU Wiki
Jump to: navigation, search

Linux Client Troubleshooting[edit]

Client stops working after reboot[edit]

During build, cmake downloads files into /tmp/hifi/vcpkg. /tmp is usually wiped during reboot.

Solution: Set HIFI_VCPKG_BASE to a permanent location, such as $HOME/vcpkg

 

Downloading Qt from AWS / UNKNOWN LINUX VERSION!!![edit]

During build, vcpkg downloads a precompiled Qt. Binaries are only available for Ubuntu 16.04 and Ubuntu 18.04.

Solution: Build Qt from source. Then, hifi_vcpkg.py needs to be patched. See HiFi_Source_Building_Notes for patches.

 

Various Qt related crashes[edit]

Especially where missing .so files are mentioned, the likely problem is that the interface got built against a prepackaged Qt that doesn't work on the installed distribution.

Solution: Make sure there is no confusion regarding where the interface is getting its Qt from. Delete any pre-built binaries downloaded by vcpkg. vcpkg should be prevented from downloading a Qt if using your own, to ensure there's no way the interface can be built against the precompiled one. A suggested patch will be provided soon.

Settings/Audio contains many oddly named audio devices[edit]

The dialog contains things like "bluez_sink.00_16_94_2F_3C_D0.a2dp_sink" rather than anything human-readable.

Solution: Upon examination, there's nothing really wrong with the HiFi code. The viewer requests QAudioDeviceInfo::deviceName which returns these ugly names, and the API doesn't have anything prettier available.

To return something human-readable would require making a request to PulseAudio and getting the data from it. That would for instance produce something like "PXC 550" (model of the Bluetooth headset).