I’ve been trying to do a UI addition to a couple of my projects and have been dealing with periodic crashing so I decided to go back to the start to see if I could pinpoint when the crashing starts. Starting fresh from the monomer-starter I made the following change that simply adds a forkIO around the Monomer IO and within a minute it segmentation faults.
-- git diff
+ import Control.Concurrent
- startApp model handleEvent buildUI config
+ forkIO $ startApp model handleEvent buildUI config
+ threadDelay maxBound
- Is this a Monomer bug that I should make an issue?
- What tools can I use to find out more?
- Is it expected that async errors would have a different effect from a non-primary thread?