[Cin] Fwd: cingg: possible crash with undo on nested session

Andrew Randrianasulu randrianasulu at gmail.com
Sat Nov 12 23:39:36 CET 2022


---------- Forwarded message ---------
От: Андрей Рандрианасулу <randrik at mail.ru>
Date: вс, 13 нояб. 2022 г., 01:35
Subject: cingg: possible crash with undo on nested session
To: randrianasulu <randrianasulu at gmail.com>


Steps:

Load 1 video, 2 audio tracks video into Cingg with Overwrite current
project mode
Modify video fade slider down
Save xml  for future nested use
Open another image, so it will overwrite proj to single video track
Add video track
Open previously saved xml as nested , in resources only.
Drag nested edl to top empty video track

(where is alpha?)

click once on ‘output this track’ toggle on bottom video track's pathbay
click on same toggle in pathbay second time.
Undo (‘z’)

at this point it crashed for me

I’ll  attach three patches I made trying to debug this — they do not fix
THE crash but make backtrace less scary

gdb.txt also attached

--
Андрей  Рандрианасулу
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20221113/a17200e2/attachment-0001.htm>
-------------- next part --------------
Starting program: /dev/shm/cinelerra/cinelerra-5.1/bin/cin 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0xe88aeb00 (LWP 19150)]
[New Thread 0xe80adb00 (LWP 19151)]
[New Thread 0xe78acb00 (LWP 19152)]
[New Thread 0xe6cffb00 (LWP 19153)]
[New Thread 0xe62feb00 (LWP 19154)]
[New Thread 0xe5afdb00 (LWP 19155)]
[New Thread 0xe50ffb00 (LWP 19156)]
[New Thread 0xe46ffb00 (LWP 19157)]
[New Thread 0xe3bbeb00 (LWP 19158)]
[Thread 0xe46ffb00 (LWP 19157) exited]
[Thread 0xe50ffb00 (LWP 19156) exited]
[Thread 0xe5afdb00 (LWP 19155) exited]
[Thread 0xe62feb00 (LWP 19154) exited]
[Thread 0xe78acb00 (LWP 19152) exited]
[Thread 0xe80adb00 (LWP 19151) exited]
[Thread 0xe88aeb00 (LWP 19150) exited]
[Thread 0xe6cffb00 (LWP 19153) exited]
[Thread 0xe3bbeb00 (LWP 19158) exited]
[New Thread 0xe3bbeb00 (LWP 19159)]
[Detaching after vfork from child process 19161]
[New Thread 0xe6cffb00 (LWP 19163)]
[New Thread 0xe78acb00 (LWP 19164)]
[New Thread 0xe80adb00 (LWP 19165)]
[New Thread 0xe5efeb00 (LWP 19166)]
[New Thread 0xe50ffb00 (LWP 19167)]
[New Thread 0xe46ffb00 (LWP 19168)]
[New Thread 0xe33bdb00 (LWP 19169)]
[New Thread 0xe2bbcb00 (LWP 19170)]
[New Thread 0xe23bbb00 (LWP 19171)]
[New Thread 0xe1bbab00 (LWP 19172)]
[New Thread 0xe13b9b00 (LWP 19173)]
[New Thread 0xe0bb8b00 (LWP 19174)]
[New Thread 0xe03b7b00 (LWP 19175)]
[New Thread 0xdfbb6b00 (LWP 19176)]
[New Thread 0xdf3b5b00 (LWP 19177)]
[New Thread 0xdebb4b00 (LWP 19178)]
[New Thread 0xde3b3b00 (LWP 19179)]
[New Thread 0xddbb2b00 (LWP 19180)]
[New Thread 0xdd3b1b00 (LWP 19181)]
[New Thread 0xdcbb0b00 (LWP 19182)]
[New Thread 0xdc3afb00 (LWP 19183)]
[New Thread 0xdbbaeb00 (LWP 19184)]
[New Thread 0xdb3adb00 (LWP 19186)]
[New Thread 0xdabacb00 (LWP 19187)]
[New Thread 0xda3abb00 (LWP 19188)]
[New Thread 0xd9baab00 (LWP 19189)]
[Thread 0xe3bbeb00 (LWP 19159) exited]
[New Thread 0xe3bbeb00 (LWP 19190)]
[New Thread 0xd8ba8b00 (LWP 19192)]
[New Thread 0xd93a9b00 (LWP 19191)]
[New Thread 0xd83a7b00 (LWP 19193)]
[New Thread 0xd73a5b00 (LWP 19195)]
[New Thread 0xd7ba6b00 (LWP 19194)]
[New Thread 0xd6ba4b00 (LWP 19196)]
[New Thread 0xd5ba2b00 (LWP 19198)]
[New Thread 0xd63a3b00 (LWP 19197)]
[New Thread 0xd53a1b00 (LWP 19199)]
[New Thread 0xd4ba0b00 (LWP 19200)]
[New Thread 0xd439fb00 (LWP 19201)]
[New Thread 0xd3b9eb00 (LWP 19202)]
[New Thread 0xd339db00 (LWP 19203)]
[New Thread 0xd2b9cb00 (LWP 19204)]
[New Thread 0xd239bb00 (LWP 19231)]
[New Thread 0xd1b9ab00 (LWP 19232)]
[New Thread 0xd1399b00 (LWP 19233)]
[New Thread 0xd0b98b00 (LWP 19234)]
[New Thread 0xd0397b00 (LWP 19235)]
[New Thread 0xcfb96b00 (LWP 19236)]
[New Thread 0xcf395b00 (LWP 19237)]
[New Thread 0xceb94b00 (LWP 19238)]
[New Thread 0xce393b00 (LWP 19239)]
[New Thread 0xcdb92b00 (LWP 19240)]
[New Thread 0xcd391b00 (LWP 19241)]
[New Thread 0xccb90b00 (LWP 19242)]
[New Thread 0xcc38fb00 (LWP 19243)]
[New Thread 0xcbb8eb00 (LWP 19244)]
[New Thread 0xcb38db00 (LWP 19245)]
[Thread 0xcfb96b00 (LWP 19236) exited]
[Thread 0xd0397b00 (LWP 19235) exited]
[New Thread 0xd0397b00 (LWP 19247)]
[New Thread 0xcfb96b00 (LWP 19248)]
[Thread 0xcfb96b00 (LWP 19248) exited]
[Thread 0xd0397b00 (LWP 19247) exited]
[New Thread 0xd0397b00 (LWP 19249)]
[New Thread 0xcfb96b00 (LWP 19250)]
[Thread 0xcfb96b00 (LWP 19250) exited]
[Thread 0xd0397b00 (LWP 19249) exited]
[Thread 0xd1399b00 (LWP 19233) exited]
[Thread 0xd0b98b00 (LWP 19234) exited]
[Thread 0xd1b9ab00 (LWP 19232) exited]
[Thread 0xd239bb00 (LWP 19231) exited]
[New Thread 0xd0397b00 (LWP 19252)]
[New Thread 0xd239bb00 (LWP 19253)]
[Thread 0xd239bb00 (LWP 19253) exited]
[Thread 0xd0397b00 (LWP 19252) exited]
[New Thread 0xd239bb00 (LWP 19256)]
[New Thread 0xd1b9ab00 (LWP 19257)]
[New Thread 0xd0b98b00 (LWP 19258)]
[New Thread 0xd1399b00 (LWP 19259)]
[Thread 0xd0b98b00 (LWP 19258) exited]
[Thread 0xd1399b00 (LWP 19259) exited]
[New Thread 0xd0397b00 (LWP 19263)]
[New Thread 0xd1399b00 (LWP 19264)]
[Thread 0xd1399b00 (LWP 19264) exited]
[Thread 0xd0397b00 (LWP 19263) exited]
[Thread 0xd1b9ab00 (LWP 19257) exited]
[Thread 0xd239bb00 (LWP 19256) exited]
[New Thread 0xd1b9ab00 (LWP 19266)]
[New Thread 0xd239bb00 (LWP 19265)]
[New Thread 0xd0397b00 (LWP 19268)]
[Thread 0xd0397b00 (LWP 19268) exited]
[Thread 0xd239bb00 (LWP 19265) exited]
[New Thread 0xd0397b00 (LWP 19269)]
[New Thread 0xd1399b00 (LWP 19270)]
[New Thread 0xc3b1ab00 (LWP 19271)]
[New Thread 0xc3319b00 (LWP 19272)]
[Thread 0xd1399b00 (LWP 19270) exited]
[Thread 0xd0397b00 (LWP 19269) exited]
[Thread 0xc3b1ab00 (LWP 19271) exited]
[Thread 0xc3319b00 (LWP 19272) exited]
[New Thread 0xc3319b00 (LWP 19275)]
[Detaching after vfork from child process 19276]
[New Thread 0xc3b1ab00 (LWP 19278)]
[Thread 0xc3b1ab00 (LWP 19278) exited]
[Thread 0xc3319b00 (LWP 19275) exited]
[New Thread 0xd239bb00 (LWP 19282)]
[New Thread 0xc3319b00 (LWP 19283)]
[Thread 0xc3319b00 (LWP 19283) exited]
[Thread 0xd239bb00 (LWP 19282) exited]
[New Thread 0xc3319b00 (LWP 19284)]
[New Thread 0xc3b1ab00 (LWP 19285)]
[New Thread 0xd1399b00 (LWP 19286)]
[New Thread 0xc2b18b00 (LWP 19287)]
[New Thread 0xd239bb00 (LWP 19290)]
[New Thread 0xc036fb00 (LWP 19291)]
[Thread 0xc036fb00 (LWP 19291) exited]
[Thread 0xd239bb00 (LWP 19290) exited]
[New Thread 0xd239bb00 (LWP 19292)]
[New Thread 0xc036fb00 (LWP 19293)]
[Thread 0xc036fb00 (LWP 19293) exited]
[Thread 0xd239bb00 (LWP 19292) exited]
[New Thread 0xd239bb00 (LWP 19294)]
[New Thread 0xc036fb00 (LWP 19295)]
[Thread 0xc036fb00 (LWP 19295) exited]
[Thread 0xd239bb00 (LWP 19294) exited]
[New Thread 0xd239bb00 (LWP 19296)]
[New Thread 0xc036fb00 (LWP 19297)]
[Thread 0xc036fb00 (LWP 19297) exited]
[Thread 0xd239bb00 (LWP 19296) exited]
[New Thread 0xd239bb00 (LWP 19300)]
[New Thread 0xc036fb00 (LWP 19301)]
[Thread 0xc036fb00 (LWP 19301) exited]
[Thread 0xd239bb00 (LWP 19300) exited]
[New Thread 0xd239bb00 (LWP 19304)]
[New Thread 0xc036fb00 (LWP 19305)]
[Thread 0xc036fb00 (LWP 19305) exited]
[Thread 0xd239bb00 (LWP 19304) exited]
[New Thread 0xd239bb00 (LWP 19306)]
[New Thread 0xc036fb00 (LWP 19307)]
[Thread 0xc036fb00 (LWP 19307) exited]
[Thread 0xd239bb00 (LWP 19306) exited]
[New Thread 0xd239bb00 (LWP 19308)]
[New Thread 0xc036fb00 (LWP 19309)]

