chris2511 / xca

X Certificate and Key management
http://xca.hohnstaedt.de
Other
1.54k stars 204 forks source link

2.4.233 exits immediately on macos #449

Closed meermanr closed 1 year ago

meermanr commented 1 year ago

@chris2511 wrote:

You are very welcome to test those builds and report any issues

I tried both macos-5.15.2 and macos-6.5.1 from action Fixup for a548227a073: install translation files again. · chris2511/xca@8983e50 and found that they fix #309 (yay!) but that they don't open the GUI when launched.

When running from the terminal I see the following while the XCA icon briefly appears in the dock and then disappears as it exits:

meermanr@macos:/Applications/xca-beta-5.15.2.app/Contents/MacOS
@ uname -rm
22.6.0 arm64

meermanr@macos:/Applications/xca-beta-5.15.2.app/Contents/MacOS
@ file xca
xca: Mach-O 64-bit executable x86_64

meermanr@macos:/Applications/xca-beta-5.15.2.app/Contents/MacOS
@ ./xca --verbose
   001 Warning: QSqlDatabase: QPSQL driver not loaded
   001 Warning: QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7
   001 Warning: QSqlDatabase: QPSQL7 driver not loaded
   001 Warning: QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7
   001 Debug: NEW pki_base::count 1
   001 Debug: NEW pki_base::count 2
   001 Debug: NEW pki_base::count 3
   001 Debug: DEL pki_base::count 2
   001 Debug: DEL pki_base::count 1
   001 Debug: DEL pki_base::count 0
   001 Debug: pki_base::count 0

However, if I provide --database with a valid local file it launches fine:

/Applications/xca-beta-5.15.2.app/Contents/MacOS/xca --database certificates_xca.xdb

but outputs a bunch of warnings and a critical:

   001 Warning: QSqlDatabase: QPSQL driver not loaded
   001 Warning: QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7
   001 Warning: QSqlDatabase: QPSQL7 driver not loaded
   001 Warning: QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7
   203 Warning: Populating font family aliases took 77 ms. Replace uses of missing font family "Courier" with one that exists to avoid this cost.
   207 Critical: <QNSWindow: 0x7fd0748f3690; contentView=<QNSView: 0x7fd0748f3090; QCocoaWindow(0x6000037fd080, window=QWidgetWindow(0x60000248ea00, name="QLineEditClassWindow"))>> has active key-value observers (KVO)! These will stop working now that the window is recreated, and will result in exceptions when the observers are removed. Break in QCocoaWindow::recreateWindowIfNeeded to debug.

That said, the GUI seems to work "fine" as far as I can tell.

meermanr commented 1 year ago

BTW, what is the difference between the macos-5.15.2 and macos-6.5.1 builds?

graaff commented 1 year ago

I can second this behaviour on Linux: xca quits right away when started on the CLI, but works when given an existing database file.

amette commented 1 year ago

Same here on Gentoo Linux with 2.4.0.

chris2511 commented 1 year ago

BTW, what is the difference between the macos-5.15.2 and macos-6.5.1 builds?

They are the QT Versions used during compilation

chris2511 commented 1 year ago

With current builds like https://github.com/chris2511/xca/actions/runs/6212531946 i cannot reproduce the issue.

There is a notarized universal binary that you maybe want to test: https://www.hohnstaedt.de/downloads/xca-2.4.246-Darwin.dmg

chris2511 commented 1 year ago

XCA 2.5.0 also runs fine on my MAC. Reopen, if the issue still exists.

graaff commented 1 year ago

i can confirm that 2.5.0 on Linux now works as expected (shows the interface when started without arguments).