# Nvidia crash on instanced foliage render

**URL:** <https://forums.unrealengine.com/t/nvidia-crash-on-instanced-foliage-render/317565>\
**Category:** Platform & Builds\
**Tags:** Linux, unreal-engine, crash, Foliage, editor, UE4, question\
**Created:** [May 5, 2015, 9:08pm UTC](https://forums.unrealengine.com/t/nvidia-crash-on-instanced-foliage-render/317565 "2015-05-05T21:08:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirkson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dirkson](https://forums.unrealengine.com/u/dirkson)\
**Post date:** [May 5, 2015, 9:08pm UTC](https://forums.unrealengine.com/t/nvidia-crash-on-instanced-foliage-render/317565/1 "2015-05-05T21:08:34Z")

</div>

Heyo!

## Problem

Currently, any attempt to render objects created with the foliage tool crashes the UE4 editor on my machine.

## Reproduction

Create a new first person project, attempt to place foliage of any sort - It crashes with default settings.

## Logs

MyProject.log:  
[http://paste.orangehattech.com/view/a8557851](http://paste.orangehattech.com/view/a8557851)

diagnostics.txt:  
[http://paste.orangehattech.com/view/f2fcdd99](http://paste.orangehattech.com/view/f2fcdd99)

##Versions

I am running debian ‘jessie’ linux.

The error occurs when using Nvidia drivers 340.65-2, 346.59, and 349.16 - The driver version doesn’t seem to matter.

I have tested two different versions of UE. The first using an unmodified version of this ( [https://github.com/3dluvr/UnrealEngine](https://github.com/3dluvr/UnrealEngine) ) version of the unreal engine. I built from source around May 5th, and there have been no changes to the repo since then. The second was built from the mainline UE4.8 git repo, as of the morning of May 7th. The error occurs identically in both cases, but the above logs are from the UE 4.7-linux trial.

##Notes

I tried numerous different meshes - Ferns, grasses, bog myrtle, chairs, the simple cube. All had the same problem.

I also tried placing the meshes on various forms of landscape, rather than the default room that UE4 provides, which didn’t affect the problem.

This crash can occur instantly if the instanced rendering is enabled in the viewport, or it can be postponed until I attempt to play the game if I turn off the instanced rendering in the editor viewport, so the crash appears to be related to _rendering_ the foliage, rather than merely placing it.

Please let me know if there’s anything else I can be doing here!

Cheers,

-Dirkson

_Edited May 7th to add new version attempt and use bright orange headers, like a cool kid._

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [May 7, 2015, 11:08pm UTC](https://forums.unrealengine.com/t/nvidia-crash-on-instanced-foliage-render/317565/2 "2015-05-07T23:08:57Z")

</div>

I filed UE-15240 to track this internally; there seem to be other bugs with a similar callstack. Could you check if setting OpenGL.UseVAB=0 in ConsoleVariables.ini anyhow changes the behavior?

---

<div class="post-metadata">

**Author:** ![Yaakuro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yaakuro/32/918670_2.png) [@Yaakuro](https://forums.unrealengine.com/u/Yaakuro)\
**Post date:** [May 7, 2015, 11:58pm UTC](https://forums.unrealengine.com/t/nvidia-crash-on-instanced-foliage-render/317565/3 "2015-05-07T23:58:25Z")

</div>

Hidiho here yaakuro 😃

I have the same issue as mentioned in this report. With the OpenGL.UseVAB=0 it does not happen anymore.

## Steps to reproduce

- Create empty project
- Create a cube mesh
- Start drawing using Foliage Tool with the cube mesh

## My system

- Ubuntu 14.04.02 LTS 64-bit
- Nvidia 750Ti 2GB, Driver: 349.16
- 16GB Ram

## Crash Log

Signal 11 caught.  
EngineCrashHandler: Signal=11  
[2015.05.07-23.46.36:120][913]LogCrashTracker:

[2015.05.07-23.46.36:120][913]LogLinux: === Critical error: ===  
Unhandled Exception: SIGSEGV: invalid attempt to access memory at address 0x00000002

[2015.05.07-23.46.36:120][913]LogLinux: Fatal error!

[Callstack] 02 0x00007f382f048621 ReportCrash(FLinuxCrashContext const&)  
[Callstack] 03 0x000000000042d4ab EngineCrashHandler(FGenericCrashContext const&)  
[Callstack] 04 0x00007f382f04beb8 PlatformCrashHandler(int, siginfo\_t\*, void\*)  
[Callstack] 05 0x00007f382fac9340 /lib/x86\_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f382fac9340]  
[Callstack] 06 0x00007f38022af964 /usr/lib/nvidia-349/libnvidia-glcore.so.349.16(+0x157f964) [0x7f38022af964]  
[Callstack] 07 0x00007f38022b392a /usr/lib/nvidia-349/libnvidia-glcore.so.349.16(+0x158392a) [0x7f38022b392a]  
[Callstack] 08 0x00007f38022c8cfb /usr/lib/nvidia-349/libnvidia-glcore.so.349.16(+0x1598cfb) [0x7f38022c8cfb]  
[Callstack] 09 0x00007f38026d88bd /usr/lib/nvidia-349/libnvidia-glcore.so.349.16(+0x19a88bd) [0x7f38026d88bd]  
[Callstack] 10 0x00007f38026df893 /usr/lib/nvidia-349/libnvidia-glcore.so.349.16(+0x19af893) [0x7f38026df893]  
[Callstack] 11 0x00007f38022c2ebe /usr/lib/nvidia-349/l[2015.05.07-23.46.36:124][913]LogExit: Executing StaticShutdownAfterError

---

<div class="post-metadata">

**Author:** ![dirkson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dirkson](https://forums.unrealengine.com/u/dirkson)\
**Post date:** [May 8, 2015, 2:49am UTC](https://forums.unrealengine.com/t/nvidia-crash-on-instanced-foliage-render/317565/4 "2015-05-08T02:49:47Z")

</div>

Setting OpenGL.UseVAB=0 makes the bug vanish for me. I was able to load a scene up with foliage and wander around in it. Hurrah!
