x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Crash in Standalone/Packaged Game on Win7 when unloading Lighting Scenario Streaming Level

Unloading Lighting Scenario Crashes the Engine in Standalone Game mode or in a Packaged Game; Works fine in PIE.

To reproduce:

Create new UE4.14 project. I've used the "empty" template.

  • Create 2 Levels. I've named them LS and LS2.

  • Attach the levels to the persistent level.

  • Set both LS and LS2 as Lighting Scenarios.

  • Place static point light in LS.

  • Hide the LS2.

  • Build lighting.

  • Hide the LS. Unhide the LS2.

  • Build lighting.

  • Set up simple blueprint to unload and load the levels (see attachement) List item

  • Launch as standalone or packaged game

  • Press T to load a Lighting Scenario level

  • Press Y to switch the Lighing Scenarios - Engine will crash when unloading the Lighting Scenario streaming level (I was able to isolate that cause after some experimenting).

Very excited about this feature! Hope it's easily fixable (or am I doing something wrong?) I've tested this also with a proper check if the Streaming Level is loaded, decided to leave this out here to simplify the reproduction.

Best, MBZ

Product Version: UE 4.14
Tags:
more ▼

asked Nov 16 '16 at 06:16 PM in Bug Reports

avatar image

aerloth
26 2 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hey aerloth-

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here https://issues.unrealengine.com/issue/UE-38712 . You can track the report's status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.

Cheers

Doug Wilson

more ▼

answered Nov 16 '16 at 09:11 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The issue seems to be when you unload the first lighting scenario you made visible. A workaround is having an empty lighting scenario that is always loaded and visible. You will get this warning: "MULTIPLE LIGHTING SCENARIO LEVELS ENABLED", but the program does not crash. I'm unsure what this does to performance.

Interestingly, if instead of loading and unloading the levels. You make them always loaded, and just toggle the "Should be Visible" checkbox. One of the levels will remain visible, even when told to be invisible - and the crash does not occur. In this scenario L2 seems to always be the lighting scenario that remains visible no matter if my first key press is '1' or '2'. (Adding a scenario that is always visible also fixes this issue here).

Setup like this

ue-38712.png (138.4 kB)
more ▼

answered Nov 30 '16 at 11:59 AM

avatar image

MartijnDijksen
36 2 3 6

avatar image drpsyko Dec 05 '16 at 04:53 AM

Nice! Thanks for the workaround! Though should be noted that loading both lightmaps still incur more memory usage and loading time.

avatar image Sergei.k Dec 26 '16 at 04:51 AM

Same here.

Can confirm that keeping empty Lighting Scenario always ON - kind of solves the problem. However the First level becomes unbaked for some reason.

Regarding Should be visible node: I thought that only switches ON/OFF geometry. However, as I thought, if Lightmaps loaded they are visible anyway. BUT!!! I might be wrong. Please correct me.

avatar image Sergei.k Dec 26 '16 at 05:35 PM

Yes I'm wrong - "Should be visible" node - does the lightmap switch as well.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question