Re: [code] [textadept] Textadept 11.0 alpha 2

From: Gabriel Dubatti <gdubatti.att.gmail.com>
Date: Tue, 23 Jun 2020 19:30:22 -0300

Hi Mitchell,

I commented a couple of calls I have in my code to buffer:colorize() and
the problem continued.

Then I commented out the call at file_types.lua @ 74 and the issue
disappeared.

I didn't notice any difference in the visualization with and without
calling colorize().

I also noticed that I can trigger this issue more easily by opening a
new view after a reset.

When I reset TA I got this SIGSEGV from time to time (maybe they are
related):

Thread 1 "textadept" received signal SIGSEGV, Segmentation fault.
#0  __GI___libc_free (mem=0xe1) at malloc.c:3102
#1  0x00007ffff4cb10f3 in  () at
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
#2  0x00007ffff4cb1f2d in  () at
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
#3  0x00007ffff7c8cb9b in  () at /lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#4  0x00007ffff7570802 in g_closure_invoke () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#5  0x00007ffff7584814 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#6  0x00007ffff758f45d in g_signal_emit_valist () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#7  0x00007ffff75900d3 in g_signal_emit () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#8  0x00007ffff7da822d in  () at /lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#9  0x00007ffff7c8accc in gtk_propagate_event () at
/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#10 0x00007ffff7c8b0c3 in gtk_main_do_event () at
/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#11 0x00007ffff7af36d0 in  () at /lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#12 0x00007ffff7471fbd in g_main_context_dispatch () at
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff7472240 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007ffff7472533 in g_main_loop_run () at
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007ffff7c8a092 in gtk_main () at
/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#16 0x0000000000716904 in main (argc=1, argv=0x7fffffffe7c8) at
textadept.c:2541
#17 0x00007ffff70c00b3 in __libc_start_main (main=0x7165b4 <main>,
argc=1, argv=0x7fffffffe7c8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffe7b8)
     at ../csu/libc-start.c:308
#18 0x00000000005e7415 in  ()
#19 0x00007fffffffe7b8 in  ()
#20 0x000000000000001c in  ()
#21 0x0000000000000001 in  ()
#22 0x00007fffffffea88 in  ()
#23 0x0000000000000000 in  ()

Cheers,

Gabriel

El 23/6/20 a las 16:34, Mitchell escribió:
> Hi Gabriel,
>
> On Mon, 22 Jun 2020, Gabriel Dubatti wrote:
>
>> Hi Mitchell,
>>
>>     As I mentioned I have some issues running TA on Kubuntu 20.04 when
>> changing views with the mouse or selecting text.
>>
>>     Here is a gdb dump from the nightly version I downloaded yesterday.
>>
>> [snip]
>
> Thanks for this useful dump. It's crashing on a call to
> `buffer:colorize()` in a `events.BUFFER_NEW` handler. Searching
> through Textadept's code base yields a single candidate in
> *modules/textadept/file_types.lua*[1]. If you comment out that line,
> does the crash go away? (Never mind the other potential syntax
> highlighting issues.)
>
> If not, are you using any modules that call `buffer:colorize()` or
> `buffer:colourise()`?
>
> [1]:
> https://foicica.com/hg/textadept/file/8fa6a9852a83/modules/textadept/file_types.lua#l74

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 23 Jun 2020 - 18:30:22 EDT

This archive was generated by hypermail 2.2.0 : Wed 24 Jun 2020 - 06:31:53 EDT