Thread 110 "cin" received signal SIGABRT, Aborted.
[Switching to Thread 0xc036fb00 (LWP 19309)]
0xf3c6aa1a in raise () from /lib/libc.so.6
#0  0xf3c6aa1a in raise () at /lib/libc.so.6
#1  0xf3c4e2d5 in abort () at /lib/libc.so.6
#2  0xf3c4e1be in plural_eval.cold () at /lib/libc.so.6
#3  0xf3c61266 in  () at /lib/libc.so.6
#4  0xf5d38d71 in __pthread_tpp_change_priority () at /lib/libpthread.so.0
#5  0xf5d2d358 in __pthread_mutex_lock_full () at /lib/libpthread.so.0
#6  0x086aa8df in Mutex::lock(char const*)
    (this=0xa70efc0, location=0x87da888 "Garbage::add_user") at mutex.C:67
        table_id = 288150
#7  0x0849fa98 in Garbage::add_user() (this=0xa629f00) at garbage.C:54
#8  0x083d96b7 in CICache::check_out(Asset*, EDL*, int) (this=0xa629f00, asset=
    0xe6f3aee0, edl=0xe6f2e230, block=1) at cache.C:75
        current = 0x0
        tid = 3224828672
#9  0x085e5438 in VModule::import_frame(VFrame*, VEdit*, long long, double, int, int) (this=0xe6f43fa0, output=0xe6f45b80, current_edit=
    0xe6f3d960, input_position=40, frame_rate=29.970029970029969, direction=0, use_opengl=<optimized out>) at vmodule.C:222
        file = 0x0
        direction_position = 40
        in_x = 0
        in_y = 0
        in_w = 0
        in_h = 0
        out_x = 0
        out_y = 0
        out_w = 0
        out_h = 0
        result = 0
        edl_rate = 29.970029970029969
        input_position_project = 40
        x11_device = <optimized out>
