[Cin] Got cingg running on termux!

Andrew Randrianasulu randrianasulu at gmail.com
Tue May 18 08:09:54 CEST 2021


On Monday, May 17, 2021, Andrew Randrianasulu <randrianasulu at gmail.com>
wrote:

>
>
> On Monday, May 17, 2021, Andrew Randrianasulu <randrianasulu at gmail.com>
> wrote:
>
>>
>>
>> On Monday, May 17, 2021, Phyllis Smith via Cin <
>> cin at lists.cinelerra-gg.org> wrote:
>>
>>>
>>>
>>> Andrew, I will send the updated files to include batchrender.rc to your
>>> gmail account (too big to send here).
>>> Now when I run: ./cin -r /tmp/batchrender.rc  it works for me.
>>>
>>
>> sadly segfaults here (after i replaced /tmp/ path with local directory
>> path.. termux thing)
>>
>>
>> ===
>> rm batch.mp4
>> $ LD_PRELOAD=$PREFIX/lib/libandroid-shmem.so
>> ~/cingg/cinelerra/cinelerra-5.1/bin/cin -r batchrender.rc
>> Cinelerra Infinity - built: May 15 2021 17:34:36
>> git://git.cinelerra-gg.org/goodguy/cinelerra.git
>> (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams
>> 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy
>> Cinelerra is free software, covered by the GNU General Public License,
>> and you are welcome to change it and/or distribute copies of it under
>> certain conditions. There is absolutely no warranty for Cinelerra.
>>
>> Render::run: matrixbench.xml
>> ** segv at 0x0 in pid 8751, tid 8751
>> created on Mon May 17 19:28:52 2021
>>         by 10116:10116 u0_a116(*)
>>
>> OS:
>>
>> CPUS: 8
>>
>> CPUINFO:
>> processor : 0
>> model name : ARMv8 Processor rev 4 (v8l)
>> BogoMIPS : 26.00
>> Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
>> lpae evtstrm aes pmull sha1 sha2 crc32
>> CPU implementer : 0x41
>> CPU architecture: 8
>> CPU variant : 0x0
>> CPU part : 0xd03
>> CPU revision : 4
>>
>> processor : 1
>> model name : ARMv8 Processor rev 4 (v8l)
>> BogoMIPS : 26.00
>> Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
>> lpae evtstrm aes pmull sha1 sha2 crc32
>> CPU implementer : 0x41
>> CPU architecture: 8
>> CPU variant : 0x0
>> CPU part : 0xd03
>> CPU revision : 4
>>
>> processor : 2
>> model name : ARMv8 Processor rev 4 (v8l)
>> BogoMIPS : 26.00
>> Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
>> lpae evtstrm aes pmull sha1 sha2 crc32
>> CPU implementer : 0x41
>> CPU architecture: 8
>> CPU variant : 0x0
>> CPU part : 0xd03
>> CPU revision : 4
>>
>> processor : 3
>> model name : ARMv8 Processor rev 4 (v8l)
>>
>> THREADS:
>> thread 0x0000ea665230, owner 0x0000f4ba2fc0, 10DirectUnit
>> thread 0x0000ea766230, owner 0x0000f4ba2fc0, 10DirectUnit
>> thread 0x0000ea867230, owner 0x0000f4ba2fc0, 10DirectUnit
>> thread 0x0000ea968230, owner 0x0000f4ba2fc0, 10DirectUnit
>> thread 0x0000eaa69230, owner 0x0000f4ba2fc0, 10DirectUnit
>> thread 0x0000eab6a230, owner 0x0000f4ba2fc0, 10DirectUnit
>> thread 0x0000eac6b230, owner 0x0000f4ba2fc0, 10DirectUnit
>> thread 0x0000ead6c230, owner 0x0000f4ba2fc0, 10DirectUnit
>> thread 0x0000eae6d230, owner 0x0000f4ba2fc0, 18TitleTranslateUnit
>> thread 0x0000eaf6e230, owner 0x0000f4ba2fc0, 18TitleTranslateUnit
>> thread 0x0000eb06f230, owner 0x0000f4ba2fc0, 18TitleTranslateUnit
>> thread 0x0000eb170230, owner 0x0000f4ba2fc0, 18TitleTranslateUnit
>> thread 0x0000eb271230, owner 0x0000f4ba2fc0, 18TitleTranslateUnit
>> thread 0x0000eb372230, owner 0x0000f4ba2fc0, 18TitleTranslateUnit
>> thread 0x0000eb473230, owner 0x0000f4ba2fc0, 18TitleTranslateUnit
>> thread 0x0000eb574230, owner 0x0000f4ba2fc0, 18TitleTranslateUnit
>> thread 0x0000eb675230, owner 0x0000f4ba2fc0, 9TitleUnit
>> thread 0x0000eb776230, owner 0x0000f4ba2fc0, 9TitleUnit
>> thread 0x0000eb877230, owner 0x0000f4ba2fc0, 9TitleUnit
>> thread 0x0000eb978230, owner 0x0000f4ba2fc0, 9TitleUnit
>> thread 0x0000eba79230, owner 0x0000f4ba2fc0, 9TitleUnit
>> thread 0x0000ebb7a230, owner 0x0000f4ba2fc0, 9TitleUnit
>> thread 0x0000ebc7b230, owner 0x0000f4ba2fc0, 9TitleUnit
>> thread 0x0000ebd7c230, owner 0x0000f4ba2fc0, 9TitleUnit
>> thread 0x0000ebf75230, owner 0x0000f4ba2fc0, 9GlyphUnit
>> thread 0x0000ec076230, owner 0x0000f4ba2fc0, 9GlyphUnit
>> thread 0x0000ec177230, owner 0x0000f4ba2fc0, 9GlyphUnit
>> thread 0x0000ec278230, owner 0x0000f4ba2fc0, 9GlyphUnit
>> thread 0x0000ec379230, owner 0x0000f4ba2fc0, 9GlyphUnit
>> thread 0x0000ec47a230, owner 0x0000f4ba2fc0, 9GlyphUnit
>> thread 0x0000ec57b230, owner 0x0000f4ba2fc0, 9GlyphUnit
>> thread 0x0000ec67c230, owner 0x0000f4ba2fc0, 9GlyphUnit
>> thread 0x0000ed1fc230, owner 0x0000f4ba2fc0, 10FileThread
>> thread 0x0000ed2fd230, owner 0x0000f4ba2fc0, 10FileThread
>> thread 0x0000ed53e230, owner 0x0000f4ba2fc0, 6FFMPEG
>>
>> TRACES:
>>
>> LOCKS:
>> signal_entry: lock table size=37
>>     0xf31b2480 FileThread::output_lock, FileThread::run 1 0xed2fd230
>>     0xf31b5600 LoadClient::input_lock, LoadClient::run 0xec278230
>>     0xf31b5640 LoadClient::input_lock, LoadClient::run 0xec177230
>>     0xf31b56c0 LoadClient::input_lock, LoadClient::run 0xebf75230
>>     0xf31b5580 LoadClient::input_lock, LoadClient::run 0xec47a230
>>     0xf31b5540 LoadClient::input_lock, LoadClient::run 0xec57b230
>>     0xf31b5500 LoadClient::input_lock, LoadClient::run 0xec67c230
>>     0xf31b55c0 LoadClient::input_lock, LoadClient::run 0xec379230
>>     0xf31b5680 LoadClient::input_lock, LoadClient::run 0xec076230
>>     0xf31b60a0 LoadClient::input_lock, LoadClient::run 0xeb978230
>>     0xf31b5fa0 LoadClient::input_lock, LoadClient::run 0xebd7c230
>>     0xf31b6020 LoadClient::input_lock, LoadClient::run 0xebb7a230
>>     0xf31b5fe0 LoadClient::input_lock, LoadClient::run 0xebc7b230
>>     0xf31b60e0 LoadClient::input_lock, LoadClient::run 0xeb877230
>>     0xf31b6120 LoadClient::input_lock, LoadClient::run 0xeb776230
>>     0xf31b6060 LoadClient::input_lock, LoadClient::run 0xeba79230
>>     0xf31b6160 LoadClient::input_lock, LoadClient::run 0xeb675230
>>     0xf31b6380 LoadClient::input_lock, LoadClient::run 0xeae6d230
>>     0xf31b6340 LoadClient::input_lock, LoadClient::run 0xeaf6e230
>>     0xf31b61c0 LoadClient::input_lock, LoadClient::run 0xeb574230
>>     0xf31b6300 LoadClient::input_lock, LoadClient::run 0xeb06f230
>>     0xf31b6240 LoadClient::input_lock, LoadClient::run 0xeb372230
>>     0xf31b6200 LoadClient::input_lock, LoadClient::run 0xeb473230
>>     0xf31b6280 LoadClient::input_lock, LoadClient::run 0xeb271230
>>     0xf31b62c0 LoadClient::input_lock, LoadClient::run 0xeb170230
>>     0xf31b6620 LoadClient::input_lock, LoadClient::run 0xea867230
>>     0xf31b65a0 LoadClient::input_lock, LoadClient::run 0xeaa69230
>>     0xf31b6660 LoadClient::input_lock, LoadClient::run 0xea766230
>>     0xf31b6560 LoadClient::input_lock, LoadClient::run 0xeab6a230
>>     0xf31b6520 LoadClient::input_lock, LoadClient::run 0xeac6b230
>>     0xf31b65e0 LoadClient::input_lock, LoadClient::run 0xea968230
>>     0xf31b66c0 LoadClient::input_lock, LoadClient::run 0xea665230
>>     0xf31b64e0 LoadClient::input_lock, LoadClient::run 0xead6c230
>>     0xf31b2540 FileThread::output_lock, FileThread::run 1 0xed1fc230
>>     0xf31b2b40 FFMPEG::mux_lock, FFMPEG::run 0xed53e230
>> lock_items: 35
>> lock_frees: 2
>>
>> BUFFERS:
>>
>> SHMMEM:
>>
>> MAIN HOOK:
>>
>> EDL:
>> Segmentation fault
>> $
>>
>> ===
>>
>
> a bit more on segfault, it happen in audio processing part....
>
> ====
> batch.mp4 batchrender.rc matrixbench.mov matrixbench.xml
> $ rm batch.mp4
>  $ LD_PRELOAD=$PREFIX/lib/libandroid-shmem.so gdb
> ~/cingg/cinelerra/cinelerra-5.1/bin/cin
> GNU gdb (GDB) 10.1 Copyright (C) 2020 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.
> html> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> Type "show copying" and "show warranty" for details.
> This GDB was configured as "arm-linux-androideabi". Type "show
> configuration" for configuration details.
> For bug reporting instructions, please see:
> <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other
> documentation resources online at:
>     <http://www.gnu.org/software/gdb/documentation/>.
>                                                                        For
> help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /data/data/com.termux/files/home/cingg/cinelerra/cinelerra-5.1/bin/cin...
> (No debugging symbols found in /data/data/com.termux/files/
> home/cingg/cinelerra/cinelerra-5.1/bin/cin)
> (gdb) run -r batchrender.rc
> Starting program: /data/data/com.termux/files/home/cingg/cinelerra/cinelerra-5.1/bin/cin
> -r batchrender.rc Cinelerra Infinity - built: May 15 2021 17:34:36 git://
> git.cinelerra-gg.org/goodguy/cinelerra.git
> (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams
> 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy
> Cinelerra is free software, covered by the GNU General Public License,
> and you are welcome to change it and/or distribute copies of it under
> certain conditions. There is absolutely no warranty for Cinelerra.
>
>  [Detaching after vfork from child process 18730]
> Render::run: matrixbench.xml
> [New LWP 18733] [New LWP 18734]
> [New LWP 18735] [New LWP 18736]
> [New LWP 18739] [New LWP 18740]
> [New LWP 18741] [New LWP 18742]
> [New LWP 18743] [New LWP 18744]
> [New LWP 18745] [New LWP 18746] [New LWP 18747] [New LWP 18748]
> [New LWP 18749] [New LWP 18750]
> [New LWP 18751] [New LWP 18752]
> [New LWP 18753] [New LWP 18754]
> [New LWP 18755] [New LWP 18756]
> [New LWP 18757] [New LWP 18758]
> [New LWP 18759] [New LWP 18760]
> [New LWP 18761] [New LWP 18762]
> [New LWP 18763] [New LWP 18764]
> [New LWP 18765] [New LWP 18766]
> [New LWP 18767] [New LWP 18768]
> [New LWP 18769] [New LWP 18770]
> [New LWP 18771] [New LWP 18772]
> [New LWP 18773] [New LWP 18774]
> [New LWP 18775] [New LWP 18776]
> [New LWP 18777] [New LWP 18778]
> [New LWP 18779] [New LWP 18780]
> [New LWP 18781] [New LWP 18782]
> [New LWP 18783] [New LWP 18784]
> [New LWP 18785] [New LWP 18786]
> [New LWP 18787] [New LWP 18788]
> [New LWP 18789] [New LWP 18790]
> [New LWP 18791] --Type <RET> for more, q to quit, c to continue without
> paging--
>
> Thread 1 "cin" received signal SIGSEGV, Segmentation fault.
> 0x00b374c8 in VirtualANode::render_pan(double*, double*, long long, long
> long, long long, Autos*, int, int, int) () (gdb) bt full
> #0 0x00b374c8 in VirtualANode::render_pan(double*, double*, long long,
> long long, long long, Autos*, int, int, int) ()
> No symbol table info available. #1 0x00b36ec0 in VirtualANode::render_as_module(Samples**,
> Samples*, long long, long long, long long) ()
> No symbol table info available. #2 0x00b369ac in
> VirtualANode::render(Samples*, long long, long long, long long) ()
> No symbol table info available. #3 0x00b36018 in VirtualAConsole::process_buffer(long
> long, long long) ()
> No symbol table info available. #4 0x008fb8f8 in ARender::process_buffer(Samples**,
> long long, long long) () No symbol table info available. #5 0x00a710f0 in
> PackageRenderer::do_audio() ()
> No symbol table info available.
> #6 0x00a71cd8 in PackageRenderer::render_package(RenderPackage*) () No
> symbol table info available.
> #7 0x00ace320 in RenderThread::render_single(int, Asset*, EDL*, int, int)
> () No symbol table info available.
> #8 0x00ace8f0 in RenderThread::run() ()
> No symbol table info available. #9 0x0092818c in BatchRenderThread::start_rendering(char*,
> char*) ()
> No symbol table info available.
> #10 0x00a23058 in main () No symbol table info available.
> (gdb) q
> A debugging session is active.
>         Inferior 1 [process 18727] will be killed.
>
>  Quit anyway? (y or n) y
> $
>

