rubund / graywolf

Other
107 stars 36 forks source link

OSX install using yageek fork, graywolf hangs when using graphics #19

Open wiltonburke opened 6 years ago

wiltonburke commented 6 years ago

I installed graywolf using the fork yageek setup for osx installation. This works correctly when I run graywolf without graphics. However running with graphics the process hangs and when I abort the program I receive the following error:

XIO: fatal IO error 35 (Resource temporarily unavailable) on X server "/private/tmp/com.apple.launchd.3rHjgMkpM3/org.macosforge.xquartz:0" after 79 requests (79 known processed) with 20 events remaining.

To resolve this I removed the following while(TRUE) loop in src/Ylib/draw.c line 636

/* -------------------------------------------------------------
   Now wait to window to become visible.  This code is necessary 
   since some window managers (uwm) map the window as a ghost 
   image and wait for user to resize window.  Other window 
   managers (twm) map window as requested.  Need to accomodate
   both.
-------------------------------------------------------------- */

/ while( TRUE ){ if( XCheckTypedWindowEvent(dpyS,backS,VisibilityNotify,&event)){ if( event.xvisibility.state == VisibilityUnobscured ){ break ; } } } /

lsthiros commented 6 years ago

Wanted to +1 this solution. It removed the hang on my MacOS 10.13.4 system. Removing this block might not be a great solution, but it has worked for me so far.