Ue4 crashes when i play my level :(

WHEN I OPEN MY MAP, UNREAL CRASHES I DONT KNOW WHY HERE IS THE LOG REPORT, I WILL ALSO UPLOAD THE WHOLE FILE, SEND HELP :frowning:

Log file open, 02/27/18 23:56:55

LogWindows: Failed to load ‘aqProf.dll’ (GetLastError=126)

LogWindows: File ‘aqProf.dll’ does not exist

LogWindows: Failed to load ‘VSPerf140.dll’ (GetLastError=126)

LogWindows: File ‘VSPerf140.dll’ does not exist

LogWindows: Failed to load ‘VtuneApi.dll’ (GetLastError=126)

LogWindows: File ‘VtuneApi.dll’ does not exist

LogWindows: Failed to load ‘VtuneApi32e.dll’ (GetLastError=126)

LogWindows: File ‘VtuneApi32e.dll’ does not exist

LogInit: Display: Running engine for game: Accursed6

LogPlatformFile: Not using cached read wrapper

LogInit: Display: RandInit(1938057778) SRandInit(1938057778).

LogInit: Read version file with build ID ‘3709383’

LogInit: Overriding engine version to CL 3832480, compatible CL 3709383

LogInit: Registered custom module enumerator with build ID ‘3709383’

LogTaskGraph: Started task graph with 5 named threads and 8 total threads with 3 sets of task threads.

LogStats: Stats thread started at 0.108530

LogD3D11RHI: Aftermath initialized

LogPluginManager: Mounting plugin Paper2D

LogPluginManager: Mounting plugin LightPropagationVolume

LOGFILE

Hello!!

You tried to use function in class constructor, which is not allowed!!!

[2018.02.27-15.57.06:855][  0]LogOutputDevice: Error: Ensure condition failed: !AttachmentRules.bWeldSimulatedBodies [File:D:\Build\++UE4+Release-4.18+Compile\Sync\Engine\Source\Runtime\Engine\Private\Components\SceneComponent.cpp] [Line: 1669]
[2018.02.27-15.57.06:855][  0]LogOutputDevice: Error: AttachToComponent when called from a constructor cannot weld simulated bodies. Consider calling SetupAttachment directly instead.
[2018.02.27-15.57.06:855][  0]LogOutputDevice: Error: Stack: 

Dont use AttachToComponent in constructor, because AttachToFunction is runtime function which works only when you have valid world and “play mode”, if you try to attach a component which you added to your actor / class try to use

SetupAttachment()

So is that whats causing unreal crashing? What about the stuff thats missing? Ive been using that line of code and i havent been getting error from it although it has always been exempted . Slr btw

AttachToComponent ← thats causing the crash… you using that in constructor… do you know what is constructor right? :slight_smile:

ClassName::ClassName()
{
          //// more code
          // Possibly attachtocomponent here somewhere

}

you should use SetupAttachment() instead of AttachToComponent

Or other option as log said

when called from a constructor cannot weld simulated bodies

you called the function with weld simulated bodies true… which should be false

alright ill try the setupattachment() :smiley:

still crashing :^) i cry

link text
here is the log file

Well i cant help in this, because this log shows nothing actually… just immediatly ends…
atleast attachto crash is gone, but you have some new i guess… :smiley:

Is this C++ project?

yes it is :slight_smile: i just went to a lower version of my proj. from my backups and its working from there i guess ill just start from here again thanks! anyways wish this will be solved for future developers haha

well if c++ project you can run debug mode from visual studio (green arrow or f5) which will stop at the breakpoint where editor crashes… that information maybe give wider picture about the error