#10 0x085e67e6 in VModule::render(VFrame*, long long, int, double, int, int, int)
    (this=0xe6f43fa0, output=0xe6f45b80, start_position=40, direction=0, frame_rate=29.970029970029969, use_nudge=0, debug_render=0, use_opengl=1)
    at vmodule.C:760
        result = 0
        edl_rate = <optimized out>
        start_position_project = <optimized out>
        current_edit = 0xe6f3d960
        previous_edit = 0x0
        transition = 0x0
        __PRETTY_FUNCTION__ = "int VModule::render(VFrame*, int64_t, int, double, int, int, int)"
        current = 0xf3e90f1e <operator delete(void*)+30>
        keyframe_set = <optimized out>
        mask_position = <optimized out>
        keyframe = <optimized out>
#11 0x085e4f7b in VirtualVNode::read_data(VFrame*, long long, double, int)
    (this=
    0xc8de4f30, output_temp=0xe6f45b80, start_position=40, frame_rate=29.970029970029969, use_opengl=1) at virtualvnode.C:141
        previous_plugin = 0x0
        result = 0
        parent_edit = <optimized out>
#12 0x085e4ce4 in VirtualVNode::render_as_module(VFrame*, VFrame*, long long, double, int)
    (this=0xc8de4f30, video_out=0xe6f444d0, output_temp=0xe6f45b80, start_position=40, frame_rate=29.970029970029969, use_opengl=1) at virtualvnode.C:233
        direction = 0
        edl_rate = <optimized out>
        start_position_project = 40
        mute_constant = -1070143528
        mute_fragment = -202830050
