Unreal Engine Crashing When Flattening

When I use the flatten tool on my landscape, the editor crashes. I am using unreal engine 5.4.1 on a Mac Mini M2.

When Unreal Engine crashes during the use of the landscape editing tools, such as the flatten tool, it typically points to a few potential issues such as graphics driver problems, memory limitations, or specific bugs in the Unreal Engine itself. Given that you’re using a Mac Mini M2 with Unreal Engine 5.4.1, here are some steps you can take to diagnose and possibly resolve the issue:

1. Check Unreal Engine Version

Ensure that you are using the most up-to-date version of Unreal Engine. Sometimes, bugs that cause crashes are fixed in newer versions or patches.

2. Update macOS

Ensure your operating system is updated. Apple frequently releases updates that improve hardware compatibility and performance, which can in turn help with software stability.

3. Graphics and Hardware Considerations

  • Graphics API: Unreal Engine on macOS uses Metal for rendering. Ensure that there are no known issues with Metal on the M2 chip in the context of Unreal Engine by checking forums or official Unreal Engine support channels.
  • Memory Usage: The Mac Mini M2, depending on your configuration, may have limited RAM, which can be a constraint when working with demanding tasks like landscape editing. Monitor your system’s memory usage to see if crashes correlate with high memory usage.

4. Check for Error Logs

  • After a crash, Unreal Engine usually generates a crash report. Look at the crash logs to identify any specific error messages or modules involved in the crash. You can find these logs in the Saved/Logs directory inside your project’s folder.

5. Simplify Your Task

  • If you’re working with a particularly complex or large landscape, try testing the flatten tool on a smaller or less complex part of the landscape to see if the issue persists. This can help determine if the problem is related to the complexity of the data.

6. Test in a New Project

  • Try replicating your landscape work in a new Unreal Engine project with similar settings. If the crash does not occur in the new project, there may be something specific in your original project causing the issue.

7. Adjust Editor Settings

  • Reduce Editor Graphics Settings: Lowering the graphics settings in Unreal Editor can sometimes help avoid crashes by reducing the load on the GPU and overall system resources.
  • Landscape Tool Settings: Adjust the tool settings, such as brush size and strength, to be less intensive to see if that avoids triggering a crash.

Hope this helps.

Thanks for the advice!

After some testing I’ve found:

  1. The crash occurs in other projects as well
  2. It appears to be related to disk writing, here’s the error:
    Event: disk writes
    Action taken: none
    Writes: 2148.37 MB of file backed memory dirtied over 638 seconds (3368.90 KB per second average), exceeding limit of 24.86 KB per second over 86400 seconds
    Writes limit: 2147.48 MB
    Limit duration: 86400s
    Writes caused: 2148.37 MB
    Writes duration: 638s
    Duration: 637.71s
    Duration Sampled: 0.46s
    Steps: 28 (10.49 MB/step)

Any ideas? I’ve tried making the brush size 1 but with the same results.

I have the same issue. Unreal 5.4.1 with Macbook M3 Max.
I found that some tools (like flatten and smooth) have a setting called “Combined layers operation”. Disabling this fixed the issue and is not resulting in an immediate crash.
Same computer with Unreal Version 5.3 is not causing the issue.
It is most likely a bug in version 5.4.1

3 Likes

Disabling Combined layers worked! Thank you so much!

1 Like

This solved the problem. Thank you!

For what its worth have the same problem on an M1 Ultra with 128GB of memory and having updated to 5.4.2 today. And thanks yes the Un-checking Combined layers fixed the problem.

1 Like

The issue seems to be fixed in 5.4.3.