valgrind report:


==18973== by 0x7A1BE7: PluginServer::read_frame(VFrame*, int, long long,
double, int) (pluginserver.C:878) ==18973== by 0x7A4BAF: read_frame
(pluginvclient.C:293) ==18973== by 0x7A4BAF:
PluginVClient::process_buffer(VFrame*, long long, double)
(pluginvclient.C:180)

 ==18973== VirtualANode::render_pan 3 0 32000 0.000000 0x4d8e000 0x5612000
==18973== Invalid read of size 8
 ==18973== at 0x83F54C: VirtualANode::render_pan(double*, double*, long
long, long long, long long, Autos*, int, int, int) (virtualanode.C:480)
 ==18973== by 0x83EEFF: VirtualANode::render_as_module(Samples**, Samples*,
long long, long long, long long) (virtualanode.C:344)
 ==18973== by 0x83E9EB: VirtualANode::render(Samples*, long long, long
long, long long) (virtualanode.C:176)
 ==18973== by 0x83E057: VirtualAConsole::process_buffer(long long, long
long) (virtualaconsole.C:136)
 ==18973== by 0x603937: process_buffer (arender.C:210) ==18973== by
0x603937: ARender::process_buffer(Samples**, long long, long long)
(arender.C:189)
 ==18973== by 0x77912F: PackageRenderer::do_audio() (packagerenderer.C:305)
 ==18973== by 0x779D17: PackageRenderer::render_package(RenderPackage*)
