Search Issue Tracker

Fixed

Votes

1

Found in

2021.3.16f1

2022.3.10f1

Issue ID

UUM-53177

Regression

No

[Linux] Crash on GC_merge_unmapped when entering/exiting the Play Mode, running Tests, or opening a Scene

--

-

Reproduction steps:
1. Create a new 3D project
2. Enter the Play Mode
3. Exit the Play Mode

Expected result: Unity Editor exits the Play Mode
Actual result: Unity Editor crashes

Reproducible with: 2021.3.16f1, 2022.3.10f1

Reproducible on: Fedora, Manjaro, Ubuntu 22.04, Ubuntu 23.04, Linux Mint 21, Arch
Not reproducible on: no other environment reported this crash

First lines of the stack trace:
#0 0x007f796b842520 in (Unknown)
#1 0x007f796b896a7c in pthread_kill
#2 0x007f796b842476 in pthread_kill
#3 0x007f796b8287f3 in raise
#4 0x007f77be26cde6 in raise
#5 0x007f77be26cd3e in abort
#6 0x007f77be26ea98 in abort
#7 0x007f77be26ecea in GC_merge_unmapped
#8 0x007f77be274cdd in GC_merge_unmapped
#9 0x007f77be271150 in GC_unmap_old
#10 0x007f77be275029 in GC_unmap_old
#11 0x007f77be23f4a2 in GC_finish_collection

Notes:

* This crash could not be reproduced by CQA, but there are a lot of crash reports of it
* All the listed versions are taken from other bug reports
* Users also reproduced this crash when using the package manager, running tests, leaving the Editor open for extended periods of time, or just opening a scene

Comments (5)

  1. Enzi

    Jan 12, 2024 05:13

    As this has been changed now to fixed. Which Unity version will include that fix? 2022.3.17 doesn't have anything in the change log regarding this.
    Also, is it possible this leak is also in 2023.3.0b1 as I was having very similar crashes.

  2. tylerinthezoo

    Jan 05, 2024 20:56

    for anyone having this issue, we found a memory leak during entering/exiting memory leak and is currently fixing it. For anyone who have seen mmap(PROT_NONE) failed
    Caught fatal signal - signo:6 code:-6 errno:0 addr:0x14
    it basically means the system runs out of memory.

  3. booferei

    Dec 06, 2023 11:58

    Bug persists on Unity 2022.3.14f1 (during build on Linux)

  4. booferei

    Dec 06, 2023 09:41

    Crashes during build as well on AWS Linux with Unity 2022.3.8f1.

    Always at the same point in the build:
    Opening scene 'Assets/_Tale/Run/General/Cutscenes/Outro/Outro - SB.unity'
    Unloading 206 Unused Serialized files (Serialized files now loaded: 0)
    mmap(PROT_NONE) failed
    Caught fatal signal - signo:6 code:-6 errno:0 addr:0x14
    Obtained 46 stack frames.
    #0 0x007f4794d4f520 in (Unknown)
    #1 0x007f4794da3a7c in pthread_kill

  5. steven_tashi

    Dec 01, 2023 14:12

    This is reproducible on 2022.3.14f1 using Manjaro 23.1.0 updated as of 1st December 2023. It happens very frequently, maybe once every 5-15 minutes depending on what I'm doing.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.