dooble icon indicating copy to clipboard operation
dooble copied to clipboard

Crash when opening popups on Qt 6. Site-specific.

Open Eloitor opened this issue 2 years ago • 10 comments

Hi! I tried the last release 2023.12.25.

I tried to use https://typst.app (a typesetting software) with dooble. In the typst web app there is a feature that allows to open a popup window with the pdf preview. You can try it here without an account: https://typst.app/project/rq1TfsdCFEVxLol3kUC_Ii You have to click the "window" button placed on the right of "+".

When dooble attempts to open the popup it crashes.

I'm on void linux 86_64-glibc.

Eloitor avatar Dec 24 '23 22:12 Eloitor

https://github.com/textbrowser/dooble/assets/10701156/e4dfbe57-24d4-49a4-93d9-b5c5f421aa8e

textbrowser avatar Dec 25 '23 01:12 textbrowser

Are you on Qt 6?

textbrowser avatar Dec 25 '23 01:12 textbrowser

"qt.core.qobject.connect: QObject::connect(QObject, Unknown): invalid nullptr parameter"

https://github.com/textbrowser/dooble/blob/master/Documentation/TO-DO

"QSqlDatabase complains (connect() and nullptr) if QApplication is not present in Qt 6."

textbrowser avatar Dec 25 '23 01:12 textbrowser

The invalid-parameter warning exists because a QApplication object does not exist before QSqlDatabase is created. This is a Qt 6-ism.

textbrowser avatar Dec 25 '23 01:12 textbrowser

A yup. Your problem is a Qt 6 problem. :) One a warning and the second a problem. Is important to state that you're on Qt 6. Good for you that the people of Dooble are cleverer than the average chipmunk.

textbrowser avatar Dec 25 '23 01:12 textbrowser

GDB is, as usual, not helpful. See you soon.

textbrowser avatar Dec 25 '23 01:12 textbrowser

The signature of createWindow() changed from Qt 5 and Qt 6. The new method returns a page while the older method returns a view. Yuck. Big time headache.

textbrowser avatar Dec 25 '23 02:12 textbrowser

Never mind about the previous comment. There are two implementations. :) One for a page and another for a view.

textbrowser avatar Dec 25 '23 02:12 textbrowser

Yes, I'm on Qt 6.

Thank you!

Eloitor avatar Dec 26 '23 09:12 Eloitor

This is something with this (typst) site.

https://www.w3docs.com/tools/code-editor/1493

Functions correctly in Qt 6.5.3.

textbrowser avatar May 16 '24 02:05 textbrowser

Anyone try this with Qt 6.7? 6.8?

textbrowser avatar Jul 26 '24 14:07 textbrowser

dooble

textbrowser avatar Jul 31 '24 14:07 textbrowser

Working with Qt 6.7.0.

textbrowser avatar Jul 31 '24 14:07 textbrowser