Luoshuang's GPULightmass

Any solution on this … same problems here:



8:12:21 PM: Starting up SwarmAgent ...
8:12:21 PM:  ... registering SwarmAgent with remoting service
8:12:21 PM:  ... registering SwarmAgent network channels
8:12:21 PM:  ... initializing SwarmAgent
8:12:21 PM:  ......... certificate check has failed
8:12:21 PM:  ...... initializing cache
8:12:21 PM:  ......... using cache folder 'C:/Users/sumsion.f.shane/AppData/Local/UnrealEngine/4.22/Saved/Swarm\SwarmCache'
8:12:21 PM:  ......... recreating SwarmAgent cache staging area
8:12:21 PM:  ...... initializing connection to SwarmCoordinator
8:12:21 PM:  ......... using SwarmCoordinator on RENDER-01
8:12:28 PM:  ......... SwarmCoordinator failed to be initialized
8:12:28 PM:  ...... initializing local performance monitoring subsystem
8:12:29 PM:  ... initialization successful, SwarmAgent now running
8:12:29 PM: [Interface:TryOpenConnection] Local connection established
8:12:29 PM: [Job] Accepted Job 1BE15001-472B1437-B04C3DA1-C2433FC6
8:15:00 PM: [Job] Launched Job UnrealLightmass_2019-04-04_20-59-18_1148416-64bit.exe
8:15:00 PM: [Job]     PID is 39708
8:15:00 PM: [Job]     GUID is "1BE15001-472B1437-B04C3DA1-C2433FC6"
8:15:00 PM: LogLightmass: Display: Lightmass Win64 started on: W099. Command-line: 1BE15001472B1437B04C3DA1C2433FC6
8:15:00 PM: Failed to determine engine directory: Defaulting to ../../../Engine/
8:15:00 PM: Failed to load 'aqProf.dll' (GetLastError=126)
8:15:00 PM: File 'aqProf.dll' does not exist
8:15:00 PM: Failed to load 'VtuneApi.dll' (GetLastError=126)
8:15:00 PM: File 'VtuneApi.dll' does not exist
8:15:00 PM: Failed to load 'VtuneApi32e.dll' (GetLastError=126)
8:15:00 PM: File 'VtuneApi32e.dll' does not exist
8:15:00 PM: Lightmass Win64 started on: W099. Command-line: 1BE15001472B1437B04C3DA1C2433FC6
8:15:00 PM: LogLightmass: Display: Processing scene GUID: 1BE15001472B1437B04C3DA1C2433FC6 with 14 threads
8:15:00 PM: Processing scene GUID: 1BE15001472B1437B04C3DA1C2433FC6 with 14 threads
8:15:00 PM: Building static lighting...
8:15:00 PM: [OpenConnection] Registering TCP channel ...
8:15:00 PM: [OpenConnection] Connecting to agent ...
8:15:00 PM: [TryOpenConnection] Testing the Agent
8:15:00 PM: [TryOpenConnection] Opening Connection to Agent
8:15:00 PM: [TryOpenConnection] Local Process ID is 39708
8:15:00 PM: [Job] Found a parent connection for PID 39708
8:15:00 PM: [Job]     3AF7D342 -> 342EC621
8:15:00 PM: [Interface:TryOpenConnection] Local connection established
8:15:12 PM: Measured CPU frequency: 3.00 GHz
8:15:12 PM: FStaticLightingSystem started using GKDOPMaxTrisPerLeaf: 4
8:15:12 PM: Number of texture mappings: 4925
8:15:12 PM: Number of fluid mappings:   0
8:15:12 PM: Number of landscape mappings:   0
8:15:12 PM: Number of BSP mappings:     0
8:15:12 PM: Number of static mesh instance mappings: 4925
8:15:12 PM: Reserving memory for 4925 meshes, 9416464 vertices, 12308295 triangles
8:15:12 PM: Reserving memory for 0 meshes, 0 vertices, 0 triangles
8:15:25 PM: Scene surface area calculated at 457.319 million units (52.258% of the estimated 875.117 million units)
8:15:25 PM: Importance volume surface area calculated at 457.319 million units (0.000% of the estimated 0.000 million units)
8:15:30 PM: Embree Build 4.9s
8:15:30 PM: 
8:15:30 PM: 
8:15:30 PM: Collision Mesh Overview:
8:15:30 PM: Num Triangles         : 12304327
8:15:30 PM: MeshInfos             :     0.4Mb
8:15:30 PM: UVs                   :    99.3Mb
8:15:30 PM: LightmapUVs           :    99.3Mb
8:15:30 PM: Embree Used Memory    :   911.9Mb
8:15:30 PM: 
8:15:30 PM: 
8:15:30 PM: Preallocated 1.9Gb for kDOP nodes and triangles
8:15:50 PM: Building kDOP took 19.88 seconds.
8:15:50 PM: Static lighting kDOP: 8060524 nodes, 4030263 leaves, 16121052 triangles, 9414256 vertices
8:15:50 PM: Static lighting kDOP: 23.722% wasted space in leaves
8:15:50 PM: Preallocated 0.0Gb for kDOP nodes and triangles
8:15:50 PM: Building kDOP took  0.00 seconds.
8:15:50 PM: Static lighting kDOP: 8060524 nodes, 4030264 leaves, 16121052 triangles, 0 vertices
8:15:50 PM: Static lighting kDOP: 100.000% wasted space in leaves
8:15:50 PM: Processing...
8:16:05 PM: GPULightmass Kernel: Importing mesh: 9414256 vertices, 5972079 triangles
8:16:07 PM: GPULightmass Kernel: Embree SBVH Construction finished, 1867MS
8:16:10 PM: GPULightmass Kernel: Convert to CudaBVH finished, 2972MS
8:16:10 PM: GPULightmass Kernel: GPU BVH video memory size: 191.76MB, triangle payload size: 424.08MB
8:16:10 PM: GPULightmass Kernel: Bind CudaBVH finished, 131MS
8:16:10 PM: GPULightmass Kernel: GPU triangle parameterization data size: 234.78MB
8:16:11 PM: GPULightmass Kernel: 3 masked collision maps imported
8:16:11 PM: GPULightmass Kernel: 0 directional lights, 7 point lights and 56 spot lights imported
8:16:11 PM: Started task graph with 4 named threads and 18 total threads with 1 sets of task threads.
8:18:27 PM: LogThreadingWindows: Error: Runnable thread TaskGraphThreadNP 3 crashed.
8:18:27 PM: LogWindows: Error: === Critical error: ===
8:18:27 PM: LogWindows: Error: 
8:18:27 PM: LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION writing address 0x00000000
8:18:27 PM: LogWindows: Error: 
8:18:27 PM: LogWindows: Error: [Callstack] 0x00007ffb3e09b4e7 GPULightmassKernel.dll!UnknownFunction ]
8:18:27 PM: LogWindows: Error: [Callstack] 0x00007ffb3dfa0ef2 GPULightmassKernel.dll!UnknownFunction ]
8:18:27 PM: LogWindows: Error: [Callstack] 0x00007ff7d2b4f593 UnrealLightmass.exe!UnknownFunction ]
8:18:27 PM: LogWindows: Error: [Callstack] 0x00007ff7d2b33cf1 UnrealLightmass.exe!UnknownFunction ]
8:18:27 PM: LogWindows: Error: [Callstack] 0x00007ff7d2b63d23 UnrealLightmass.exe!UnknownFunction ]
8:18:27 PM: LogWindows: Error: [Callstack] 0x00007ff7d2b4883b UnrealLightmass.exe!UnknownFunction ]
8:18:27 PM: LogWindows: Error: [Callstack] 0x00007ffb3d8b8601 UnrealLightmass-Core.dll!UnknownFunction ]
8:18:27 PM: LogWindows: Error: [Callstack] 0x00007ffb3d8c0a7b UnrealLightmass-Core.dll!UnknownFunction ]
8:18:27 PM: LogWindows: Error: [Callstack] 0x00007ffb3dc016ab UnrealLightmass-Core.dll!UnknownFunction ]
8:18:27 PM: LogWindows: Error: [Callstack] 0x00007ffb3dbfd217 UnrealLightmass-Core.dll!UnknownFunction ]
8:18:27 PM: LogWindows: Error: [Callstack] 0x00007ffc2fff7bd4 KERNEL32.DLL!UnknownFunction ]
8:18:27 PM: LogWindows: Error: [Callstack] 0x00007ffc306cce71 ntdll.dll!UnknownFunction ]
8:18:27 PM: LogWindows: Error: 
8:18:27 PM: LogWindows: Error: Crash in runnable thread TaskGraphThreadNP 3
8:18:27 PM: [MaintainConnections] Detected dropped local connection, cleaning up (342EC621)
8:18:27 PM: [CloseConnection] Closing connection 342EC621 using handle 342EC621
8:18:27 PM: [CloseConnection] Connection confirmed for disconnection 342EC621
8:18:27 PM: [CloseConnection] Connection disconnected 342EC621
8:18:27 PM: [GetMessage] Safely returning to 342EC621 with no message
8:18:27 PM: [MaintainConnections] Local connection has closed (342EC621)
8:18:27 PM: [MaintainConnections] Removed connection 342EC621
8:18:48 PM: [Job] Job has failed! Job executable didn't exit cleanly. Exit code: 3
8:18:48 PM: [CloseConnection] Closing connection 3AF7D342 using handle 3AF7D342
8:18:48 PM: [CloseConnection] Connection confirmed for disconnection 3AF7D342
8:18:48 PM: [CloseConnection] Closing orphaned Job (1BE15001-472B1437-B04C3DA1-C2433FC6)
8:18:49 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:49 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:50 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:50 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:51 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:51 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:52 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:52 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:53 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:53 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:54 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:54 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:55 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:55 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:56 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:56 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:57 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:57 PM: [MaintainConnections] Connection 3AF7D342 is DISCONNECTING
8:18:58 PM: [CloseConnection] Connection disconnected 3AF7D342
8:18:58 PM: [GetMessage] Safely returning to 3AF7D342 with no message
8:18:58 PM: [MaintainConnections] Local connection has closed (3AF7D342)
8:18:58 PM: [MaintainConnections] Removed connection 3AF7D342
8:18:58 PM: [MaintainConnections] All connections have closed


