getnamo / NodeJs-Unreal

Embed node.js as an Unreal Engine plugin.
MIT License
239 stars 34 forks source link

packaged game crashing at exit #20

Open xmak opened 4 years ago

xmak commented 4 years ago

When there's an actor on the map with the Node component, the packaged game crashes on exit with the following error message:

image

It happens regardless of whether any node scripts were run or not, just having the Node component in an actor which is present on the map produces this error.

It happens when using the plugin compiled from code, the latest master (I haven't tried the relese version), and it affects only packaged projects. When run from Unreal editor there's no crash.

Test project:

https://drive.google.com/open?id=1Do_Hnksl8oFqdHb8fQpFk7luLO4Ok8c8

Packaged:

https://drive.google.com/open?id=1QXofcQruPHCyAeCLEgfPKz1WIH4UGMns (game is just blank screen, press Esc to exit)

P.S. The crash doesn't happen always, so running the game a few times could be required to reproduce it.

JackGit3 commented 3 years ago

Can confirm I've seen the same crash in packaged builds. I'm using the release version but did delete the binaries folder and rebuild the plugin. Happens occasionally.

getnamo commented 3 years ago

Do we have a dump or stack trace available for a crash?

JackGit3 commented 3 years ago

No idea why but I can't get this bug to happen again, if I can manage to replicate it I will try to provide something.

JackGit3 commented 3 years ago

It finally happened again, I'm attaching the logfile from the packaged exe. Let me know if you want me to provide anything else. I believe the only relevant part is at the very bottom. BugCrash.txt

hikingyoung commented 2 years ago

SOS: I met this bug everytime I quit the game made by ue4 with this plugin.(v0.7.0 for UE 4.26) . I think it causes 'Memory Leak', but I don't know reason. I'm about to read the source code of the plugin, but if you can help me, it'll be highly appreciated.