Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#69980 - [gtk3] [signal-desktop] 1.40.1-1 breaks after recent gtk3 with tracker3 enabled

Attached to Project: Community Packages
Opened by Alphonso Piotrowicz (Al.Piotrowicz) - Sunday, 14 March 2021, 00:19 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 14 March 2021, 23:50 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Jan Alexander Steffens (heftig)
Levente Polyak (anthraxx)
kpcyrd (kpcyrd)
Santiago Torres (sangy)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 27
Private No

Details

Description:
After recent gtk3-1:3.24.27-3, signal-desktop app breaks with:

{"name":"log","hostname":"rebro","pid":128854,"level":30,"msg":"app ready","time":"2021-03-13T21:00:42.852Z","v":0}
{"name":"log","hostname":"rebro","pid":128854,"level":30,"msg":"starting version 1.40.1","time":"2021-03-13T21:00:42.852Z","v":0}
{"name":"log","hostname":"rebro","pid":128854,"level":30,"msg":"media access status undefined undefined","time":"2021-03-13T21:00:42.852Z","v":0}
{"name":"log","hostname":"rebro","pid":128854,"level":30,"msg":"migrateDatabase: Migration without cipher change failed","time":"2021-03-13T21:00:42.878Z","v":0}
{"name":"log","hostname":"rebro","pid":128854,"level":30,"msg":"Database startup error: Error: SQLITE_NOTADB: file is not a database","time":"2021-03-13T21:00:42.881Z","v":0}
{"name":"log","hostname":"rebro","pid":128854,"level":30,"msg":"sql.initialize was unsuccessful; returning early","time":"2021-03-13T21:01:08.271Z","v":0}


Additional info:
* package version(s) signal-desktop 1.40.1-1 ; gtk3 1:3.24.27-3
* config and/or log files etc.
* link to upstream bug report, if any https://github.com/signalapp/Signal-Desktop/issues/4513

Steps to reproduce: Update to gtk3-1:3.24.27-3 and run signal-desktop app.
This task depends upon

Comment by Bruno Pagani (ArchangeGabriel) - Sunday, 14 March 2021, 17:55 GMT
It also breaks mailspring, and element encrypted search. So I guess this is electron-related?
Comment by kpcyrd (kpcyrd) - Sunday, 14 March 2021, 23:48 GMT
Filed this as an gtk issue: https://bugs.archlinux.org/task/69990
Comment by Bjoern Franke (bjo) - Monday, 15 March 2021, 14:21 GMT
Installing sqlcipher and running LD_PRELOAD=/usr/lib/libsqlcipher.so signal-desktop seem to work around this issue (Thanks to Andreas Bosch on arch-general). Maybe the dependency sqlcipher and a modified desktop-file with LD_PRELOAD could be added to the signal-desktop package? It seems the whole "gtk3/tracker breaks sqlcipher"-thing is a bit bigger.
Comment by Geert Hendrickx (ghen) - Monday, 15 March 2021, 14:51 GMT
Why is Signal-desktop using a statically linked sqlcipher library in the first place?
The package is already patching away a statically linked openssl that caused issues.
Comment by Jan Alexander Steffens (heftig) - Monday, 15 March 2021, 15:17 GMT
The library in question is actually a dynamic library located at

/usr/lib/signal-desktop/resources/app.asar.unpacked/node_modules/@journeyapps/sqlcipher/lib/binding/napi-v6-linux-x64/node_sqlite3.node

The use of node-pre-gyp suggests this might be a precompiled library, but on inspection it refers to GCC 10.2.0 and GLibC 2.33 so it's probably compiled by us.
Comment by Hans Mueller (Skingrende) - Wednesday, 17 March 2021, 08:46 GMT
Downgrading to gtk3-1:3.24.27-3 worked for me as a short-term workaround. Signal starts without data loss.

Issue of the signal-desktop project: https://github.com/signalapp/Signal-Desktop/issues/4513
Comment by Cedric Wehrum (Scindix) - Friday, 19 March 2021, 02:18 GMT
Unfortunately Bjoern Franke's method didn't work for me.
But downgrading to gtk3-1:3.24.27-3 as suggested by Hans Mueller did the trick.
Comment by Bjoern Franke (bjo) - Friday, 19 March 2021, 10:39 GMT
It seems that in your case your database is unencrypted now, as kpcyrd also pointed out here: https://github.com/signalapp/Signal-Desktop/issues/4513#issuecomment-801147849
Comment by Maximilian Böhm (holalu) - Saturday, 03 April 2021, 11:30 GMT
Is this really not fixed yet? I don’t have this problem anymore on my system without downgrading gtk3.
Comment by Jan Alexander Steffens (heftig) - Saturday, 03 April 2021, 13:18 GMT
https://bugs.archlinux.org/task/69990 was "fixed" by reverting the Tracker 3 support, but that is only temporary. This needs to be fixed in Signal or it's just going to break again when Tracker 3 support is re-enabled.
Comment by kpcyrd (kpcyrd) - Saturday, 03 April 2021, 14:52 GMT

Loading...