#13 0x085e4d76 in VirtualVNode::render(VFrame*, long long, double, int)
    (this=0xc8de4f30, output_temp=0xe6f45b80, start_position=40, frame_rate=29.970029970029969, use_opengl=1) at virtualvnode.C:158
        vrender = <optimized out>
#14 0x085e4341 in VirtualVConsole::process_buffer(long long, int) (this=
    0xe6f43970, input_position=40, use_opengl=1) at virtualvconsole.C:173
        node = 0xc8de4f30
        track = 0xe6f3c900
        result = 0
        session = 0xe6f2eb40
        clr_color = 0
#15 0x085ead6d in VRender::process_buffer(long long, int) (this=
    0xe6f43e30, input_position=40, use_opengl=1) at vrender.C:232
        playable_edit = 0x0
        colormodel = <optimized out>
        use_vconsole = <optimized out>
        use_brender = 0
        result = 0
        use_cache = 1
        debug = 0
#16 0x085eaeba in VRender::process_buffer(VFrame*, long long, int)
    (this=0xe6f43e30, video_out=0xe6f444d0, input_position=40, use_opengl=1)
    at vrender.C:129
        render_len = 1
        reconfigure = <optimized out>
#17 0x085e653c in VModule::import_frame(VFrame*, VEdit*, long long, double, int, int)
    (this=<optimized out>, output=<optimized out>, current_edit=0xa6fc1d0, input_position=37, frame_rate=25, direction=0, use_opengl=<optimized out>)
    at vmodule.C:441
        current_cmodel = 10
        output_h = 587
        input2 = <optimized out>
        nested_cmodel = 10
        output_w = 735
        input = 0xb8fb91d8
        overlayer = <optimized out>
        nested_position = 40
        pos = <optimized out>
        position = 34
        use_cache = 1
        asset_w = <optimized out>
        asset_h = <optimized out>
        len = <optimized out>
        speed_autos = <optimized out>
        video_length = <optimized out>
        input = @0xb8fb91d8: 0xe6f444d0
        file = <optimized out>
        direction_position = <optimized out>
        in_x = 592.5
        in_y = 246.5
        in_w = 735
        in_h = 587
        out_x = 0
        out_y = 0
        out_w = 735
        out_h = 587
        result = <optimized out>
        edl_rate = <optimized out>
        input_position_project = <optimized out>
        x11_device = <optimized out>