I got this on a fresh install of GPULightmass to 4.22.3 … tried your above steps, not fixed … have you had this come up again, where you might have had to solve it differently?
https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass?p=1658665#post1658665

Thanks [USER=“24021”]pax invictus[/USER] for the updated GPU Lightmass for 4.23 preview 8!

Same link as the previous one

You’re welcome!

hi where can I download the lighmass for 4.23-8???

[USER=“24021”]pax invictus[/USER] Great work! Thank you!

Here:
https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass?p=1655242#post1655242
(Dropbox link)

I’m getting the same “Array index out of bounds” error as some other people here - did anyone figure out what’s going on with that?

Would you like to provide your scene to me for debugging?

Updated for UE 4.23.0-release.

Binaries (still the same link):
https://www.dropbox.com/sh/fjr63yeut…Fena?dl=0&lst=

GPU Lightmass integration source code rebased onto 4.23.0-release:
https://.com/irobot/UnrealEngine/tree/GPU-Lightmass-4.23.0-release

Thank you pax invictus!

I always get that when trying to build a scene with one or less static things. Like a static mesh with no static/stationary lights. Or a static light with no static meshes etc.

Many Thanks Pax! very much appreciated.

Strange thing is; with 4.23 I need to revert to the original UE code or my projects crash on the Quest. Easily done with a simple bat file but still would be nice if that wasn’t necessary.
Any GPUlightmass users who use the Quest who noticed the same?

Thanks so much man! Really on the ball with these updates.

Thanks for porting the GPULM to the 4.23
Just one problem: the start of bake blocks whole UE4 interface until the end of bake.
Could you check this problem ?

It’s been like this since the first 4.23 preview. I don’t think it has anything to do with gpu lightmass (this bug is still present without gpu lightmass installed)

How to install GPULM 4.23 with installer https://forums.unrealengine.com/deve…11#post1519111. pls Help

Thank You so much for the quick supply!

I’m using 4.22.3 with the auto installer and I’m getting the following errors:


invalid device symbol


invalid texture reference

 no kernel image is available for execution on the device

Windows version: 10 64-bit
DirectX runtime version: 12.0
Graphics card: GeForce GT 755M

Any hints?