Author Topic: Qt6 Application Testing  (Read 177278 times)

roberto

  • Hero Member
  • *****
  • Posts: 810
  • Karma: +3/-6
    • View Profile
Re: Qt6 Application Testing
« Reply #210 on: March 02, 2023, 08:57:35 am »
Did the VP9 video play for you (in Dooble/Qt6)?
yes i can play.
My hp8760w is avx compatible.
But here I am with this other processor, and perhaps even better that hp8760w. And this no is avx compatible?
----- System Information -------------------------------------------------------
CPU: GenuineIntel Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz
CPU Speed: 2648 Mhz
CPU Count: 2
Loader's physical memory layout:
  Memory below 1MB: 639.00 KiB
  Memory between 1MB and 4GB: 2.92 GiB
  Memory below 4GB: 2.92 GiB
  Memory above 4GB: 896.00 MiB
Kernel's physical memory layout:
  From 00000000 to 00031FFF size=200.00 KiB
  From 00039000 to 0009FFFF size=412.00 KiB
  From 00100000 to BB77FFFF size=2.92 GiB
Physical memory: 2.92 GiB
Available memory: 692.00 MiB
Available Private memory: 328.50 MiB
Available Shared memory: 229.31 MiB
Virtual Address Limit: 2816
Max Processes: 282
SMBIOS version 2.6 at fb7e0 len=a4f
BIOS Information:
 Vendor: American Megatrends Inc.
 Version: 080015
 Release Date: 02/04/2015
 ROM Size: 1024 kB
 ACPI is supported
 BIOS Revision: 8.15
System Information:
 Manufacturer: To Be Filled By O.E.M.
 Product Name: To Be Filled By O.E.M.
 Version: To Be Filled By O.E.M.
 Serial Number: To Be Filled By O.E.M.
 UUID: 03000200-0400-0500-0006-000700080009
Base Board Information:
 Manufacturer: INTEL
 Product Name: To be filled by O.E.M.
 Version: To be filled by O.E.M.
 Serial Number: To be filled by O.E.M.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #211 on: March 02, 2023, 09:56:03 am »
Good choice of song Roberto :) One of my favourites from the good old Frenzal Rhomb :)

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #212 on: March 02, 2023, 10:02:40 am »
Did the VP9 video play for you (in Dooble/Qt6)?

Didn't try. Busy with other stuff so didn't want to lock the computer. At least the Qt5 build allows a graceful exit from Dooble when it hangs instead of a reboot and chkdsk, fast on JFS but still a few minutes.

OK - I'm going to try resetting dav1d to the original source, and reapply the qt5 diffs. See what happens...

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #213 on: March 02, 2023, 09:12:56 pm »
OK the dav1d patches look reasonable - but I do agree that av1 videos are more problematic than vp9 videos. vp9 play pretty smoothly on my vbox install; av1 whilst not freezing the system, do play very jerkily (is that a word?)

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4805
  • Karma: +99/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #214 on: March 02, 2023, 09:52:14 pm »
I wonder how to turn off AV1 support. Perhaps just the mime type would do as it is so CPU intensive even without the hangs. Also a shame that chromium doesn't seem to have preferences like Firefox does, could put AV1 behind a preference

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #215 on: March 03, 2023, 12:02:15 am »
OK I made two changes, both related to AVX support in libyuv:
1) rebuilt libvpx with AVX disabled in libyuv - https://smedley.id.au/tmp/libvpx-1.13.0-os2-20230303.zip
2) rebuilt qt6webee.dll with AVX disabled in libyuv - https://smedley.id.au/tmp/qt6webee-20230303.zip

My subjective assessment is these don't change much. Next step will be to add -mnoavx to the os2 cflags and see if that changes anything..

roberto

  • Hero Member
  • *****
  • Posts: 810
  • Karma: +3/-6
    • View Profile
Re: Qt6 Application Testing
« Reply #216 on: March 03, 2023, 05:29:58 pm »
OK I made two changes, both related to AVX support in libyuv:
1) rebuilt libvpx with AVX disabled in libyuv - https://smedley.id.au/tmp/libvpx-1.13.0-os2-20230303.zip
2) rebuilt qt6webee.dll with AVX disabled in libyuv - https://smedley.id.au/tmp/qt6webee-20230303.zip

My subjective assessment is these don't change much. Next step will be to add -mnoavx to the os2 cflags and see if that changes anything..
I discard it, for now. With the previous version and configuring the dooble with 512MB of Cache, I have been able to see some video in 8K, to a 1000K resolution, it works better than at 400K YouTube defect. But as seen and heard, stop 2 to 3 seconds, at intervals. And other times the video barely starts, and I have to restart Dooble.
saludos

David McKenna

  • Hero Member
  • *****
  • Posts: 751
  • Karma: +24/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #217 on: March 03, 2023, 09:42:52 pm »
