WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: geany crashes while coding python  (Read 1331 times)

Offline saladin

  • Jr. Member
  • **
  • Posts: 61
geany crashes while coding python
« on: February 24, 2023, 10:28:50 AM »
Geany 1.24.1, 4.19.10-tinycore64

Every time I type the words "post", "open", "user", and "remo" (first four letters of "remove") in a python document, geany crashes as I type the final letter. I can type those words just fine in a plain text document in geany. I can also type any parts of those words, like "ost" and "pen" just fine. I can also type them as part of a longer word, like "sdfgsopen", and I can even delete the first part so it says only "open". But I can't just *type* "open" or geany crashes.

I've used geany for 13 years with no issue until now. Does anyone know what's going on here?

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: geany crashes while coding python
« Reply #1 on: February 24, 2023, 10:50:22 AM »
Hi saladin. It sounds like geany is crashing when it tries to show you an autocomplete menu.

I cannot reproduce the crash on my system. I'm on TCL14-alpha 64-bit using the geany extension from the TCL repository (version 1.37).

As a workaround, disabling the autocomplete menu should stop the crashes. Open up geany, then:

Edit -> Preferences -> Editor -> Completions -> unckeck "Autocomplete symbols" -> Apply -> OK


« Last Edit: February 24, 2023, 10:54:18 AM by GNUser »

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: geany crashes while coding python
« Reply #2 on: February 24, 2023, 11:29:05 AM »
You didn't mention what version of TCL you are using but, based on the kernel and geany versions, it sounds like you're on TCL10 64-bit.

Note the geany version (1.24.1, compiled in 2015) and gtk3 version (3.22.30, compiled in 2018) in the TCL10 64-bit repository. My guess is that gtk3 changed the API for drawing the autocomplete menu sometime between 2015 and 2018.

If you are married to TCL10 for some reason, recompiling geany using gtk3-dev from the TCL10 64-bit repository would probably fix the issue. Short of that, my workaround (see my previous post) should work.
« Last Edit: February 24, 2023, 11:30:53 AM by GNUser »

Offline saladin

  • Jr. Member
  • **
  • Posts: 61
Re: geany crashes while coding python
« Reply #3 on: February 24, 2023, 12:46:42 PM »
Yes, thank you very much! That solved the problem!