(packagerenderer.C:552)
 ==18973== by 0x7D635F: RenderThread::render_single(int, Asset*, EDL*, int,
int) (render.C:808)
 ==18973== by 0x7D692F: RenderThread::run() (render.C:924) ==18973== by
0x6301CB: BatchRenderThread::start_rendering(char*, char*)
(batchrender.C:634)
 ==18973== by 0x72B097: main (main.C:357)
 ==18973== Address 0x5612000 is not stack'd, malloc'd or (recently) free'd
==18973== ** segv at 0x0 in pid 18973, tid 18973 created on Tue May 18
08:58:50 2021 by 10116:10116 u0_a116(*) OS: CPUS: 8 CPUINFO: processor : 0
model name : ARMv8 Processor rev 4 (v8l) BogoMIPS : 26.00 Features : half
thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes
pmull sha1 sha2 crc32 CPU implementer : 0x41 CPU architecture: 8 CPU
variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 1 model name :
ARMv8 Processor rev 4 (v8l) BogoMIPS : 26.00 Features : half thumb fastmult
vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2
crc32 CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part
: 0xd03 CPU revision : 4 processor : 2 model name : ARMv8 Processor rev 4
(v8l) BogoMIPS : 26.00 Features : half thumb fastmult vfp edsp neon vfpv3
tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32 CPU
implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03
CPU revision : 4 processor : 3 model name : ARMv8 Processor rev 4 (v8l)
THREADS: thread 0x00000ec8c230, owner 0x0000040c3fc0, 10DirectUnit thread
0x00000eb8b230, owner 0x0000040c3fc0, 10DirectUnit thread 0x00000ea8a230,
owner 0x0000040c3fc0, 10DirectUnit thread 0x00000e989230, owner
0x0000040c3fc0, 10DirectUnit thread 0x00000e888230, owner 0x0000040c3fc0,
10DirectUnit thread 0x00000e787230, owner 0x0000040c3fc0, 10DirectUnit
thread 0x00000e686230, owner 0x0000040c3fc0, 10DirectUnit
thread 0x00000e585230, owner 0x0000040c3fc0, 10DirectUnit
thread 0x00000e484230, owner 0x0000040c3fc0, 9GlyphUnit
thread 0x00000e383230, owner 0x0000040c3fc0, 9GlyphUnit thread
0x00000e282230, owner 0x0000040c3fc0, 9GlyphUnit thread 0x00000e181230,
owner 0x0000040c3fc0, 9GlyphUnit thread 0x00000e080230, owner
0x0000040c3fc0, 9GlyphUnit thread 0x00000df7f230, owner 0x0000040c3fc0,
9GlyphUnit thread 0x00000de7e230, owner 0x0000040c3fc0, 9GlyphUnit thread
0x00000dd7d230, owner 0x0000040c3fc0, 9GlyphUnit thread 0x00000d2fd230,
owner 0x0000040c3fc0, 10FileThread thread 0x00000d1fc230, owner
0x0000040c3fc0, 10FileThread thread 0x00000cf7f230, owner 0x0000040c3fc0,
6FFMPEG TRACES: LOCKS: signal_entry: lock table size=21
    0x5a902c0 FileThread::output_lock, FileThread::run 1 0xd1fc230