#18 0x085e67e6 in VModule::render(VFrame*, long long, int, double, int, int, int)
    (this=0xa73d050, output=0xe4710060, start_position=37, direction=0, frame_rate=25, use_nudge=0, debug_render=0, use_opengl=1) at vmodule.C:760
        result = 0
        edl_rate = <optimized out>
        start_position_project = <optimized out>
        current_edit = 0xa6fc1d0
        previous_edit = 0x0
        transition = 0x0
        __PRETTY_FUNCTION__ = "int VModule::render(VFrame*, int64_t, int, double, int, int, int)"
        current = 0xe4700018
        keyframe_set = <optimized out>
        mask_position = <optimized out>
        keyframe = <optimized out>
#19 0x085e4f7b in VirtualVNode::read_data(VFrame*, long long, double, int)
    (this=0xc5c733e0, output_temp=0xe4710060, start_position=37, frame_rate=25, use_opengl=1) at virtualvnode.C:141
        previous_plugin = 0x0
        result = 0
        parent_edit = <optimized out>
#20 0x085e4ce4 in VirtualVNode::render_as_module(VFrame*, VFrame*, long long, double, int)
    (this=0xc5c733e0, video_out=0xe6f0f590, output_temp=0xe4710060, start_position=37, frame_rate=25, use_opengl=1) at virtualvnode.C:233
        direction = 0
        edl_rate = <optimized out>
        start_position_project = 37
        mute_constant = -1070142648
        mute_fragment = 141251129
#21 0x085e4d76 in VirtualVNode::render(VFrame*, long long, double, int)
    (this=0xc5c733e0, output_temp=0xe4710060, start_position=37, frame_rate=25, use_opengl=1) at virtualvnode.C:158
        vrender = <optimized out>
#22 0x085e4341 in VirtualVConsole::process_buffer(long long, int)
    (this=0x9349820, input_position=37, use_opengl=1) at virtualvconsole.C:173
        node = 0xc5c733e0
        track = 0xa5d3570
        result = 0
        session = 0x928a050
        clr_color = 0
#23 0x085ead6d in VRender::process_buffer(long long, int)
    (this=0xb8fb9160, input_position=37, use_opengl=1) at vrender.C:232
        playable_edit = 0x0
        colormodel = <optimized out>
        use_vconsole = <optimized out>
        use_brender = 0
        result = 0
        use_cache = 1
        debug = 0
#24 0x085eafb7 in VRender::run() (this=<optimized out>) at vrender.C:340
        reconfigure = 0
        current_sample = <optimized out>
        start_sample = <optimized out>
        end_sample = <optimized out>
        skip_countdown = 1
        delay_countdown = 0
        current_input_length = 1
        frame_step = <optimized out>
#25 0x086b0ac3 in Thread::entrypoint(void*) (parameters=0xb8fb9160)
    at thread.C:70
        thread = 0xb8fb9160
#26 0xf5d2b328 in start_thread () at /lib/libpthread.so.0
#27 0xf3d45f06 in clone () at /lib/libc.so.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Some-uninited-variables-in-vmodule.C.patch
Type: application/x-patch
Size: 927 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20221113/a17200e2/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Initalize-double-variable-in-virtualanode.C.patch
Type: application/x-patch
Size: 875 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20221113/a17200e2/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-initialize-yet-another-variable-direction_position-i.patch
Type: application/x-patch
Size: 929 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20221113/a17200e2/attachment-0005.bin>


More information about the Cin mailing list