Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-1449

wxWidgets Assert failure: ./src/gtk/window.cpp(2888): "m_widget" in DoSetSize() : invalid window

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 23.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Hello,

      I have maintained the Erlang package for Arch Linux since 2012. Upgrades are usually smooth, but now I have encountered an issue where I'm currently unable to find a solution.

      Part of the issue is that GTK 2 has reached its end of life, and it's desirable to compile Erlang so that it uses wxgtk3 and GTK 3.

      The first issue is that wx-config from the wxgtk2 and wxgtk3 packages collide, so that wx-config from wxgtk3 is named /usr/bin/wx-config-gtk3. This confuses the Erlang config/build process, since it expects that the wx-config executable is never named wx-config-gtk3.

      I found a workaround by creating a directory, placing a symlink to wx-config-gtk3 named wx-config in that directory, and adding that to the $PATH before running configure. I tried various environment variables and configure flags before ending up with this.

      After this change, Erlang builds and GTK3 works. However (and now comes the real issue), when running:

      erl

      And then

      wx:demo().

      All the examples works great, except from the gl example. When selecting the gl example, I get this error:

      =ERROR REPORT==== 21-Dec-2020::16:15:50.994143 ===
       wx: error
       message: wxWidgets Assert failure: ./src/gtk/window.cpp(2888): "m_widget" in DoSetSize() : invalid window

      I'm not entirely sure if this is even Erlang's fault, or if this is an issue in wxgtk3, or how the wxgtk3 package has been configured and installed, but it did not happen with wxgtk2.

      Is this an issue in Erlang?

      Any help is appreciated.

      Best regards,
      Alexander F. Rødseth

        Attachments

          Activity

            People

            Assignee:
            otp_team_ps Team PS
            Reporter:
            xyproto Alexander Rødseth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: