Author Topic: Qt6 Application Testing  (Read 284876 times)

Remy

  • Hero Member
  • *****
  • Posts: 760
  • Karma: +12/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #615 on: September 11, 2024, 03:56:43 pm »
Hi Paul

No TRP file - don't get these when the system locks solid, no popuplog.os2 entry either. Yes, I have the Silent Exit version of libcn0.dll installed but it has not produced any TRP files for silent exits so far.

This is a url that causes the above problem  https://www.youtube.com/watch?v=0SomJLPR3Fk&pp=ygUKYWwgc3Rld2FydA%3D%3D

I've had a rummage through the mainboard BIOS and turned SMT (AMD HyperThreading) back on - turned off to see if that was causing problems. Now dooble loads youtube.com without exiting/hanging/locking system solid.


Had a lot of fun importing the dooble_accepted_or_blocked_domains.txt file as dooble locked solid requiring reboot, worked on the 3rd attempt - no idea why...


Had another try with the above url, page almost loaded and playback almost started then dooble did a silent exit. However, we got a TRP this time attached as 66e19bff-003b_15-DOOBLE-exceptq.txt



Regards

Pete

I tried the youtube url,
It start playing, then video stops and 2 to 4 seconds later, audio sound stops, I was able to click on an other video immediatly, the new one started to play and then system hung (power off/on to recover)

When playing youtube, the system hung generally occurs a few seconds (or starting an other video) after sound goes off while playing the selected video
It looks like something goes wrong between OS/2 audio and Dooble !  (how will ffmpeg chromium work with pthread disabled ?)     

When a kill just before the hung, saw something strange into the trps !
00AFFF5C  00010027   DOOBLE    0001:00000027  crt0.s#90 __text + 27 0001:00000000 (D:\Temp\cc7CpCIv.s)
00AFFF6C  00010030   DOOBLE    0001:00000030  crt0.s#94 __text + 30 0001:00000000 (D:\Temp\cc7CpCIv.s)
or
00B8FF58  00010021   DOOBLE    0001:00000021  crt0.s#94 __text + 21 0001:00000000 (D:\Temp\ccqVZDcA.s)
00B8FF4C  00010018   DOOBLE    0001:00000018  crt0.s#90 __text + 18 0001:00000000 (D:\Temp\ccqVZDcA.s)
00B8FF5C  00010021   DOOBLE    0001:00000021  crt0.s#94 __text + 21 0001:00000000 (D:\Temp\ccqVZDcA.s)
But not only Dooble !
00B8FFD4  9FE3004B   QT6CHRTS  0001:0000004B  dll0.s#99 __text + 4B 0001:00000000 (D:\Temp\ccvnLdQd.s)

 

Why and from where did it get this information for a drive D:\  ?   I have no D: drive
« Last Edit: September 11, 2024, 04:26:05 pm by Remy »

Remy

  • Hero Member
  • *****
  • Posts: 760
  • Karma: +12/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #616 on: September 11, 2024, 04:16:06 pm »
Thanks Paul,

  Gave the new ffmpeg a quick try and it seems to work fine. Since using Remy's script and adding a second CPU to my virtual machine, QT6 Dooble has been better than ever with videos and heavy Javascript websites. I have yet to get a hard hang, or even a silent exit. The Athena website mentioned works fine here. I'll keep testing...

Regards,

Hi David,
Replacing the single line by following both lines seems to be better for me.
rc=SysSetPriority(3,10)
rc=SysSetPriority(1,3)

Remy

  • Hero Member
  • *****
  • Posts: 760
  • Karma: +12/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #617 on: September 11, 2024, 04:44:29 pm »
Working youtube video:
Germany (lot of snow for this week-end !):  https://www.youtube.com/watch?v=U6u9J27lnZA

And having a nice surprise seen following link working very well:
https://www.windy.com/?48.855,2.547,5
« Last Edit: September 11, 2024, 05:01:03 pm by Remy »

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5084
  • Karma: +117/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #618 on: September 11, 2024, 05:34:29 pm »
I tried the youtube url,
It start playing, then video stops and 2 to 4 seconds later, audio sound stops, I was able to click on an other video immediatly, the new one started to play and then system hung (power off/on to recover)

When playing youtube, the system hung generally occurs a few seconds (or starting an other video) after sound goes off while playing the selected video
It looks like something goes wrong between OS/2 audio and Dooble !  (how will ffmpeg chromium work with pthread disabled ?)     

When a kill just before the hung, saw something strange into the trps !
00AFFF5C  00010027   DOOBLE    0001:00000027  crt0.s#90 __text + 27 0001:00000000 (D:\Temp\cc7CpCIv.s)
00AFFF6C  00010030   DOOBLE    0001:00000030  crt0.s#94 __text + 30 0001:00000000 (D:\Temp\cc7CpCIv.s)
or
00B8FF58  00010021   DOOBLE    0001:00000021  crt0.s#94 __text + 21 0001:00000000 (D:\Temp\ccqVZDcA.s)
00B8FF4C  00010018   DOOBLE    0001:00000018  crt0.s#90 __text + 18 0001:00000000 (D:\Temp\ccqVZDcA.s)
00B8FF5C  00010021   DOOBLE    0001:00000021  crt0.s#94 __text + 21 0001:00000000 (D:\Temp\ccqVZDcA.s)
But not only Dooble !
00B8FFD4  9FE3004B   QT6CHRTS  0001:0000004B  dll0.s#99 __text + 4B 0001:00000000 (D:\Temp\ccvnLdQd.s)

 

