Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dave Yeo

Pages: [1] 2 3 ... 256
1
Programming / Re: Qt6
« on: December 07, 2022, 10:44:09 pm »
gn seems to work standalone.

2
Applications / Re: Netlabs EPMD Startup Freeze
« on: December 07, 2022, 09:33:49 pm »
It seems to be a bug in the convenience packages (and WSeB according to the thread). FFmpeg worked perfectly on Warp V4 here, passing all the tests, run on eCS, it crashed with a sigfpu exception.
Bitwise added a fix/work around in libc066 IIRC so GCC programs no longer suffer from the fpu exceptions, so I was thinking that Firefox or any recent libc program would reset the FCW control word preventing the exception. As many programs are built with  GCC and some are in various startup folders, the problem usually doesn't happen. Apparently christech isn't running any GCC programs when starting up EPMD.
Results from Michal's test case, libc vs emx.
Code: [Select]
H:\tmp>test_emx.exe
cw = 0x7F
cw = 0x7F
cw = 0x37F
cw = 0x37F
5.56268e-309

H:\tmp>test_libc.exe
cw = 0X7F
cw = 0X7F
cw = 0X7F
cw = 0X7F
5.56268e-309

Couldn't tell from the thread if the correct answer should be zero or 5.5628e-309, which is very small.
Doodle added this to Cairo,
Code: [Select]
static inline void
DisableFPUException (void)
{
    unsigned short usCW;

    /* Some OS/2 PM API calls modify the FPU Control Word,
     * but forget to restore it.
     *
     * This can result in XCPT_FLOAT_INVALID_OPCODE exceptions,
     * so to be sure, we disable Invalid Opcode FPU exception
     * before using FPU stuffs.
     */
    usCW = _control87 (0, 0);
    usCW = usCW | EM_INVALID | 0x80;
    _control87 (usCW, MCW_EM | 0x80);
}

Edit, I get the same result using SSE for floating point math,
Code: [Select]
cc -Zomf -march=native -mfpmath=sse test.c -o test_libc.exe

H:\tmp>test_libc.exe
cw = 0X7F
cw = 0X7F
cw = 0X7F
cw = 0X7F
5.56268e-309

3
Applications / Re: Netlabs EPMD Startup Freeze
« on: December 07, 2022, 08:26:42 am »
You have hyper-threading turned off?

4
Applications / Re: Netlabs EPMD Startup Freeze
« on: December 07, 2022, 05:34:34 am »
There's an exception I've never seen. What CPU do you have as it is a precision exception,
Code: [Select]
SYS3179: A program in this session encountered a problem and
cannot continue.

EXPLANATION: A loss of precision exception occurred when the result
of an operation was not exactly representable in the destination
format.  For example, the fraction 1/3 cannot be exactly represented
in binary form.  For the Intel 80386** and 80387** processors, this
corresponds to one of the class of exceptions for which the 80387
processor signals the 80386 processor to raise trap #16.

ACTION: If you purchased this program, contact the supplier of the
program.  If you are the developer of this program, refer to the
information in the register.

Or perhaps FPU control word related. Instead of Firefox, can you try with a different recent port running that uses a recent libc?

5
Programming / Re: New frontends for GCC 13...
« on: December 07, 2022, 04:25:19 am »
What about one of the debug formats that Open Watcom supports?

dwarf output should work, but not sure it can be encapsulated into aout object files, and tools like emxomf will certainly choke on it....

With luck, the patch removing stabs can be easily reversed.

6
Programming / Re: New frontends for GCC 13...
« on: December 07, 2022, 01:27:16 am »
What about one of the debug formats that Open Watcom supports?

7
Programming / Re: Qt6
« on: December 06, 2022, 05:29:15 pm »
Getting back to thinking about the crash in focuswriter when typing sounds are enabled - do sounds work at all in Qt5? I can't for the life of me see any code that enables this....

They work in Dooble, playing the local radio station.

Seems to only be implemented in the webengine right now, namely "qt5/qtwebengine/src/3rdparty/chromium/media/audio/os2"

8
Programming / Re: Qt6
« on: December 06, 2022, 07:56:36 am »
Getting back to thinking about the crash in focuswriter when typing sounds are enabled - do sounds work at all in Qt5? I can't for the life of me see any code that enables this....

They work in Dooble, playing the local radio station.

9
Programming / Re: Qt6
« on: December 04, 2022, 05:10:19 am »
There are also issues with screen corruption when resizing windows - I haven't noticed this with other Qt6 apps, so this may be due to some hacks I had to make to Cairo 1.14 compiling. I'll investigate in due course.

