4.18 Enable apex destruction plugin failed to package

My project can be packaged successfully in 4.17 & 4.16. However, after enabling apex destruction plugin in 4.18.1, it has packaging issues. It runs totally fine in Editor, both new window and standalone. I’m building from source on Linux Ubuntu 16.04 using release branch of 4.18.1. Since my project requires destructible to be used, naturally I would turn on apex destruction plugin. Two critical issues came up (even with newly created empty c++ project):

(1) When packaging, it always shows failed to package due to “Unknown Cook Failure” no matter what packing configuration was set.

  LogInit: Display:
  1101LogInit: Display: Success - 0 error(s), 4 warning(s)
  LogInit: Display:
  Execution of commandlet took:  19.19 seconds
  Signal 11 caught.
Took 33.547256s to run UE4Editor, ExitCode=139
Cook failed. Deleting cooked data.
ERROR: Cook failed.
       (see /home/it/Library/Logs/Unreal Engine/LocalBuildLogs/UAT_Log.txt for full exception trace)
AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
[2017.11.17-07.04.59:279][ 61]UATHelper: Packaging (Linux): RunUAT ERROR: AutomationTool was unable to run successfully.
[2017.11.17-07.04.59:279][ 61]PackagingResults: Error: Unknown Cook Failure

(2) When normally exiting editor, 100% crash with the following backtrace stack

[2017.11.17-06.39.51:744][394]LogInit: Tearing down SDL.
*** Error in `/home/it/UnrealEngine/Engine/Binaries/Linux/UE4Editor': double free or corruption (!prev): 0x0000000003c5f4b0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7ff7923de7e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7ff7923e737a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7ff7923eb53c]
/lib/x86_64-linux-gnu/libc.so.6(__cxa_finalize+0x9a)[0x7ff7923a136a]
/home/it/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Engine.so(+0x17b8023)[0x7ff799b9a023]

Disabling the plugin avoids these two issues, but the destructible feature was totally gone. Any help would be appreciated.

Getting this same issue in 4.18!

Got similiar crash log and same linux signal in 4.18, remove the apex destruction plugin reference works for me.
ps: every commandlet will crash when it’s finished.

Hi,

This issue should be fixed in 4.19 and is due to symbol collisions from a statically linked apex library.
If you need to fix it in 4.18 you can cherry-pick this commit:

https://github.com/EpicGames/UnrealEngine/commit/ae79adca425d648714a36a26120b22b7e66b63f5

Confirm it’s fixed in 4.19. Thanks for taking look into this!

Hey i realy neeed it fixed for 4.18 but the link you posted is unvailid. so how do i fix this?