live session hangs on BeginSceneEdit

Discussion related to the LuxCore functionality, implementations and API.
Post Reply
bartek_zgo
Posts: 116
Joined: Mon Oct 26, 2020 11:42 am

live session hangs on BeginSceneEdit

Post by bartek_zgo »

Hi Guys. I'm trying to modify camera in live session. At the beginning it works perfectly but after some time it crash or it hangs. So I created a simple code to stress it. I have found that calling many times BeginSceneEdit and EndSceneEdit makes luxcore crash.
Sometimes instead of crashing, it hangs on BeginSeneEdit(). Any suggestions? Should I wait and check for something after EndSceneEdit()?

Code: Select all

	for(int i = 0; i < 100; i++)
        {
        	pRenderSession->BeginSceneEdit();
                pRenderSession->EndSceneEdit();
        }

Code: Select all

[LuxCore][23.591] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.601] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.612] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.621] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.631] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.641] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.651] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.661] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.671] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.681] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.691] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.700] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.710] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.720] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.730] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.740] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.750] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.759] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.769] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.779] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.788] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.798] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.808] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.818] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.828] [RenderSession] Edit actions: EditActionList[]
[LuxCore][23.837] [RenderSession] Edit actions: EditActionList[]
mono: tpp.c:84: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio >= fifo_min_prio && new_prio <= fifo_max_prio)' failed.
/proc/self/maps:
4036e000-40627000 rwxp 00000000 00:00 0
414fc000-4150c000 rwxp 00000000 00:00 0
55ca8272b000-55ca82756000 r--p 00000000 00:16 10931434                   /usr/bin/mono-sgen
55ca82756000-55ca82a4c000 r-xp 0002b000 00:16 10931434                   /usr/bin/mono-sgen
55ca82a4c000-55ca82b79000 r--p 00321000 00:16 10931434                   /usr/bin/mono-sgen
55ca82b7a000-55ca82b80000 r--p 0044e000 00:16 10931434                   /usr/bin/mono-sgen
55ca82b80000-55ca82b86000 rw-p 00454000 00:16 10931434                   /usr/bin/mono-sgen
55ca82b86000-55ca82c17000 rw-p 00000000 00:00 0
55ca835f4000-55ca83a70000 rw-p 00000000 00:00 0                          [heap]
7fbd34000000-7fbd34021000 rw-p 00000000 00:00 0
7fbd34021000-7fbd38000000 ---p 00000000 00:00 0
7fbd3c000000-7fbd3c781000 rw-p 00000000 00:00 0
7fbd3c781000-7fbd40000000 ---p 00000000 00:00 0
7fbd40000000-7fbd41e4f000 rw-p 00000000 00:00 0
7fbd41e4f000-7fbd44000000 ---p 00000000 00:00 0
7fbd44000000-7fbd44021000 rw-p 00000000 00:00 0
7fbd44021000-7fbd48000000 ---p 00000000 00:00 0
7fbd48000000-7fbd48021000 rw-p 00000000 00:00 0
7fbd48021000-7fbd4c000000 ---p 00000000 00:00 0
7fbd4c000000-7fbd4c021000 rw-p 00000000 00:00 0
7fbd4c021000-7fbd50000000 ---p 00000000 00:00 0
7fbd50000000-7fbd50021000 rw-p 00000000 00:00 0
7fbd50021000-7fbd54000000 ---p 00000000 00:00 0
7fbd54000000-7fbd54021000 rw-p 00000000 00:00 0
7fbd54021000-7fbd58000000 ---p 00000000 00:00 0
Memory around native instruction pointer (0x7fc1c43727bb):
0x7fc1c43727ab  d2 4c 89 ce bf 02 00 00 00 b8 0e 00 00 00 0f 05  .L..............
0x7fc1c43727bb  48 8b 8c 24 08 01 00 00 64 48 33 0c 25 28 00 00  H..$....dH3.%(..
0x7fc1c43727cb  00 44 89 c0 75 1d 48 81 c4 10 01 00 00 5b c3 66  .D..u.H......[.f
0x7fc1c43727db  0f 1f 44 00 00 48 8b 15 89 36 18 00 f7 d8 64 89  ..D..H...6....d.

Native stacktrace:

        mono(+0x12296d) [0x55ca8284d96d]
        mono(+0x122c87) [0x55ca8284dc87]
        mono(+0xba8e4) [0x55ca827e58e4]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x12730) [0x7fc1c4528730]
        /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x10b) [0x7fc1c43727bb]
        /lib/x86_64-linux-gnu/libc.so.6(abort+0x121) [0x7fc1c435d535]
        /lib/x86_64-linux-gnu/libc.so.6(+0x2240f) [0x7fc1c435d40f]
        /lib/x86_64-linux-gnu/libc.so.6(+0x30102) [0x7fc1c436b102]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x1344f) [0x7fc1c452944f]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0xa384) [0x7fc1c4520384]
        /usr/local/lib/luxcore267/libluxcore.so(+0x1c8e9f8) [0x7fc1886e69f8]
        /usr/local/lib/luxcore267/libluxcore.so(+0x1c8bd36) [0x7fc1886e3d36]
        /usr/local/lib/luxcore267/libluxcore.so(_ZN3slg20BiDirCPURenderThread10RenderFuncEv+0x8f3) [0x7fc1871c0563]
        /usr/local/lib/luxcore267/libluxcore.so(+0x1c8bfce) [0x7fc1886e3fce]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x7fa3) [0x7fc1c451dfa3]
        /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7fc1c44344cf]
Thread 0x7fbf2a7fc700 may have been prematurely finalized
* Assertion at mono-threads.c:628, condition `info' not met

./startTestNode: line 5: 27491 Aborted                 mono MatadorNode.exe
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: live session hangs on BeginSceneEdit

Post by Dade »

I should have fixed this problem.
Support LuxCoreRender project with salts and bounties
daros
Posts: 280
Joined: Thu Dec 12, 2019 3:25 pm
Location: inside human language
Contact:

Re: live session hangs on BeginSceneEdit

Post by daros »

Thanks for the fix Dade!
Post Reply