-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash of UE4 when trying to call GetAllActorsOfClass #139
Comments
World? Not a GWorld? I think you tried to call non static function as a static function. It definitely seems like a bug. :) Please try with |
Hmm, strange. I was seeing the Either way in my opinion executing something invalid in javascript console shouldn't cause a crash of UE. Do you consider that a good behavior ? :) In fact it did crash when I called a same thing through Javascript Component and script file which is even more strange since I had the |
@FredyC In editor environment there is no |
So Thanks for opening an issue :) |
You can grab list by I investigated the problem you reported but it actually turned out the crash was caused within internal unreal engine code, so I think that this issue should be reported to unreal engine. :) |
let asset = StaticMesh.Load('/Game/StarterContent/Shapes/Shape_Cube.Shape_Cube') class MyBox extends StaticMeshActor { function test() { test(); Error: file:///e:/Unreal/Project/MyProject/Content/Scripts/test.js:20: TypeError: Cannot read property 'GetEditorWorld' of undefined |
I am not sure if I am not simply doing something wrong. I am fiddling with UE4 for last 2 months only, so I might be missing something obvious here. Either way I have official release of UE 4.14.3 with Unreal.JS plugin from marketplace. I am on Windows 10 x64.
I start UE4, open javascript console and just type in
World.GetAllActorsOfClass(Actor)
and execute it which makes UE4 crash immediately. Not sure if there are some logs available that could help. I also tried somewhat simpler command likeWorld.GetGameInstance()
, but with a same result.Any advice please ?
The text was updated successfully, but these errors were encountered: