#90 Many samples crash

confirmed
closed-fixed
nobody
None
1
5 days ago
2014-07-01
No

Many of the wxHaskell program samples crash, for example:

[...]\wxHaskell\samples\wxcore>ImageViewer.exe
Segmentation fault/access violation in generated code

(the message is always the same)

Versions:

Item Version
OS Windows XP, Windows 8.1
GHC 7.6.3
wxWidgets 2.9.5
wxHaskell 0.91.0.0 (currently in GitHub repository)
GCC 4.5.2

Related

Bugs: #93

Discussion

  • With wxWidgets 3.0.1, most crashes have disappeared; the only crashing sample programs are now:

    • wx/Print.hs (when selecting a menu item)
    • wx/TestTaskBarIcon.hs (when the program is terminated)

    (Testing is done on a Windows 8.1 system)

     
  • The crashes returned at some point, but most are solved by removing the double initiation of the image handlers and the new procedure to compile wxWidgets, which ensures that the compiler used for wxWidgets is identical to the one used for installing wxHaskell. See https://wiki.haskell.org/WxHaskell/Windows#wxWidgets_3.0_and_wxHaskell_.3E.3D_0.92

     
  • Crashes are very rare now; report crashes in seperate tickets.
    Current configuration:

    Item Version
    Windows 8.1
    GHC 7.10.2
    wxWidgets 3.0.2
    wxHaskell 0.92.0.0 (currently in GitHub repository)
    GCC 4.6.3

    (GHC 7.10.1 made all wxHaskell software crash)

     
    • status: open --> closed-fixed