Announcement

Collapse
No announcement yet.

UMG - " Reference will be NULLed" on widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    UMG - " Reference will be NULLed" on widget

    Hello,

    Just to help other people who encounter the same issue as me on the 4.16.

    In a package (on XboxOne but it might be on other platforms), I had a widget (ModeSelectionModel) included in another one (MainMenu) that was not loading and just replaced by Null.
    I've got this message in the logs :

    Code:
    [2017.05.31-12.55.25:503][ 45]LogProperty:Warning: Serialized Class /Script/CoreUObject.LinkerPlaceholderExportObject for a property of LinkerPlaceholderClass /Game/Widgets/MainMenu/MainMenu.PLACEHOLDER-CLASS__ModeSelectionModel_C_0. Reference will be NULLed.
        Property = ObjectProperty /Game/Widgets/MainMenu/MainMenu.MainMenu_C:ModeSelectionModel
        Item = LinkerPlaceholderExportObject /Game/Widgets/MainMenu/MainMenu.PLACEHOLDER-INST_of_ModeSelectionModel_C_0
    If you have a similar issue, you will have to go the Class Settings of your widget (I did it on the child widget and the parent to be sure, but maybe just one or another will fix) and check "Force Slow Construction Path" in the "Widget Blueprint Options" category.

    Cheers !

    #2
    It's a warning that the linker has failed to load circularly dependent data. Would be curious if you could share a small project that recreates this issue.

    Comment


      #3
      Unfortunately, there is too much dependencies (plugins + C++ + a lot of other resources) to recreate a small project quickly with these 2 widgets. I don't think I will have time for now, sorry
      I looked at how these widgets were linked but it does not seems to have "circular" issues between them *directly* (maybe in another way?).

      Click image for larger version  Name:	Capture.JPG Views:	1 Size:	130.3 KB ID:	1128943

      Also, the child widget do not refer to its parent widget in any way (variable or use in blueprint code).
      I noticed that both of them are children (in a blueprint way) of the same blueprint.
      I mean :
      MainMenu inherits from MenuPage.
      ModeSelectionModel inherits from MenuPage.
      MainMenu act like a container of ModeSelectionModel and is just a Canvas with ModeSelectionModel in it.

      I would like to check if this issue also appear on Windows but, as I said, I don't have time to investigate right now, sorry :/
      Last edited by Begounet; 08-27-2017, 11:42 AM.

      Comment


        #4
        Thank you Begounet,
        This has been helpful; experienced a similar situation.
        Cheers.

        Comment


          #5
          I've got another issue linked to the "Force Slow Construction Path" a few days ago, so I just want to report it.
          One of my UMG widget was using UDataTables as variables (owned by the class) but it seems that all the DataTables lost their references, and became "Null" when running on XboxOne. I solved the issue by enabling "Force Slow Construction Path" again.
          I have multiple widgets that hold UDataTable references but they did not all lose their reference, only this one.
          Like the other widget of my first post, there is a lot of dependencies and I cannot make a package with just that :/

          Comment


            #6
            I had been getting warnings errors like crazy. So I enabled "Force Slow Construction Path" in some of our widgets and now the packaged version throws this error on launch:

            [2017.08.24-14.39.59:399][ 86]LogWindows:Error: === Critical error: ===
            [2017.08.24-14.39.59:400][ 86]LogWindows:Error:
            [2017.08.24-14.39.59:400][ 86]LogWindows:Error: Assertion failed: InCanTemplate [File:E:\416_3\Engine\Source\Runtime\UMG\Private\WidgetBlueprintGeneratedClass.cpp] [Line: 131]
            [2017.08.24-14.39.59:400][ 86]LogWindows:Error:
            [2017.08.24-14.39.59:401][ 86]LogWindows:Error:
            [2017.08.24-14.39.59:401][ 86]LogWindows:Error:
            [2017.08.24-14.39.59:401][ 86]LogWindows:Error: KERNELBASE.dll!0x00000000214A5BF8

            But yes, our game is effectively broken. We migrated from 4.15 to 4.16.3 and the problem only seems to happen in 4.16.

            4.17 -- The editor simply crashes to desktop, the crash reporter does not load.

            Update: I found some more parent widgets that didn't have the FSCP turned on. It's not enough to just set it for the children. That got things rolling again. Still have several other widgets becoming Null. But we're making progress.

            It would be nice to know if this issue will be addressed in 4.17 and if we should simply wait for that. As of now we have to keep track of each widget we set.
            Last edited by Taurian; 08-24-2017, 03:45 PM.

            Comment


              #7
              Got this today updating from 4.18 to 4.19 ... it was a disaster until I found the solution by OP. thanks.
              Website/Portfolio: http://www.VictorBurgosGames.com

              Join me on stream: https://www.twitch.tv/BurgosGames for UE4 Game Dev. If you need help, just stop by and ask!

              Wishlist Neko Ghost, Jump! a 2D/3D Puzzle-Platformer : https://store.steampowered.com/app/1...ko_Ghost_Jump/

              Comment

              Working...
              X