The last time I tried updating Cairo, something was broken, I forget what now and testing, it seems OK. Actually the system Cairo has some brokenness and IIRC, the update made it more obvious.
You can test by replacing the system Cairo by putting your Cairo and Pixman ahead in LIBPATH and trying a Mozilla app and/or a Cairo screensaver module.
Here's the patch I created for git head some time back (1.17.3pre). Pixman shouldn't need any patches, the Cairo build will break when it gets to the scripting stuff due to conflicting header names but make install will install everything needed by the OS/2 surface backend IIRC. I didn't bother with the OS/2 printing surface as GDI printing became broken anyways.
Now Cairo has a new maintainer after years of none and he dropped all the experimental backends including OS/2 to concentrate on GTK's needs.
Edit: added txt to the patch to post it.

10
Storage / Re: JFS failing in a disastrous way - without the user knowing
« on: December 02, 2022, 10:39:28 pm »
Waiting for a keypress was a suggestion. You could also do a simple delay of say 30 seconds or so (that would also be possible).

It is very good suggestion. You proved that unicode.sys  is vital for system with JFS.

OTOH, I went 18 months without unicode.sys with en_US locale. It was only when I found this,
Code: [Select]
2-17-22 11:04a         <DIR>      0 ----  Gel
 2-17-22 11:13a         <DIR>      0 ----  Sessions effac
 2-17-22 10:58a         <DIR>      0 ----  Verwijderde sessies
[\code]
instead of this,
[code]
2-17-22 11:04a         <DIR>      0 ----  Gelöschte Sitzungen
 2-17-22 11:13a         <DIR>      0 ----  Sessions effacĂ©es
 2-17-22 10:58a         <DIR>      0 ----  Verwijderde sessies

That I investigated. Seems without unicode.sys, you can write and read umlauts etc as long as always without unicode.sys.

11
Hardware / Re: panorama not remembering monotor resolution
« on: December 02, 2022, 01:33:28 am »
Perhaps setting a Custom Resolution in the Screen object under Custom Resolutions? I had to do that at one point as my monitor was slightly broken.

12
Storage / Re: JFS failing in a disastrous way - without the user knowing
« on: December 01, 2022, 01:22:21 am »
Do you mean that it should be used on the WarpIn script like...
  "CONFIGSYS="DEVICE=?:\OS2\rdmsr.sys | UNIQUE(rdmsr.sys)"
to avoid getting the Unicode.sys replaced?


I'm not an expert with Warpin, it seems that would still not add rdmsr.sys if it wasn't in config.sys to begin with but would avoid replacing unicode.sys. Guess that is why Digi ended up with a bit of Rexx to do it.

13
Storage / Re: JFS failing in a disastrous way - without the user knowing
« on: November 30, 2022, 10:01:34 pm »
Hi

I quickly installed "CPUTemp_wdgt_1-1-0.zip" with Warpin 1.0.24 (ArcaOS 5.0.6) and I confirm it removed UNICODE.SYS from my config.sys.

Reverted everything, upgraded to WarpIn 1.0.26 and I got the same thing. UNICODE.SYS gets removed.

I also don't see anything strange on the CPUTEMP WarpIn script, just the "CONFIGSYS="DEVICE=?:\OS2\rdmsr.sys | UNIQUE" which should not remove UNICODE.SYS.

Should it be reported as WarpIn bug?

Regards

Warpin is working as it should based on discussion on the testers list. What happens is if rdmsr.sys is not installed, it matches up with the first *.sys in config.sys and replaces that with rdmsr.sys. Usually it is unicode.sys at the top of config.sys.

14
Storage / Re: JFS failing in a disastrous way - without the user knowing
« on: November 30, 2022, 05:34:04 pm »
I ran into the same issue, excepting with a English install, there were just some MP3's with umlauts. In my case everything was fine, including the umlaut files being fine, until I booted to a different install, where those file names became garbage (actually I forget if it was umlauts or other special characters). Took a while to figure out it was a missing unicode.sys and once I did figure it out, I renamed the problem files without unicode.sys installed.
This is a known problem that was reported to Digi long ago and he fixed the problematic CONFIGSYS="DEVICE=?:\OS2\rdmsr.sys | UNIQUE" line, which upon not finding rdmr.sys, replaced the first line containing .sys, usually unicode.sys. There's an issue, but it is private. Remy filed it. Unluckily it was quite a while before it was uploaded to Hobbes.

15
Comments, Suggestions & Questions / Re: Hobbes (Files) Reoganization
« on: November 28, 2022, 06:30:37 pm »
dev/text or dev/tools/text ?

Pages: [1] 2 3 ... 256