0x5afeec0 LoadClient::input_lock, LoadClient::run 0xde7e230 0x5afef00
LoadClient::input_lock, LoadClient::run 0xdf7f230 0x5afef40
LoadClient::input_lock, LoadClient::run 0xe080230 0x614c040
LoadClient::input_lock, LoadClient::run 0xe484230
    0x5afefc0 LoadClient::input_lock, LoadClient::run 0xe282230 0x5afef80
LoadClient::input_lock, LoadClient::run 0xe181230 0x614c000
LoadClient::input_lock, LoadClient::run 0xe383230 0x5afee80
LoadClient::input_lock, LoadClient::run 0xdd7d230 0x614c0c0
LoadClient::input_lock, LoadClient::run 0xe686230 0x614c180
LoadClient::input_lock, LoadClient::run 0xe989230 0x614c240
LoadClient::input_lock, LoadClient::run 0xec8c230 0x614c100
LoadClient::input_lock, LoadClient::run 0xe787230 0x614c200
LoadClient::input_lock, LoadClient::run 0xeb8b230 0x614c080
LoadClient::input_lock, LoadClient::run 0xe585230 0x614c1c0
LoadClient::input_lock, LoadClient::run 0xea8a230 0x614c140
LoadClient::input_lock, LoadClient::run 0xe888230
    0x5a90380 FileThread::output_lock, FileThread::run 1 0xd2fd230
