microwindows
microwindows copied to clipboard
Floating point exception on Centos 8 compile
I've compiled microwindows for Centos 8, with all standard libraries.
I've selected NANO-X to be compiled as well as the other libraries.
I set LINK_APP_INTO_SERVER = Y
Compiles fine, but on running any demo I see the window open briefly and then the message
Floating point exception (core dumped).
If I set LINK_APP_INTO_SERVER = N
the compile completes, but I get
nxclient: bad readblock -1, errno 104 nxclient 15577: Corrupted packet
when I use runapp, eg
./runapp demo-nuklear-demo
Program received signal SIGFPE, Arithmetic exception.
0x00007ffff6d91da1 in X11_getscreeninfo (psd=0x7ffff6fe2500
598 psi->xdpcm = (DisplayWidth(x11_dpy, x11_scr) * 10) / DisplayWidthMM(x11_dpy, x11_scr);
Shouldn't be any floating point for the exception, so I'm guessing divide by zero? Replace the above line with 'psi->xdpcm = 800;' (for 800 x 600) and lets see what happens.
It sounds like something is amiss with X11... there were some changes made, which I thought I fixed, that got the X11 headers in src/nx11/X11-local/X11 mixed up with the host X11 headers, which are usually in /usr/X11/include. I'm guessing that your host X11 is updated and not compatible with the older X11R6 headers used for the NX11 library.
Check your 'config' file, you should be using one close to Configs/config.linux-X11, and make sure that the X11HDRLOCATION= line is properly filled out.
The X11HDR and lib location are correct as far as I can see :)
If I force the xdpcm and ydpcm to 800 and 600, it works fine.