Search Issue Tracker

By Design

Votes

0

Found in

2019.4

2020.3

2020.3.2f1

2021.1

2021.2

Issue ID

1328511

Regression

No

Editor hangs in Play Mode when instantiating a Mesh every frame on macOS

Mesh

-

How to reproduce:
1. Open the user's attached project from "SurvivalIsland.zip"
2. Open Scene "TestScene"
3. Enter Play Mode

Expected result: Editor shows a warning or any sort of indication of the abundance of objects or memory issues
Actual result: Editor freezes or machine restarts

Reproducible with: 2019.4.25f1, 2020.3.6f1, 2021.1.5f1,2021.2.0a15
Couldn't test with: 2018.4.34f1 (Project code wasn't implemented)

First lines of the stack trace (submitted by user, couldn't produce a crash locally):
#0 0x007fff6a51481d in objc_msgSend
#1 0x00000111b03d43 in GUIView::ProcessInputEvent(InputEvent&)
#2 0x00000113e8bd27 in -[GUIRenderView handleEvent:]
#3 0x00000113e8beec in -[GUIRenderView mouseDown:]
#4 0x007fff2eabe5f0 in -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:]
#5 0x007fff2ea28e21 in -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]

Note:
1. Reproduced only on macOS

  1. Resolution Note:

    If the code ends up creating large resources every frame and never releases them, everything will halt due to memory issues, meaning that all resources must be released according to ones memory size

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.