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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

[Perforce] Asset reload upon revert not reliable

Hi. Currently an altered and opened asset would not "live reload" when reverted in the content browser. it is possible to close this asset, say a material, and then reopen it through the content browser. However it is not always changed back to the reverted asset, when you do so. sometimes the altered state is still in memory and shown again.

A minor problem but it happened to me now a few times. especially with materials. so it might be worth mentioning.

Perhaps it is an Idea to "force close" all opened assets that are reverted via the content browser. And then "force reloaded" again?

Product Version: Not Selected
Tags:
more ▼

asked Oct 17 '14 at 12:54 AM in Bug Reports

avatar image

[PB]Aphexx
309 25 27 42

avatar image Adam Davis STAFF Oct 17 '14 at 03:57 PM

Hi [PB]Aphexx,

What version of the editor are you currently using? Does this occur on a clean project with no additional content?

avatar image [PB]Aphexx Oct 20 '14 at 08:53 AM

currently i'm on 4.5 which has custom content. but on earlier versions i could also reproduce with a clean project.

avatar image Adam Davis STAFF Oct 20 '14 at 07:16 PM

We have not been able to reproduce this error on our end. Do you have any specific steps that reproduce this error?

avatar image [PB]Aphexx Oct 24 '14 at 09:58 AM

hmm. ok i do not have an unaltered version currently. but our changes to the engine are so minor and not in this area of it. the issue happens to me all the time. especially when modifying materials. steps to reproduce that work for me:

-create a material. try a complex one. -add to database(is done automatically at creation) -create mat instance from it -add to database -place mat instance on some object in the scene -save submit -reload map -open shader material and mess it up -revert shader in content browser with rightclick on ressource. -> opened shader document will not close and reopen or reload

alternatively: -reload map -open shader material and mess it up and close the shader -then revert in content browser -reopen shader with double click in content browser ->see the messed up shader still shows up although the shader was reverted

avatar image Lovecraft_K ♦♦ STAFF Oct 31 '14 at 07:42 PM

Hey [PB]Aphexx -

Sorry for the delay, but we have been trying to reproduce this revert issue internally and have not been successful on any version of the engine from 4.3 to 4.5.1. This leads me to believe that this issue may reside in the connection between your particular Perforce Server and the editor. I would check first and foremost the connection between your CPU and the Perforce server that is holding your saved builds. In most cases this is a local server, but if it is not check to ensure that you have a health PING. The reason I suggest this test is because from your reproduction steps above it sounds like something isn't getting officially updated / reverted in real time.

If you can give me any more information about your perforce setup I might be able to suggest some solutions, but I am not necessarily able to debug a Perforce connection directly here.

Thank You

Eric Ketchum

avatar image kylawl Mar 26 '15 at 05:32 PM

We have never managed to get the revert to work in the editor (since version 4.0 last year). Yes it will revert the file but it has never ever reloaded the asset, we always have to close the editor. We're currently on 4.7.3.

We've used all perforce server versions from 2013 to the new 2015 beta.

I don't think this has anything to do with our server, the file reverts, the editor doesn't load the reverted asset.

Edit: I can even edit, save and revert a material, see in the editor that it is not checked out. But if I diff it, it will show that the loaded one is modified.

avatar image [PB]Aphexx Mar 26 '15 at 05:39 PM

exactly. this is what i meant. you'll have to restart for this. what it needs is an "unload" followed by a "reload" right after the file got reverted.

avatar image Lovecraft_K ♦♦ STAFF Mar 26 '15 at 05:45 PM

Hi kylawl -

Can you be specific with a case example? Does this happen with a specific type of file, a level, a texture, a material? Any additional information you can give will help us narrow down a solution?

Thank You

Eric Ketchum

avatar image [PB]Aphexx Mar 26 '15 at 05:51 PM

for me this happens for all possible uassets or umaps, well at least i didn't get it working that way. i believe it's simply an unload-reload functionality, triggered by an inengine perforce revert, that is missing in the code

avatar image kylawl Mar 26 '15 at 05:52 PM

Any asset type as far as I can tell. We've tried materials, textures, blueprints unsuccessfully.

We have also tested this with both a P4 proxy connected to a remote server on the internet. As well as on our full duplex gigabit LAN.

We're working from a source build of the engine with no major modifications, certainly no changes at all to the asset system.

We are currently NOT using a shared derived data cache.

avatar image [PB]Aphexx Mar 26 '15 at 05:57 PM

i just tested it on the "M_Ground_Moss" material. double click it. remove a couple of wires in the shader network. then save. you'll be prompted to check out. do that. then rightclick the material, and revert it in the context menu. youl see that the file will be reverted logically in perforfe, but the material editor will stay open, still showing the altered shadernetwork.

closing the material and reopen it from the context browser will also still show the material with the removed wires although you already reverted. simple as that.

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

1 answer: sort voted first

Hi [PB]Aphexx and kylawl -

Ok thank you both for the additional information I was finally able to experience what you both are reporting. I have entered a bug report asking about the need to offer a reload option after the revert option is selected, for reference UE-12865. I will say that on my end I was able to work around this issue if before reverting an item I make sure that it is closed in the engine. So for a material, make sure that it is not open in the material editor then revert and upon opening it again your reverted asset should appear. I know that this is not the hot reloading that you are expecting, but it is a small workaround for the time being. As our engineers dig into this issue, I will keep you both informed here.

Thank you both for your patience with this issue -

Eric Ketchum

more ▼

answered Mar 26 '15 at 06:39 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 735

avatar image kylawl Mar 26 '15 at 06:51 PM

Thanks Eric.

avatar image [PB]Aphexx Mar 26 '15 at 08:03 PM

superb, thx eric!

avatar image fudo Dec 05 '17 at 03:47 PM

Hi Eric, i'm looking for the bug in the issues because i'm esperiencing the same problem with ue4.17, but i could'nt find it, not even closed.

https://issues.unrealengine.com/issue/UE-12865

Is this bug still open or could this be my own pc?

Thanks in advance

(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