0x5a90ac0 FFMPEG::mux_lock, FFMPEG::run 0xcf7f230 lock_items: 19
lock_frees: 2 BUFFERS: SHMMEM: MAIN HOOK:
                                                                       EDL:
==18973== Invalid read of size 4 ==18973== at 0x63026C:
BatchRenderThread::trap_hook(__sFILE*, void*) (batchrender.C:727) ==18973==
by 0x8D4227: handle_dump(int, siginfo*, void*) (bcsignals.C:542) ==18973==
by 0x5317D93: ??? (in /apex/com.android.runtime/lib/bionic/libc.so)
==18973== Address 0xe8 is not stack'd, malloc'd or (recently) free'd
==18973== ==18973==
==18973== Process terminating with default action of signal 11 (SIGSEGV)
==18973== Access not within mapped region at address 0xE8 ==18973== at
0x63026C: BatchRenderThread::trap_hook(__sFILE*, void*) (batchrender.C:727)
==18973== by 0x8D4227: handle_dump(int, siginfo*, void*) (bcsignals.C:542)
==18973== by 0x5317D93: ??? (in
/apex/com.android.runtime/lib/bionic/libc.so) ==18973== If you believe this
happened as a result of a stack ==18973== overflow in your program's main
thread (unlikely but ==18973== possible), you can try to increase the size
of the ==18973== main thread stack using the --main-stacksize= flag.
==18973== The main thread stack size used in this run was 8388608.
==18973== ==18973== HEAP SUMMARY: ==18973== in use at exit: 0 bytes in 0
blocks ==18973== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==18973== ==18973== All heap blocks were freed -- no leaks are possible
==18973== ==18973== Use --track-origins=yes to see where uninitialised
values come from ==18973== For lists of detected and suppressed errors,
rerun with: -s ==18973== ERROR SUMMARY: 1294037 errors from 82 contexts
(suppressed: 0 from 0) Segmentation fault $




>
>
>
>
>
>
>>
>>>
>>>>>> Anyone can provide me with simplest project based on
>>>>>> samples.mplayerhq.hu / matrixbench? so at least i'll try to test
>>>>>> non-gui rendering....
>>>>>>
>>>>> I sent matrixbench.tar consisting of matrix.xml file which use a small
>>>>> matrixbench.mov input file to your google email account.  Is this
>>>>> what you need?
>>>>>
>>>>
>>>>
>>>> i think i also need batchrender.rc.... for use with '-r' option {i
>>>> can't set up batchrender yet due to my display problem}
>>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20210518/4a0b8fe4/attachment-0001.htm>


More information about the Cin mailing list