Author Topic: Qt6 Application Testing  (Read 178009 times)

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #105 on: February 17, 2023, 09:35:31 pm »
Hey Dave,
  With latest qt6webee I still can't go to https://www.youtube.com without locking the system immediately. If I google search a video, then go to it the ad will play, but as soon as I hit 'skip ads' Dooble disappears from the screen...

The lockup is weird - you are running the latest mega package from a couple of days ago?

Re, the Dooble disappearing, if you have the time, install my libcn into the dooble directory, temporarily add the dooble directory to thr start of libpath and reboot, and when it silent exits, you should get a TRP file - it would be good to confirm it's similar to the one I posted.

I intend to modify my code further to only TRP if EXCEPTQ is set to certain values, but just need some time to do that. That would allow it to be used without generating a TRP for every normal exit ;)

David McKenna

  • Hero Member
  • *****
  • Posts: 751
  • Karma: +24/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #106 on: February 17, 2023, 11:17:15 pm »
 Hey Paul,

Yeah, I'm using qt6-6.2.4-os2-20230214.zip with qt6webee-20230216.zip. I got your special libcn0.dll and put it in C:\usr\local\lib, rebooted, then started the QT6 Dooble, did a google search on 'Plimsouls Million Miles Away', double clicked on the YouTube video offered, Dooble disappeared and a triple beep was heard.
A trap file was created in C:\qt6\bin (where QT6 and Dooble resides) - attached.

Regards,

BTW - plays fine in QT5 Dooble...
« Last Edit: February 17, 2023, 11:29:28 pm by David McKenna »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #107 on: February 17, 2023, 11:33:14 pm »
Thanks Dave - that's very similar to the TRP I uploaded earlier - seems to me to be something in dav1d

Depending how many glasses of wine I have today, I'll try and look at making the modified libcn respect the 'set EXCEPTQ' statement...

What Steven and I talked about was respecting:
Code: [Select]
  U     Attempt to generate a Process Dump
  Z     Generate exceptq report for normal terminations
and acting accordingly - even where there are 'silent' exits.

If it works, I'll submit a PR and try and convince Dmitry to include it in the retail libcn0
« Last Edit: February 17, 2023, 11:35:20 pm by Paul Smedley »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #108 on: February 17, 2023, 11:59:50 pm »
re: the trap in dav1d - I'm still suspicious of the patches I made in https://github.com/psmedley/qt6-webengine-os2/commit/805bf77f6685a414b4688534b440b001a7c6252c & https://github.com/psmedley/qt6-webengine-os2/commit/167babc8243d00b067de3c35b4cfdb8829f6974a - particularly given the problems in libvpx as well.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4807
  • Karma: +100/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #109 on: February 18, 2023, 12:19:38 am »
Unluckily dav1d uses meson and ninja to build, I don't think we have a port of meson

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #110 on: February 18, 2023, 12:34:58 am »
There also doesn't seem to be a way to use a system dav1d anyway... the trap mentioned SSE2, so I'm going to try disabling it in dav1d.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4807
  • Karma: +100/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #111 on: February 18, 2023, 12:55:35 am »
re: the trap in dav1d - I'm still suspicious of the patches I made in https://github.com/psmedley/qt6-webengine-os2/commit/805bf77f6685a414b4688534b440b001a7c6252c & https://github.com/psmedley/qt6-webengine-os2/commit/167babc8243d00b067de3c35b4cfdb8829f6974a - particularly given the problems in libvpx as well.

Looks like you forgot to change 9 instances of SECTION .text to the macro, SECTION_TEXT in the assembly files.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #112 on: February 18, 2023, 01:14:14 am »
Thanks Dave - I'll check later. Meanwhile, <link removed, unsuccessful change> attempts to disable SSE2 for dav1d.

I'll look into the ASM issues later today or tomorrow, heading to a winery for lunch shortly.
« Last Edit: February 18, 2023, 10:04:15 pm by Paul Smedley »

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4807
  • Karma: +100/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #113 on: February 18, 2023, 01:42:10 am »
Here's the diff, they are SSE and AVX related. Disabling will produce slow code.
Code: [Select]
grep -rl 'SECTION .text' | xargs sed -i 's/SECTION .text/SECTION_TEXT/g'is what I used, though it also needed delcr to fix the line endings.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4807
  • Karma: +100/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #114 on: February 18, 2023, 02:31:35 am »
FFmpeg might need similar, libyuv/source/row_x86.asm looks like it needs it.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4807
  • Karma: +100/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #115 on: February 18, 2023, 06:47:43 am »
Thanks Dave - I'll check later. Meanwhile, https://smedley.id.au/tmp/qt6webee-20230218.zip attempts to disable SSE2 for dav1d.

Well this build is the worst yet here, besides some of the early ones. Youtubes main page consistently locks up the computer with only the mouse responsive, triggering a dump (no dump partition) works.
Tried marking dooble mpunsafe, just slowed down the time it took to freeze. Tried changing the highmem to -c, no change, changing it to -u saw pthreads complaining about no memory before a trap 3 triggered a trp. It never freed the memory either, leaving me with about 8 MB's of lower shared memory even after restarting the WPS, forcing a reboot.
The pthreads not having enough memory consistently triggered the TRAP 3.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #116 on: February 18, 2023, 10:24:57 am »
Hey Dave, thanks for testing. Didn't get back to this today, after a long lunch and a few(!) wines, I thought it best to wait til tomorrow. I'll revert the SSE2 change and take a look at your ask suggestions in the morning.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #117 on: February 18, 2023, 10:21:07 pm »
https://smedley.id.au/tmp/qt6webee-20230219.zip reverts the change I made in 20230218 and adds the ASM changes per to dav1d per Dave's suggestion. Not much time for testing this morning, so YMMV

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #118 on: February 18, 2023, 11:38:20 pm »

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4752
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Qt6 Application Testing
« Reply #119 on: February 18, 2023, 11:42:25 pm »
Hi Tellie

Do you think you can try to compile Media Downloader 2.8.0 ?
https://github.com/mhogomchungu/media-downloader

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