Author Topic: Dooble releases-Qt6  (Read 84148 times)

Remy

  • Hero Member
  • *****
  • Posts: 872
  • Karma: +14/-1
    • View Profile
Re: Dooble releases-Qt6
« Reply #180 on: March 15, 2025, 03:21:30 pm »
Hi!

Since OS2WORD changed its code, I found an issue I think is under FIREFOX and DOOBLE while this doesn't exist under FIREFOX windows
(or a missing code to correctly identify browser width size, environment dependant "CSS" ?)

My screen size is 1920x1200 like under windows.
When under windows, the display changes to adapts the resulting displaied content to the browser width size
- if small, one cols
- if large, all cols (like under previous OS2WORLD code)
Under OS/2, I can change the browser width from very small to its max size (1920) but it always display the site using one col !

This is true under FIREFOX as WELL DOOBLE 5 or 6       

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2494
  • Karma: +188/-0
    • View Profile

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5336
  • Karma: +126/-1
    • View Profile
Re: Dooble releases-Qt6
« Reply #182 on: March 16, 2025, 02:07:44 am »
Yes, it has been a problem for a while. Interestingly I notice the list of affected browsers includes otter-browser but not Dooble. Is otter-browser still that well used?
Just updated otter-browser, most commits are about porting to Qt6. CmakeLists.txt still only looks for Qt5

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5336
  • Karma: +126/-1
    • View Profile
Re: Dooble releases-Qt6
« Reply #183 on: March 16, 2025, 02:34:56 am »
The cloudflare thing seems to depend on cookies as well. I can load sites like Slashdot and Sourceforge fine in SeaMonkey, been loading them for years. I had Dooble fail earlier with Slashdot though today it loaded.
This site fails here with SeaMonkey and Dooble, though Dooble got further, https://steamdb.info/
Edit: slashdot fails when I try to login with the cloudflare crap.
« Last Edit: March 16, 2025, 02:38:33 am by Dave Yeo »

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5250
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Dooble releases-Qt6
« Reply #184 on: March 16, 2025, 05:06:33 pm »
Since OS2WORD changed its code, I found an issue I think is under FIREFOX and DOOBLE while this doesn't exist under FIREFOX windows
(or a missing code to correctly identify browser width size, environment dependant "CSS" ?)

Sorry Remy, as I explained before, I needed the update the Joomla script on OS2World because I was falling behind with the version and PHP forces to go further or get your server hacked.

The only behaviour that I can explain is:
- Dooble for Windows (narrow) - If the window is narrow it re-accommodate the size layout.
- Dooble for WIndows - if the window is stretch enough it looks as it should. FINE.
- Dooble for OS/2 - Qt5 - No matter how narrow or stretch is the window, the layout looks re-accomodated.
- Otter for Windows - No matter how narrow or stretch is the window, the layout looks re-accomodated.
- Otter for OS/2 - Qt5 - No matter how narrow or stretch is the window, the layout looks re-accomodated.

Just in case I will ask in the Otter forum about why the Windows version is not displaying OS2World fine.

Regards
« Last Edit: March 16, 2025, 06:30:18 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Remy

  • Hero Member
  • *****
  • Posts: 872
  • Karma: +14/-1
    • View Profile
Re: Dooble releases-Qt6
« Reply #185 on: March 17, 2025, 03:22:09 pm »
Since OS2WORD changed its code, I found an issue I think is under FIREFOX and DOOBLE while this doesn't exist under FIREFOX windows
(or a missing code to correctly identify browser width size, environment dependant "CSS" ?)

Sorry Remy, as I explained before, I needed the update the Joomla script on OS2World because I was falling behind with the version and PHP forces to go further or get your server hacked.

The only behaviour that I can explain is:
- Dooble for Windows (narrow) - If the window is narrow it re-accommodate the size layout.
- Dooble for WIndows - if the window is stretch enough it looks as it should. FINE.
- Dooble for OS/2 - Qt5 - No matter how narrow or stretch is the window, the layout looks re-accomodated.
- Otter for Windows - No matter how narrow or stretch is the window, the layout looks re-accomodated.
- Otter for OS/2 - Qt5 - No matter how narrow or stretch is the window, the layout looks re-accomodated.

Just in case I will ask in the Otter forum about why the Windows version is not displaying OS2World fine.

Regards

It wouls be interesting to check if the browser width is provided toi the code as it should.
You can create a small web page and display the browser window size

May be you can try :
https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#livesample_fullscreen=demo

It uses javascript.
Of course, css size can be tested too

Update: It seems that some CSS code aren't well handled
Some from: https://www.os2world.com/cms/media/templates/site/cassiopeia/css/template.min.css
You can find into it the @media tag for different browser screen size.
« Last Edit: March 17, 2025, 06:33:25 pm by Remy »

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5336
  • Karma: +126/-1
    • View Profile
