HARPLab / DReyeVR

VR driving 🚙 + eye tracking 👀 simulator based on CARLA for driving interaction research
https://arxiv.org/abs/2201.01931
MIT License
149 stars 40 forks source link

UE4 crash: Assersion failed: ResourceTableFrameCounter == INDEX_NONE #90

Closed ande269f closed 1 year ago

ande269f commented 1 year ago

When i'm running "make launch" the unreal engine starts and the windows shows up, starts loading and everything. After about 15 seconds it then crashes with this pop-up:

image

it links to this line in D3D11Texture.cpp:

image

i found the issue 2 times on the carla git issue page, but on one there was no solution: https://github.com/carla-simulator/carla/issues/6075#issue-1516312584, and on the other, it didnt make any sense to me: https://github.com/carla-simulator/carla/issues/6201#issue-1580627329

no errors happened in the vs2019 console:

image

ande269f commented 1 year ago

Also, we're not having access to any HTC vive pro, but to a HTC vive with pupillabs eyetracking add-on. Does this by any chance have supported in SRanipal as well?

GustavoSilvera commented 1 year ago

Hm I haven't seen this error before. What version of UnrealEngine are you using?

Are you using the CarlaUnreal fork of UE4.26, if so, what commit are you on? We mention you should switch the commit of Carla's UE4 fork to this version (d40ec35474e8793b4eea60dba6c4f051186e458e), since they made some changes for 0.9.14 that we don't support yet.

GustavoSilvera commented 1 year ago

As for the Pupillabs eye tracking, I'm not sure if they use the SRanipal SDK, but my guess is probably not. Judging by a quick search on their website suggests they have plugins for Unity and a localhost connection via Worldviz. SRanipal is specifically designed for the HRC Vive Pro eye, so I doubt it would be compatible.

But if you add the logic for interfacing with the eye tracking software we'd be happy to merge it in DReyeVR to widen accessibility!

ande269f commented 1 year ago

okay, i see that i might be using the wrong branch. I'm a little new to Git, so maybe this is not the right way of doing it.

image

image

I found a way of changing the branch (https://devopscube.com/checkout-clone-specific-git-commit-id-sha/), but only when the branch SHA id shows up with the "git log" command. The d40ec35474e8793b4eea60dba6c4f051186e458e id doesnt show up. Does it mean that i have messed up in one of the first steps? And is it possible to fix now without a re-install of everything?

ande269f commented 1 year ago

As for the Pupillabs eye tracking, I'm not sure if they use the SRanipal SDK, but my guess is probably not. Judging by a quick search on their website suggests they have plugins for Unity and a localhost connection via Worldviz. SRanipal is specifically designed for the HRC Vive Pro eye, so I doubt it would be compatible.

But if you add the logic for interfacing with the eye tracking software we'd be happy to merge it in DReyeVR to widen accessibility!

Okay, thank you :) I would love to contribute to that, but i'm on the edge of my technical abilities :')

GustavoSilvera commented 1 year ago

Okay, yeah your git log technique demonstrates that you are currently on the latest commit of the carla branch (here) which is expected if you recently performed a fresh clone of the repository.

However, as we explain here, you should try to switch the repository back to the d40ec35474e8793b4eea60dba6c4f051186e458e commit as follows:

# in $UE4_ROOT
git checkout d40ec35474e8793b4eea60dba6c4f051186e458e

if the above doesn't work for some reason, try

# in $UE4_ROOT
git reset --hard d40ec35474e8793b4eea60dba6c4f051186e458e

You can verify that the commit has been switched by performing another git log and seeing the d40ec35474e8793b4eea60dba6c4f051186e458e commit hash as the "top" (most recent) commit.

Once this is switched, you'll want to rebuild UE4 as you did the first time (most of the changes are small so it should cache most of the build steps and you won't need to rebuilt entirely)

ande269f commented 1 year ago

ahh okay, so its because i did an update.bat at some point, i think that updated my carla from 1.3 to 1.4 Grrr.. also, i think i did the git checkout at a wierd, non-sequencial point, which only showed to be a problem now.

i tried both "git checkout" and "git reset --hard" but it doesn't even recognize the SHA ID (d40ec35474e8793b4eea60dba6c4f051186e458e) at all:

image

GustavoSilvera commented 1 year ago

Oh, this is because you cloned the UE4 repository with --depth 1 which does not keep any history.

You can restore this history by running git pull --unshallow from here

Then try the checkout again.

ande269f commented 1 year ago

you're amazing! Thank you so much. My editor works now :)

LucasFKobernic commented 4 months ago

Hi @GustavoSilvera

I also changed the branch to the commit: d40ec35474e8793b4eea60dba6c4f051186e458e, but when running the Setup.bat I'm getting the follwing error:

Failed to download 'http://cdn.unrealengine.com/dependencies/UnrealEngine-12372779-e1515af26c634d2a8ade60b1afd1f065/01bb78539fc8dda386d45f9b5615f9a1e8ca5d94': Der Remoteserver hat einen Fehler zurückgegeben: (403) (WebException).

May is the link not more accessible ?