Sharedpointers error in Plugins on packagin, but not in PIE

I have a slight problem with packaging my project (still work in progress, so it’s not a immediate problem).

When i package to Win64 (probably on other platforms too), i get a sharedpointers error (IsValid() in SharedPointers.h)
I assume the fault is my plugin, but the 2 entries in the stack which refer to my plugin are without debug information.

Is there a way to get the debug info at packaging? Since i don’t know what causes it and it runs just fine in PIE mode, i’m bit at a loss here. Also what i would like to know is, what’s causing this type of error? (I don’t really use SharedPointers conciously)

Any tips are welcome.

Hey Algorithman,

I’m not sure if you’re referring to debugging the packaged .exe, or debugging the process during packaging.

I’ve come across a couple of articles that might help you debug your packaged game, and I’d recommend trying these:

Let me know if that helps, or if you have any further questions.

Have a great day

Not exactly my problem. While packaging the game is apparently executed, but fails with the IsValid() error in SharedPointer.h (line 712 iirc).

Since it doesnt finish packaging, i cant possibly debug the packaged game.
I’ll provice the stacktrace in a few hours, i think it makes clear what’s missing.

But thx for the links, i probably need them in the future :slight_smile:

Could you provide the full output log from your project’s Saved->Logs folder so I can have a look at your exact errors

Sorry for the delay.

Attached are the cooking logs (same error on packaging).

8<----------------- snip ----------------------

[2016.12.06-18.12.54:999][397]UATHelper: Cooking (Windows): UE4Editor-Cmd: [2016.12.06-18.12.54:756][ 0]LogWindows:Error: UE4Editor-Slate.dll!FSlateApplication::Get() [c:\github\unrealengine\engine\source\runtime\slate\public\framework\application\slateapplication.h:222]

[2016.12.06-18.12.55:000][397]UATHelper: Cooking (Windows): UE4Editor-Cmd: [2016.12.06-18.12.54:766][ 0]LogWindows:Error: UE4Editor-MazeGenerator.dll

[2016.12.06-18.12.55:000][397]UATHelper: Cooking (Windows): UE4Editor-Cmd: [2016.12.06-18.12.54:776][ 0]LogWindows:Error: UE4Editor-MazeGenerator.dll

[2016.12.06-18.12.55:000][397]UATHelper: Cooking (Windows): UE4Editor-Cmd: [2016.12.06-18.12.54:786][ 0]LogWindows:Error: UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() [c:\github\unrealengine\engine\source\runtime\core\private\modules\modulemanager.cpp:485]

8<----------------- snip ----------------------

So i can’t determine where it breaks in my plugin. Is there a way to use the plugin dll WITH debug information while cooking?

Project log

Found my bug and a solution, editor nulled my object instances in my array.