darkdragon-001 / gedit-markdown

Markdown preview for gedit
GNU General Public License v3.0
4 stars 1 forks source link

gedit aborts with core dump when trying to use markdown #2

Open KCulture opened 4 years ago

KCulture commented 4 years ago

@darkdragon-001 I am using gedit 3.28.1 in ubuntu 18.04 all seems to work okay until I try to use markdown feature Toggle Markdown Preview visibility. At this point the gedit crashes with an abort core dump. I am not able to view any logs so that is the limited information that I have..

information about software I have installed Ubuntu 18.04 gedit 3.28.1 gir1.2-webkit-4.0 python3-markdown

I didn't not install the recommended PyMdown Extensions because I am not interested in installing pip.

darkdragon-001 commented 4 years ago

What is your config ~/.config/gedit/markdown-preview/preferences.ini?

You can start gedit from the console. There should be a stack trace printed to the console when a core dump occurs.

InonS commented 3 years ago

Reproduceable on master.

Traceback:

Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/latex/tabdecorator.py", line 87, in _on_load
    self._adjust_editor()
  File "/usr/lib/gedit/plugins/latex/tabdecorator.py", line 107, in _adjust_editor
    location = self._text_buffer.get_location()
AttributeError: 'Document' object has no attribute 'get_location'
Aborted (core dumped)

Preference file:

$ cat ~/.config/gedit/markdown-preview/preferences.ini 
[markdown-preview]
panel = bottom
shortcut = <Control><Alt>m
extensions = extra toc
visibility = 0
visibilityShortcut = <Control><Alt>v
autoIdle = 250
autoReloadActivate = 1
autoReloadOpen = 1
autoReloadSave = 1
autoReloadTabs = 0
autoReloadEdit = 1
autoReloadSelection = 0

System: Ubuntu 20.04

$ gedit --version
gedit - Version 3.36.2

gir1.2-webkit2-4.0 python3-markdown/focal,focal,now 3.1.1-3 all

KCulture commented 3 years ago

@darkdragon-001 unfortunately I only got Aborted (core dumped) in my console