testserver lua crash in 3d_armor while looking at exevirus' solution for GOIR #6804

Open
opened 2024-05-15 22:47:22 +02:00 by AliasAlreadyTaken · 4 comments
2024-05-15 20:39:02: ERROR[Main]: 	[C]: in function 'add_entity'
2024-05-15 20:39:02: ERROR[Main]: 	...st_exevirus/bin/../mods/3d_armor/3d_armor_stand/init.lua:62: in function 'update_entity'
2024-05-15 20:39:02: ERROR[Main]: 	...st_exevirus/bin/../mods/3d_armor/3d_armor_stand/init.lua:398: in function 'func'
2024-05-15 20:39:02: ERROR[Main]: 	...est_exevirus/bin/../builtin/profiler/instrumentation.lua:124: in function <...est_exevirus/bin/../builtin/profiler/instrumentation.lua:117>

``` 2024-05-15 20:39:02: ERROR[Main]: [C]: in function 'add_entity' 2024-05-15 20:39:02: ERROR[Main]: ...st_exevirus/bin/../mods/3d_armor/3d_armor_stand/init.lua:62: in function 'update_entity' 2024-05-15 20:39:02: ERROR[Main]: ...st_exevirus/bin/../mods/3d_armor/3d_armor_stand/init.lua:398: in function 'func' 2024-05-15 20:39:02: ERROR[Main]: ...est_exevirus/bin/../builtin/profiler/instrumentation.lua:124: in function <...est_exevirus/bin/../builtin/profiler/instrumentation.lua:117> ```
Author
Owner

This is how it started:

2024-05-15 20:39:00: WARNING[Main]: ServerEnvironment::deactivateFarObjects(): id=15 m_static_exists=true but static data do>
2024-05-15 20:39:00: WARNING[Main]: StaticObjectList::remove(): id=15 not found
2024-05-15 20:39:00: WARNING[Main]: MapBlock::saveStaticObject(): Trying to store id = 0 statically but block (172,3,-31) al>
2024-05-15 20:39:00: WARNING[Main]: MapBlock::saveStaticObject(): Trying to store id = 0 statically but block (172,3,-31) al>
2024-05-15 20:39:00: WARNING[Main]: MapBlock::saveStaticObject(): Trying to store id = 0 statically but block (172,3,-31) al>
This is how it started: ``` 2024-05-15 20:39:00: WARNING[Main]: ServerEnvironment::deactivateFarObjects(): id=15 m_static_exists=true but static data do> 2024-05-15 20:39:00: WARNING[Main]: StaticObjectList::remove(): id=15 not found 2024-05-15 20:39:00: WARNING[Main]: MapBlock::saveStaticObject(): Trying to store id = 0 statically but block (172,3,-31) al> 2024-05-15 20:39:00: WARNING[Main]: MapBlock::saveStaticObject(): Trying to store id = 0 statically but block (172,3,-31) al> 2024-05-15 20:39:00: WARNING[Main]: MapBlock::saveStaticObject(): Trying to store id = 0 statically but block (172,3,-31) al> ```
Author
Owner

What exactly did we test? We had a couple of clients (~10) and a lot of entities 5000+ and waited for the server to crash.

repo https://github.com/ExeVirus/minetest.git
branch feature/exevirus_optimize_server_object_lookups
commit d5316f224b4992b48330e6dc3a64f5d0cea1c4b1
What exactly did we test? We had a couple of clients (~10) and a lot of entities 5000+ and waited for the server to crash. ``` repo https://github.com/ExeVirus/minetest.git branch feature/exevirus_optimize_server_object_lookups commit d5316f224b4992b48330e6dc3a64f5d0cea1c4b1 ```
AliasAlreadyTaken added the
1. kind/bug
3. source/engine
3. source/testserver
labels 2024-05-16 00:52:19 +02:00
Collaborator

3d_armor issue, I take this one :)

Edit 2024-05-18:
Checked the code, 3d_armor does nothing wrong. This seems to be caused by the new fancy GOIR solution.

3d_armor issue, I take this one :) Edit 2024-05-18: Checked the code, 3d_armor does nothing wrong. This seems to be caused by the new *fancy* GOIR solution.
Author
Owner
root@yourland ~ # perf stat -p 207059
^C
 Performance counter stats for process id '207059':

        124,062.84 msec task-clock                       #    1.148 CPUs utilized             
            61,610      context-switches                 #  496.603 /sec                      
             1,175      cpu-migrations                   #    9.471 /sec                      
            47,068      page-faults                      #  379.388 /sec                      
   519,850,790,045      cycles                           #    4.190 GHz                         (36.31%)
   514,162,533,314      instructions                     #    0.99  insn per cycle              (45.44%)
    93,976,563,797      branches                         #  757.492 M/sec                       (45.52%)
     3,316,557,895      branch-misses                    #    3.53% of all branches             (45.52%)
     2,835,982,733      CPU_CLK_UNHALTED.REF_XCLK        #   22.859 M/sec                     
                                                  #     17.9 %  tma_frontend_bound     
                                                  #     25.9 %  tma_retiring           
                                                  #     43.3 %  tma_backend_bound      
                                                  #     13.0 %  tma_bad_speculation      (45.55%)
   351,227,597,899      IDQ_UOPS_NOT_DELIVERED.CORE      #    2.831 G/sec                       (45.50%)
    22,475,437,697      INT_MISC.RECOVERY_CYCLES_ANY     #  181.162 M/sec                       (36.32%)
     2,533,287,789      CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE #   20.419 M/sec                       (36.36%)
   519,564,982,421      CPU_CLK_UNHALTED.THREAD          #    4.188 G/sec                       (36.34%)
   510,107,709,153      UOPS_RETIRED.RETIRE_SLOTS        #    4.112 G/sec                       (36.32%)
   720,029,806,007      UOPS_ISSUED.ANY                  #    5.804 G/sec                       (36.27%)

     108.027256715 seconds time elapsed
``` root@yourland ~ # perf stat -p 207059 ^C Performance counter stats for process id '207059': 124,062.84 msec task-clock # 1.148 CPUs utilized 61,610 context-switches # 496.603 /sec 1,175 cpu-migrations # 9.471 /sec 47,068 page-faults # 379.388 /sec 519,850,790,045 cycles # 4.190 GHz (36.31%) 514,162,533,314 instructions # 0.99 insn per cycle (45.44%) 93,976,563,797 branches # 757.492 M/sec (45.52%) 3,316,557,895 branch-misses # 3.53% of all branches (45.52%) 2,835,982,733 CPU_CLK_UNHALTED.REF_XCLK # 22.859 M/sec # 17.9 % tma_frontend_bound # 25.9 % tma_retiring # 43.3 % tma_backend_bound # 13.0 % tma_bad_speculation (45.55%) 351,227,597,899 IDQ_UOPS_NOT_DELIVERED.CORE # 2.831 G/sec (45.50%) 22,475,437,697 INT_MISC.RECOVERY_CYCLES_ANY # 181.162 M/sec (36.32%) 2,533,287,789 CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE # 20.419 M/sec (36.36%) 519,564,982,421 CPU_CLK_UNHALTED.THREAD # 4.188 G/sec (36.34%) 510,107,709,153 UOPS_RETIRED.RETIRE_SLOTS # 4.112 G/sec (36.32%) 720,029,806,007 UOPS_ISSUED.ANY # 5.804 G/sec (36.27%) 108.027256715 seconds time elapsed ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#6804
No description provided.