Why and from where did it get this information for a drive D:\  ?   I have no D: drive

That's from Paul's system and perfectly normal.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2284
  • Karma: +176/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #619 on: September 11, 2024, 11:25:26 pm »
That's from Paul's system and perfectly normal.
Dmitry's in this case as it's from crt0.s which is part of libc

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2284
  • Karma: +176/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #620 on: September 11, 2024, 11:28:41 pm »
  The priority change is definitely what helps here - without it I get the usual hangs and silent exits regularly.  Much rarer with the priority change - any idea why that might be? Related to the processor optimization maybe? Or an interaction between that and the processor I'm using? Wish I knew more about the settings too - maybe it can be tweaked even more....

I think it's some issue with thread priorities - perhaps how they're mapped to the OS/2 API results in too low a priority and timing issues. Some of the silent exits Steven and I investigated a while back appeared to be due to variables having been freed whilst another thread was still expecting them to be valid.

I'll have to ask Steven for his thoughts. It's a fantastic discovery - we just need to work out *why* it's required and see if we can fix it in the codebase.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2284
  • Karma: +176/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #621 on: September 11, 2024, 11:29:48 pm »
No TRP file - don't get these when the system locks solid, no popuplog.os2 entry either. Yes, I have the Silent Exit version of libcn0.dll installed but it has not produced any TRP files for silent exits so far.

You will *only* get TRP files if you have set 'set EXCEPT=Z' before starting dooble.exe The TRP will be in the directory where dooble is run from.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2284
  • Karma: +176/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #622 on: September 11, 2024, 11:31:59 pm »
It looks like something goes wrong between OS/2 audio and Dooble !  (how will ffmpeg chromium work with pthread disabled ?)     

As Dave and I have both mentioned, ffmpeg has native OS/2 code for threads - the lack of pthreads is not the issue here.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5084
  • Karma: +117/-1
    • View Profile
Re: Qt6 Application Testing
« Reply #623 on: September 12, 2024, 02:05:48 am »
  The priority change is definitely what helps here - without it I get the usual hangs and silent exits regularly.  Much rarer with the priority change - any idea why that might be? Related to the processor optimization maybe? Or an interaction between that and the processor I'm using? Wish I knew more about the settings too - maybe it can be tweaked even more....

I think it's some issue with thread priorities - perhaps how they're mapped to the OS/2 API results in too low a priority and timing issues. Some of the silent exits Steven and I investigated a while back appeared to be due to variables having been freed whilst another thread was still expecting them to be valid.

I'll have to ask Steven for his thoughts. It's a fantastic discovery - we just need to work out *why* it's required and see if we can fix it in the codebase.

I tried adding PRIORITY=ABSOLUTE to config.sys to see if it helped not giving the foreground app a boost. Didn't help.

Pete

  • Hero Member
  • *****
  • Posts: 1352
  • Karma: +11/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #624 on: September 12, 2024, 02:30:16 am »
Hi Paul

The only TRP file generated in 7 or 8 silent exits is attached to my previous post. Yes, I set EXCEPT=Z before starting dooble.

You may be interested to know that the TFP file could not be found in the directory that dooble runs from but was in the SET LOGFILES location on this system.


Regards

Pete

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2284
  • Karma: +176/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #625 on: September 12, 2024, 03:17:55 am »
Hey Pete,

Yes, I set EXCEPT=Z before starting dooble.

'set EXCEPT=Z' or 'set EXCEPTQ=Z' ? the latter is the correct one.

Pete

  • Hero Member
  • *****
  • Posts: 1352
  • Karma: +11/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #626 on: September 12, 2024, 05:11:57 am »
Hi Paul

Sorry, made a typo I have

'SET EXCEPTQ=Z'
'J:\Programs\qt6\Dooble\Dooble.exe'


Regards

Pete


Paul Smedley

  • Hero Member
  • *****
  • Posts: 2284
  • Karma: +176/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #627 on: September 12, 2024, 12:00:10 pm »
Curious if the following works for anyone - video in particular:
https://smedley.id.au/tmp/ffmpeg-n7.0.2-os2-20240912.zip
https://smedley.id.au/tmp/qt6-6.2.9-qtwebengine-6.2.6-os2-20240912-gcc14.zip

Basically webengine is linked against latest ffmpeg which includes http://www.slackware.com/~alien/slackbuilds/ffmpeg/build/patches/add-av_stream_get_first_dts-for-chromium.patch for compatibility with chromium.

David McKenna

  • Hero Member
  • *****
  • Posts: 813
  • Karma: +25/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #628 on: September 12, 2024, 01:08:36 pm »
Paul,

  Did a quick test before work, and I can't get to YouTube with this one - get a silent exit every time. The last build worked. Playing embedded videos on websites is also flakey - sometimes it works, and sometimes get a silent exit. I'll test more later today...

  BTW - the QTWebengine DLL is not marked to load high...

Regards,

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2284
  • Karma: +176/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #629 on: September 12, 2024, 10:52:18 pm »
  Did a quick test before work, and I can't get to YouTube with this one - get a silent exit every time. The last build worked. Playing embedded videos on websites is also flakey - sometimes it works, and sometimes get a silent exit. I'll test more later today...

  BTW - the QTWebengine DLL is not marked to load high...

It's probably some incompatibilty with the newer ffmpeg - I figured it was worth a try :)