Epsilon: [Simulator] Window is blank in macOS Mojave

Created on 26 Sep 2018  路  7Comments  路  Source: numworks/epsilon

Edit: Workaround here.

Cleaning and then running make PLATFORM=simulator against the latest master (at the time of writing, 9a1ecec3229d0cbc5e9820eebbd3ae2c9198c60e) then opening up epsilon.elf from a terminal gives a blank window on macOS Mojave (18A391). This might be a FLTK issue, but I'm not really sure. Here's how it looks:

image

It remains this way with dark mode both on and off.

Most helpful comment

For reference, here is the relevant issue on fltk.org: http://www.fltk.org/str.php?L3496

One user on the issue there says r.13057 fixes the bug. (Relevant commit: https://github.com/fltk/fltk/commit/f76d2a2bf8c35c0c313f05bbd6deda49dd344efc)

Here is a workaround until the fix is released:

  1. Remove any existing versions of FLTK
    brew uninstall fltk
  2. Clone FLTK source repo
    git clone https://github.com/fltk/fltk.git
  3. Go into FLTK directory
    cd fltk
  4. Checkout commit w/ Mojave fix
    git checkout f76d2a2bf8c35c0c313f05bbd6deda49dd344efc
  5. Build and install
    make clean && make install
  6. Go back into your epsilon directory and rebuild
    make PLATFORM=simulator clean && make PLATFORM=simulator

Works for me on the latest Mojave beta build (18B45d). Although, I think we should keep this issue open until FLTK releases the fix in a stable version of the library just in case anyone else runs into this issue with the epsilon simulator.

image

All 7 comments

Unable to reproduce issue on macOS High Sierra (10.13.4 17E199) with commit 9a1ecec. I wouldn't be surprised if this is an issue with FLTK.
image

Can confirm that on Mojave, it's blank.
In both normal and Dark system theme, btw.

Probably fltk indeed...

There was a new Mojave beta update pushed today (18B45d), I will try the simulator again with that update installed. Likely won't fix it, but it's worth a shot.

Edit: Yup, still broken. I will download the source for the latest dev build of FLTK and compile that to see if it works.

Edit 2: FLTK 1.4.x does not work

For reference, here is the relevant issue on fltk.org: http://www.fltk.org/str.php?L3496

One user on the issue there says r.13057 fixes the bug. (Relevant commit: https://github.com/fltk/fltk/commit/f76d2a2bf8c35c0c313f05bbd6deda49dd344efc)

Here is a workaround until the fix is released:

  1. Remove any existing versions of FLTK
    brew uninstall fltk
  2. Clone FLTK source repo
    git clone https://github.com/fltk/fltk.git
  3. Go into FLTK directory
    cd fltk
  4. Checkout commit w/ Mojave fix
    git checkout f76d2a2bf8c35c0c313f05bbd6deda49dd344efc
  5. Build and install
    make clean && make install
  6. Go back into your epsilon directory and rebuild
    make PLATFORM=simulator clean && make PLATFORM=simulator

Works for me on the latest Mojave beta build (18B45d). Although, I think we should keep this issue open until FLTK releases the fix in a stable version of the library just in case anyone else runs into this issue with the epsilon simulator.

image

Thank you very much for the investigation @tjhorner ! I'll close this issue since its not directly in our code 馃槃

See Homebrew/homebrew-core#33342

Temporary workaround until Homebrew lands a fix: brew install --build-from-source gtDMMB/core/fltkwithcairo

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yeKcim picture yeKcim  路  4Comments

M4xi1m3 picture M4xi1m3  路  3Comments

lastfuture picture lastfuture  路  5Comments

XanderLeaDaren picture XanderLeaDaren  路  4Comments

UDXS picture UDXS  路  5Comments