Author Topic: otter-browser, Qt5 build  (Read 3073 times)

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5029
  • Karma: +113/-1
    • View Profile
otter-browser, Qt5 build
« on: September 15, 2024, 04:37:47 am »
Ok, up till now when I've built Otter, it crashes on startup. Andy reported success with Dooble and not running acpi-daemon. Testing, the otter browser starts up and runs fairly well without acpi-daemon running. It is crashy, I tried this post in Otter and probably uploading the file crashed the browser.
Anyways, for testing purposes, here is today's build of the Otter browser from the main repository, no OS/2 patches yet, it runs surprisingly well considering. It is using the same webengine as Dooble-Qt5 so some pages will not display correctly.
Edit: fix the markup
« Last Edit: September 15, 2024, 06:03:23 am by Dave Yeo »

Mike Kölling

  • Full Member
  • ***
  • Posts: 136
  • Karma: +7/-0
    • View Profile
Re: otter-browser, Qt5 build
« Reply #1 on: September 15, 2024, 02:54:39 pm »
Hi Dave,

looks good for the first tests. I need to use a Win-Version of Otter to import booksmarks (as html) from my old Firefox, otherwise no issues by now.
Will try to get it working also in German languge, based on the version I installed in W7 running in my VBox/2, and let you know.

I'd like to express how much I appreciate your ongoing efforts to help OS/2 still beeing usable in 2024.

Greetings from Potsdam / Germany,
Mike

Amendment: I just copied the locale folder from the Win-Version into the folder I put your executable and now Otter starts in German language  :).
« Last Edit: September 15, 2024, 03:12:18 pm by Mike Kölling »

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4981
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: otter-browser, Qt5 build
« Reply #2 on: September 15, 2024, 04:14:57 pm »
Hello Dave.

It is awesome. I'm trying it out lightly first. I will test it further.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5029
  • Karma: +113/-1
    • View Profile
Re: otter-browser, Qt5 build
« Reply #3 on: September 15, 2024, 08:34:15 pm »
I should mention that running without acpidaemon doing power management is highly not recommended by David A. This computer's CPU was idling with 64C temperature and the danger is overheating the CPU.
I ended up changing \mptn\etc\acpid.cfg to PreferredMode=Power which on this box also allows Otter to run. It seems that using Power should not help as most computers don't support it and the daemon will fall back to None.
Note that the daemon has to be restarted to pick up changes to the PreferredMode, so rather kill it and run it detached again or reboot.

David McKenna

  • Hero Member
  • *****
  • Posts: 809
  • Karma: +25/-0
    • View Profile
Re: otter-browser, Qt5 build
« Reply #4 on: September 15, 2024, 09:21:10 pm »
Thanks Dave!

  This QT5 version does work and render pages (with ACPIDAEMON running on AOS in a virtual machine), but also crashes often on heavy javascript pages. I'm typing this in Otter now. I see a lot of '[warn] poll: socket operation on non-socket' messages in the console too.

Regards,

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5029
  • Karma: +113/-1
    • View Profile
Re: otter-browser, Qt5 build
« Reply #5 on: September 15, 2024, 10:08:46 pm »
Hi David, interesting it runs fine for you. Seems to be a timing issue for starting up. I have seen the socket messages but not always. I also see messages about Unimplemented code and just now Pixmap being null,
Code: [Select]
Unimplemented code.
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap

Grepping for Unimplemented in Otters source came up blank so perhaps originating in the webengine.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5029
  • Karma: +113/-1
    • View Profile
Re: otter-browser, Qt5 build
« Reply #6 on: September 15, 2024, 10:36:51 pm »
Here's the contents of the icons directory plus an attempt at converting the Win icon to an OS/2 icon. Doesn't seem to display here.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2254
  • Karma: +173/-0
    • View Profile
Re: otter-browser, Qt5 build
« Reply #7 on: September 15, 2024, 11:13:54 pm »
Hi David, interesting it runs fine for you. Seems to be a timing issue for starting up. I have seen the socket messages but not always. I also see messages about Unimplemented code and just now Pixmap being null,
Code: [Select]
Unimplemented code.
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap

Grepping for Unimplemented in Otters source came up blank so perhaps originating in the webengine.

Looks like it's from here: https://github.com/bitwiseworks/qtwebengine-chromium-os2/blob/113f13d3f1bf0ec996bd626e05324a0a17d39490/chromium/v8/src/base/logging.h#L50 but not particularly helpful as that's just a definition, and there are a number of  places that UNIMPLEMENTED(); can be called from.

Roderick Klein

  • Hero Member
  • *****
  • Posts: 693
  • Karma: +14/-0
    • View Profile
Re: otter-browser, Qt5 build
« Reply #8 on: September 16, 2024, 01:30:27 pm »
One warning. The reason the Otter browser was never released is because it does not run in single process mode with QT. This can cause crashes of the browser!

Roderick

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4981
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: otter-browser, Qt5 build
« Reply #9 on: September 16, 2024, 02:32:11 pm »
Hello

I'm running Otter on a ArcaOS 5.1 VM guest. I haven't touched anything related to ACPI.

Testing it a little bit further, I got a problem with github repos, like: https://github.com/OS2World/UTIL-ARCHIVER-QuickWPI
It is like it does not stop loading, the bottom bar remains in 100% but does not goes away like it uses to when it finish loading a page.

On the console I get:
Code: [Select]
Unimplemented code.
qt.qpa.mime: isDelayed true
qt.qpa.mime: convert to format f63d "text/unicode" flags 400 data 0 isDelayed tr
ue ok true
qt.qpa.mime: convert to format 1 "#1" flags 400 data 0 isDelayed true ok true
qt.qpa.mime: convert to format 1 "#1" flags 400 data 10ed0000 isDelayed false ok
 true
Later it crashes with the log I'm attaching.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5029
  • Karma: +113/-1
    • View Profile
Re: otter-browser, Qt5 build
« Reply #10 on: September 16, 2024, 05:21:25 pm »
Hi Martin. The Otter browser is definitely alpha quality at best, then our Qt port is also needing work. So crashes are expected and it sounds like even on supported platforms Otter is not the most stable.
I wouldn't bother uploading these trp reports, especially when there are no debug packages installed. I have lots generated here and don't have much skills at fixing them.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4981
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: otter-browser, Qt5 build
« Reply #11 on: September 16, 2024, 10:41:05 pm »
Thanks for the reply Dave.
I celebrate the effort of porting it, even if it is not as good as we all want, we need to start with something  ;D

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Roderick Klein

  • Hero Member
  • *****
  • Posts: 693
  • Karma: +14/-0
    • View Profile
Re: otter-browser, Qt5 build
« Reply #12 on: September 17, 2024, 11:08:16 am »
Last time I checked Otter is not support with QT 6. Dmitry from BWW skipped Otter Browser as it was crashing because the multi process code is not stable. This is one the key reasons at the time the Otter Browser was not selected. It crashes more then Doobke.

Roderick

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2254
  • Karma: +173/-0
    • View Profile
Re: otter-browser, Qt5 build
« Reply #13 on: September 17, 2024, 12:10:17 pm »
Last time I checked Otter is not support with QT 6. Dmitry from BWW skipped Otter Browser as it was crashing because the multi process code is not stable. This is one the key reasons at the time the Otter Browser was not selected. It crashes more then Doobke.

There is a port of otter to qt6 at https://github.com/Chiitoo/otter-browser/commits/qt6/ - PR to merge it is still in work.