Ubuntu 22.04 - Jami crashes after upgrade. Missing device certificate file
Bug report form
Describe your environment
- OS: Ubuntu 22.04
- Jami version:
- ii jami 20230412.0~dfsg1-1 amd64 Secure and distributed voice, video and chat platform - desktop client
- ii jami-daemon 20230412.0~dfsg1-1 amd64 Secure and distributed voice, video and chat platform - daemon
- ii libqt-jami 6.2.3-2 amd64 Custom build of Qt framework used by the Jami Qt client.
- What build you are using: Ubuntu apt package
Steps to reproduce
Note: Better the scenario is, better we will be able to reproduce and debug.
- Can you reproduce the bug: at will, but because I can't use Jami anymore I'm going to find a work around soon and probably that I won't be able to reproduce.
- Steps:
- I had a Jami version from last year, 202209... if I remember correctly. I updated to 202301412. 2. Jami does not run because it can't access a file that is not present on disk and crashes.
- Actual result: Crash
- Expected result: Either run and notify the user about the missing file, or try to get or recreate the file by other means. The missing file seems to be a device certificate, so I think it could be obtained from another peer.
Additional information
$ jami --file jami_debug.log
Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Using Qt runtime version: 6.2.3
"notify server name: gnome-shell, vendor: GNOME, version: 42.5, spec: 1.2"
qt.webenginecontext:
GLImplementation: desktop
Surface Type: OpenGL
Surface Profile: CompatibilityProfile
Surface Version: 3.3
Using Default SG Backend: yes
Using Software Dynamic GL: no
Using Angle: no
Init Parameters:
* application-name Jami
* browser-subprocess-path /usr/lib/libqt-jami/libexec/QtWebEngineProcess
* create-default-gl-context
* disable-features DnsOverHttpsUpgrade,ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture
* disable-setuid-sandbox
* disable-speech-api
* disable-web-security
* enable-features NetworkServiceInProcess,TracingServiceInProcess
* enable-main-frame-before-activation
* enable-threaded-compositing
* file
* gpu-preferences UAAAAAAAAAAoAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA=
* in-process-gpu
* lang en-CA
* num-raster-threads 2
* single-process
* use-gl desktop
"Using locale: en_CA"
17:06:08.456 os_core_unix.c !pjlib 2.12.1 for POSIX initialized
Daemon is running
No migration required
terminate called after throwing an instance of 'std::runtime_error'
what(): Can't read file: /home/pierre/.local/share/jami/423fc35e007bd253/conversations/1bd85df9e8e86556...723756c909/devices/46032b09265ccb61376e089bc1aa1743c4779ec52623775a95add5466ba1c1e5.crt
Aborted (core dumped)
File does not exist
$ ls -al /home/pierre/.local/share/jami/423fc35e007bd253/conversations/1bd85df9e8e86556...723756c909/devices/
total 44
drwxr-xr-x 2 pierre pierre 4096 mai 5 03:44 .
drwxrwxr-x 6 pierre pierre 4096 mai 5 03:44 ..
-rw-r--r-- 1 pierre pierre 1830 mai 5 03:44 27d1cf739f3e9...55db5c9b407026d56216.crt
-rw-r--r-- 1 pierre pierre 1830 mai 5 03:44 2c709fae7bc65...6492d0efc53dc9b533fe.crt
-rw-r--r-- 1 pierre pierre 1830 mai 5 03:44 33f30d7099c08...01cd5c1853a9b3bd9354.crt
-rw-r--r-- 1 pierre pierre 1830 mai 5 03:44 8eaabb95f884d...99a89a7484945663ca2e.crt
-rw-r--r-- 1 pierre pierre 1830 mai 5 03:44 a5b9356bea91b...0f88475c485ec07ac599.crt
-rw-r--r-- 1 pierre pierre 1830 mai 5 03:44 b416d64e65486...809de95bfcdf628f24e9.crt
-rw-r--r-- 1 pierre pierre 1830 mai 5 03:44 da1e518d0aa94...9df40d8c03527711052d.crt
-rw-r--r-- 1 pierre pierre 1830 mai 5 03:44 ea5aa4e866c2e...0c2ddb179e0509070324.crt
-rw-r--r-- 1 pierre pierre 1830 mai 5 03:44 f142664ae8fbd...abb0b093df7518344917.crt