Re: Dooble releases-Qt6
« Reply #186 on: April 06, 2025, 07:32:35 am »
I've uploaded ftp://dry@ftp.os2voice.org/tmp/dooble-2025-04-05-Qt6.zip it's sort of experimental, had to revert a change I made to avoid dooble_settings.db being written to the root of the drive that was active when dooble was launched. Something to watch for.
Fixes from upstream include fixing visited links on Qt6. See Help-->Release Notes.

David McKenna

  • Hero Member
  • *****
  • Posts: 875
  • Karma: +30/-0
    • View Profile
Re: Dooble releases-Qt6
« Reply #187 on: April 06, 2025, 03:52:43 pm »
 Thanks Dave - it's working well here, and I do get the dooble_settings.db in the root of the drive dooble is on..

Regards,

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5336
  • Karma: +126/-1
    • View Profile
Re: Dooble releases-Qt6
« Reply #188 on: April 06, 2025, 05:46:34 pm »
It's weird, I haven't had dooble_settings.db written to the root in a week or so. It seems to be the way things are initialized. Upstream changed the startup in main() which created this problem, so I reversed that patch. Now Dooble wouldn't start with this output,
Code: [Select]
QCoreApplication::arguments: Please instantiate the QApplication object first
QCoreApplication::arguments: Please instantiate the QApplication object first
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
qt.core.qobject.connect: QObject::connect(QGuiApplication, Unknown): invalid nullptr parameter

Which I fixed by undoing my reversed patch. Need to look more into the startup.
Edit: Same problem with both Qt6 and Qt5

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5336
  • Karma: +126/-1
    • View Profile
Re: Dooble releases-Qt6
« Reply #189 on: April 06, 2025, 06:21:32 pm »
There's another issue. Running "dooble 2>&1 | tee dooble.log" I see,
Code: [Select]
[7699:1:0406/090046.608000:ERROR:system_network_context_manager.cpp(299)] Cannot
 use V8 Proxy resolver in single process mode.
[7699:1:0406/090046.634000:ERROR:system_network_context_manager.cpp(299)] Cannot
 use V8 Proxy resolver in single process mode.
script_state.h
isolate_ is not broken
script_state2.h
script_state.h
isolate_ is not broken
...
Code: [Select]
Release of profile requested but WebEnginePage still not deleted. Expect troubles !
script_state.h
isolate_ is not broken
script_state2.h

With the script_state stuff repeated a lot, like a 7MB log after a couple of sites.
Going to multi-process mode does get rid of the 7699:1:0406/090046.608000:ERROR:
Looking at https://github.com/textbrowser/dooble/issues/249 someone else also has the Release of profile warning, also where he gets,
Quote
.org.chromium.Chromium.xxxxx in my ~/.dooble/WebEnginePersistentStorage folder
I get them in %TMP%

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5336
  • Karma: +126/-1
    • View Profile
Re: Dooble releases-Qt6
« Reply #190 on: April 06, 2025, 07:10:31 pm »
New release with fixes for the above, ftp://dry@ftp.os2voice.org/tmp/dooble-2025-04-06-Qt6.zip

David McKenna

  • Hero Member
  • *****
  • Posts: 875
  • Karma: +30/-0
    • View Profile
Re: Dooble releases-Qt6
« Reply #191 on: April 06, 2025, 07:43:25 pm »
Thanks again Dave! This also works well here - still get the dooble_settings.db in the root. As an experiment, I made a bunch of changes to my settings, closed dooble, then deleted the dooble_settings.db in the root. Opened dooble and all the settings changes I made were still there.  So it seems that dooble_settings.db file in the root is totally vestigial and is an extra copy.

Another thing I had forgotten about - it still need the dictionary file to be in the root too...

Regards,

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5336
  • Karma: +126/-1
    • View Profile
Re: Dooble releases-Qt6
« Reply #192 on: April 06, 2025, 08:15:32 pm »
Yea, I think the dooble_settings.db in root is a timing issue, created too early and in root then uses the one in %HOME%
Seems the dictionary environment variable has changed to QTWEBENGINE_DICTIONARIES_PATH. Has to be an absolute path and likely needs / as a directory separator. Mine is, QTWEBENGINE_DICTIONARIES_PATH=L:/qt6-6.2.x/bin/qtwebengine_dictionaries

David McKenna

  • Hero Member
  • *****
  • Posts: 875
  • Karma: +30/-0
    • View Profile
Re: Dooble releases-Qt6
« Reply #193 on: April 06, 2025, 08:51:07 pm »
 Thanks - didn't know about the environment variable. Added it and now don't need the file in root for dictionaries.

 I wonder why does Dooble write the settings file at all if it already exists at startup? it clearly reads it from %HOME%, but maybe some part of the code does not get the message it already exists and goes ahead and writes it?

Regards,

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5336
  • Karma: +126/-1
    • View Profile
Re: Dooble releases-Qt6
« Reply #194 on: April 06, 2025, 10:01:19 pm »
Seems to zero out the settings path right before creating the application and then figuring out the settings location and creating or loading the settings. I have a hard time following the logic