<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear all,<br>
    <br>
    I am currently trying to create a custom lexer for a language called
    <a href="https://github.com/nest/nestml">NESTML</a>.<br>
    I followed the instructions on the <a
      href="http://geany.org/manual/dev/hacking.html#syntax-highlighting">hacking
      section of the manual</a> and managed to compile a local geany
    with the new lexer.<br>
    <br>
    However, I am encountering a <tt>Segfault</tt> problem when using
    this local geany: when I directly open a file, geany crashes
    immediately with a <tt>segmentation fault</tt> message.<br>
    However, if I use <tt>Document > define filetype > NESTML </tt>on
    an empty page, I am able to write a file and the new lexer seems to
    work like a charm. Following this, opening an existing <tt>.nestml</tt>
    file becomes possible and the lexer still works on this file. Yet,
    when I close geany, I again get the <tt>segmentation fault</tt>.<br>
    At some point (not always)s messages also appeared, saying: <tt>(geany:10608):
      GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT
      (object)' failed</tt>
    <p>The detailed of my implementation is on <a
        href="https://github.com/Silmathoron/geany">my fork of geany, on
        GitHub</a>.<br>
      I am working on an Ubuntu-based Linux Mint with Glib2 and Gtk2,
      and the latest master for geany; the compilation was done using:</p>
    <p>    <tt>(</tt><tt>make distclean &&) ./autogen.sh
        --disable-html-docs --prefix=/home/me/.local && make
        && make install</tt></p>
    <p>and the output of <tt>autoconf</tt> is attached.<br>
    </p>
    <p>Could someone tell me where the problem comes from?<br>
      I first thought I forgot to tell geany something about the lexer,
      but since the crash occurs for any filetype, I'm no longer sure
      this is the problem.<br>
      An since my knowledge in C++ development is limited, I don't know
      how I could build geany in debug mode to track the problem...</p>
    <p>Any help appreciated!<br>
    </p>
    <p>Best regards,</p>
    <p>Tanguy<br>
    </p>
  </body>
</html>