UE4Editor not starting when using Mesa 13+

Since Mesa 13 released, Unreal Engine refuses to start up with the error “Error in UE4Editor free(): invalid pointer”
This is true for the Editor of 4.13, 4.14, git master. I was not able to test other versions as they would fail compiling and I could not yet test this with a game built with UE4.
Here’s the complete console output: http://pastebin.com/vg42rhAu
Note that the error sometimes also is “double free()” not only “free(): invalid pointer”, this seems to be random though.
Downgrading to Mesa 12 (no OpenGL4 Support!!) runs the engine just fine.
Using -ansimalloc or -jemalloc does not fix the problem!

Here are my system details:

  • Arch Linux, Kernel 4.8.13-1-ARCH, 64bit
  • AMD RX480, Mesa 13.0.2
  • Intel i7 3770k, 16GB RAM

It would be nice to not be ignored again…

Hey -

Looking at the console output, I’m unable to find the command where you’re running the engine. When you ran the editor command, did you include “-OpenGL4”? If not, please let me know if you get the same error using ./UE4Editor -opengl4.

The command is at the very bottom, the log outputs it again by itself.
As this log was produced with Git master, opengl4 is default.
Running with -opengl4 or -opengl3 makes no difference to running it without any arguments, the same error occurs.

bump, this is still an issue.

Hey -

After speaking with other developers I learned that Mesa 13 is not currently supported. We are looking to add support but for the time being, continuing to use Mesa 12 is the best option.

Cheers

Thanks for your respone

Thanks for your response.

I suspect I’m having the same problem (tried UE 4.15.2 and 4.16-preview3). It would be great if newer versions of mesa were supported. Sadly I can’t downgrade because of instability problems on my system with earlier versions.

Here is the log and system info. I hope it helps

Error in './Engine/Binaries/Linux/UE4Editor': free(): invalid pointer: 0x00007f20df52eb40
Error in './Engine/Binaries/Linux/UE4Editor': free(): invalid pointer: 0x00007f20e87d6be0

  • OS: Arch Linux (Kernel 4.10.13.1)
  • GPU: AMD R9 380x
  • Driver: amdgpu, Mesa 17.0.5

unreal engine 4.16.1 Works with fedora 25 gnome kernel 4.11 mesa 17.0.5 clang 3.9.1
GPU: AMD R9 280x
qt creator hot reload works too.