Hey Paul!
OK I made two changes, both related to AVX support in libyuv:
1) rebuilt libvpx with AVX disabled in libyuv - https://smedley.id.au/tmp/libvpx-1.13.0-os2-20230303.zip
2) rebuilt qt6webee.dll with AVX disabled in libyuv - https://smedley.id.au/tmp/qt6webee-20230303.zip

My subjective assessment is these don't change much. Next step will be to add -mnoavx to the os2 cflags and see if that changes anything..
These builds definitely help here - I am able to go to www.youtube.com and it doesn't hang within 15 seconds! In fact it hasn't hung yet on the main page and I can play some videos no problem, but others will hang eventually. It seems VP9 videos work fine, but AV1 videos are glitchy and hang eventually. Still, it's progress!

Regards,

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #218 on: March 03, 2023, 09:55:39 pm »
Thanks Roberto - that kinda matches my limited testing. It's interesting - not what I expected given the extent of the change. We'll see what the upcoming build which has all avx code disabled changes...

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #219 on: March 03, 2023, 09:57:03 pm »
Hey Dave,

Hey Paul!
OK I made two changes, both related to AVX support in libyuv:
1) rebuilt libvpx with AVX disabled in libyuv - https://smedley.id.au/tmp/libvpx-1.13.0-os2-20230303.zip
2) rebuilt qt6webee.dll with AVX disabled in libyuv - https://smedley.id.au/tmp/qt6webee-20230303.zip

My subjective assessment is these don't change much. Next step will be to add -mnoavx to the os2 cflags and see if that changes anything..
These builds definitely help here - I am able to go to www.youtube.com and it doesn't hang within 15 seconds! In fact it hasn't hung yet on the main page and I can play some videos no problem, but others will hang eventually. It seems VP9 videos work fine, but AV1 videos are glitchy and hang eventually. Still, it's progress!,

Cool! So looks like use of AVX definitely causes problems for some at least :) Upcoming build - hopefully later today (its almost 7:30am my time) will have NO avx code in the binaries...

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4805
  • Karma: +99/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #220 on: March 04, 2023, 12:18:59 am »
Dooble-qt6 is nw acting much as dooble-qt5. Did lock the computer once but generally commercials play, videos play for a few seconds and then stop. Dooble hangs on exit, and restarting, it will not load YouTube until I nuke the profile.
Getting better

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #221 on: March 04, 2023, 12:25:00 am »
Dooble-qt6 is nw acting much as dooble-qt5. Did lock the computer once but generally commercials play, videos play for a few seconds and then stop. Dooble hangs on exit, and restarting, it will not load YouTube until I nuke the profile.
Getting better

Hopefully even better after we nuke more avx stuff....

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4805
  • Karma: +99/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #222 on: March 04, 2023, 05:47:27 am »
Dooble-qt6 is nw acting much as dooble-qt5. Did lock the computer once but generally commercials play, videos play for a few seconds and then stop. Dooble hangs on exit, and restarting, it will not load YouTube until I nuke the profile.
Getting better

Hopefully even better after we nuke more avx stuff....

Well, Qt5 nuked all the avx stuff, av1 videos still don't play worth a damn. Most programs/libraries correctly enable AVX, check for CPU support and check for OS support (fxsafe). Even GCC, when I targeted my CPU, didn't enable AVX, though when I targeted native, it did, and SM crashed really quick due to unaligned AVX instruction, with a detailed trp report, though exceptq's disassembler needs updating to support AVX:)
It's good to turn off all the AVX, if nothing else to make the OS4 people happy, but I'm not sure if there will be more improvements. Hasn't been any avx related trps, so GCC isn't using avx, probably as isn't either. I do think that libdav1d was (maybe only officially supports OS's with avx support?) but not sure. It makes sense that without fxsave support, a context switch could lock things up or worse.
I'm also wondering what changed in Dooble, both Qt5 and Qt6 to stop it cleanly exiting. Have to bisect the tree I guess, luckily it is a small project and not many commits.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2095
  • Karma: +160/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #223 on: March 04, 2023, 08:48:53 am »
re: libdav1d there are a set of config files that don't use ASM and don't support AVX in https://github.com/psmedley/qt6-webengine-os2/tree/main/src/3rdparty/chromium/third_party/dav1d/config/linux-noasm/x64 - these are used by the is_msan config

roberto

  • Hero Member
  • *****
  • Posts: 810
  • Karma: +3/-6
    • View Profile
Re: Qt6 Application Testing
« Reply #224 on: March 04, 2023, 01:12:04 pm »
This patch, improves the AV1 videos, lighting blocks in memory.
I do not know if it will work for others, and if it will be easy or difficult to apply it to the qt6webee.dll, which is about the DLL that I apply it.
saludos