LY suddenly crashes 100% all the time when opening Canvas UI Editor (In any project)

0

Suddenly when opening the UI Canvas Editor I get a white window for a second or two then I get this error message:

REMOVEDUPLOAD

This is global. (Also happens when I change projects.) Because LYShine can't be disabled/re-enabled as a GEM I don't know how to approach this. This is engine-wide, across all projects.

Also, I am not sure which log might help here, if any. Here's the editor log:

<23:58:43> ========================= Errors =========================
<23:58:43>   0) [ 1]	[      ]	(Audio) - ATL - Trigger not found for: ATLInternalControlIDs::GetFocusTriggerID	 
<23:58:43>   1) [ 4]	[      ]	(PhysX) - UpdateMaterialSelectionFromPhysicsAsset: No material found for surfaceType (editorprimitive) in the collider material library	 
<23:58:43> ========================= End Errors =========================
<23:58:46> Disable Accelerators
<23:58:47> [Warning] (PhysX) - UpdateMaterialSelectionFromPhysicsAsset: No material found for surfaceType (editorprimitive) in the collider material library
<23:58:47> [Warning] XML parser: not well-formed (invalid token) at line 1
<23:58:47> [Warning] XML parser: not well-formed (invalid token) at line 1
<23:58:47> [Warning] XML parser: not well-formed (invalid token) at line 1
<23:58:47> [Warning] XML parser: not well-formed (invalid token) at line 1
<23:58:47> [Warning] XML parser: not well-formed (invalid token) at line 1
<23:58:47> [Warning] XML parser: not well-formed (invalid token) at line 1
<23:58:47> SetGlobalState 11->2 'LEVEL_LOAD_TEXTURES'->'RUNNING' 19.8 seconds
<23:59:26> [Warning] (PhysX) - UpdateMaterialSelectionFromPhysicsAsset: No material found for surfaceType (editorprimitive) in the collider material library
<23:59:26> [Warning] (PhysX) - UpdateMaterialSelectionFromPhysicsAsset: No material found for surfaceType (editorprimitive) in the collider material library
<23:59:26> Enable Accelerators
<23:59:34> () - 00007FFC2691BB47 (KERNELBASE) : UnhandledExceptionFilter
<23:59:34> () - 00007FFC29114973 (ntdll) : memset
<23:59:34> () - 00007FFC290FB906 (ntdll) : _C_specific_handler
<23:59:34> () - 00007FFC291110FF (ntdll) : _chkstk
<23:59:34> () - 00007FFC290BB474 (ntdll) : RtlRaiseException
<23:59:34> () - 00007FFC2910FC2E (ntdll) : KiUserExceptionDispatcher
<23:59:34> () - c:\Amazon\Lumberyard\1.26.0.0\dev\Code\CryEngine\RenderDll\XRenderD3D9\DriverD3D.cpp (6629) : (function-name not available)
<23:59:34> () - 00007FFBCFFC8B14 (UiCanvasEditor) : (function-name not available)
<23:59:34> () - 00007FFBF9E48468 (Qt5Core) : QMetaObject::activate
<23:59:34> () - c:\Amazon\Lumberyard\1.26.0.0\dev\BinTemp\win_x64_vs2019_profile\qt5\EditorCommon.1308156\QViewport.moc (220) : (function-name not available)
<23:59:34> () - c:\Amazon\Lumberyard\1.26.0.0\dev\Code\Sandbox\Plugins\EditorCommon\QViewport.cpp (942) : (function-name not available)
<23:59:34> () - c:\Amazon\Lumberyard\1.26.0.0\dev\Code\Sandbox\Plugins\EditorCommon\QViewport.cpp (1017) : (function-name not available)
<23:59:34> () - c:\Amazon\Lumberyard\1.26.0.0\dev\Code\Sandbox\Plugins\EditorCommon\QViewport.cpp (483) : (function-name not available)
<23:59:34> () - 00007FFBCFFC8A89 (UiCanvasEditor) : (function-name not available)
<23:59:34> () - 00007FFBF9E48468 (Qt5Core) : QMetaObject::activate
<23:59:34> () - 00007FFBF9E54F6D (Qt5Core) : QTimer::timerEvent
<23:59:34> () - 00007FFBF9E4DF41 (Qt5Core) : QObject::event
<23:59:34> () - 00007FFBF13B911D (Qt5Widgets) : QApplicationPrivate::notify_helper
<23:59:34> () - 00007FFBF13B7FF7 (Qt5Widgets) : QApplication::notify
<23:59:34> () - 00007FFBF9E27829 (Qt5Core) : QCoreApplication::notifyInternal2
<23:59:34> () - 00007FFBF9E72C5C (Qt5Core) : QEventDispatcherWin32Private::sendTimerEvent
<23:59:34> () - 00007FFBF9E70C58 (Qt5Core) : QEventDispatcherWin32::event
<23:59:34> () - 00007FFBF13B911D (Qt5Widgets) : QApplicationPrivate::notify_helper
<23:59:34> () - 00007FFBF13B7FF7 (Qt5Widgets) : QApplication::notify
<23:59:34> () - 00007FFBF9E27829 (Qt5Core) : QCoreApplication::notifyInternal2
<23:59:35> Successfully recorded DMP file:  'C:\Amazon\Lumberyard\1.26.0.0\dev\Cache\KL_DefaultTest1\pc\user\log/error.dmp'
<23:59:35> (Editor) - Saving level backup to 'C:/Amazon/Lumberyard/1.26.0.0/dev/KL_DefaultTest1/Levels/Simple/_savebackup/2020-12-03 [23.59.35]/'...
<23:59:35> [Warning] Attempting to save backup to C:/Amazon/Lumberyard/1.26.0.0/dev/KL_DefaultTest1/Levels/Simple/_savebackup/2020-12-03 [23.59.35]/ before saving, but could not write all files.

Here is the error log:

Logged at Friday, December 04, 2020 00:09:30
FileVersion: 1.26.0.0
ProductVersion: 1.26.0.0
LogFile: @REDACTEDUSER
GameDir: KL_DefaultTest1
Executable: Editor.exe (debug: no test: no)

Exception Code: 0xC0000005
Exception Addr: 0x0033:0x00007FFBD16CCC68
Exception Module: 
Exception Description: EXCEPTION_ACCESS_VIOLATION, Attempt to read from address 0x00000001

The memory could not be "read"
Memory in use: 1423.4MB
Debug Status: 
Out of Memory: 0

Call Stack Trace:
25) 00007FFC2691BB47 (KERNELBASE) : UnhandledExceptionFilter
24) 00007FFC29114973 (ntdll) : memset
23) 00007FFC290FB906 (ntdll) : _C_specific_handler
22) 00007FFC291110FF (ntdll) : _chkstk
21) 00007FFC290BB474 (ntdll) : RtlRaiseException
20) 00007FFC2910FC2E (ntdll) : KiUserExceptionDispatcher
19) c:\Amazon\Lumberyard\1.26.0.0\dev\Code\CryEngine\RenderDll\XRenderD3D9\DriverD3D.cpp (6629) : (function-name not available)
18) 00007FFBCD1D8B14 (UiCanvasEditor) : (function-name not available)
17) 00007FFBF9E48468 (Qt5Core) : QMetaObject::activate
16) c:\Amazon\Lumberyard\1.26.0.0\dev\BinTemp\win_x64_vs2019_profile\qt5\EditorCommon.1308156\QViewport.moc (220) : (function-name not available)
15) c:\Amazon\Lumberyard\1.26.0.0\dev\Code\Sandbox\Plugins\EditorCommon\QViewport.cpp (942) : (function-name not available)
14) c:\Amazon\Lumberyard\1.26.0.0\dev\Code\Sandbox\Plugins\EditorCommon\QViewport.cpp (1017) : (function-name not available)
13) c:\Amazon\Lumberyard\1.26.0.0\dev\Code\Sandbox\Plugins\EditorCommon\QViewport.cpp (483) : (function-name not available)
12) 00007FFBCD1D8A89 (UiCanvasEditor) : (function-name not available)
11) 00007FFBF9E48468 (Qt5Core) : QMetaObject::activate
10) 00007FFBF9E54F6D (Qt5Core) : QTimer::timerEvent
 9) 00007FFBF9E4DF41 (Qt5Core) : QObject::event
 8) 00007FFBF13B911D (Qt5Widgets) : QApplicationPrivate::notify_helper
 7) 00007FFBF13B7FF7 (Qt5Widgets) : QApplication::notify
 6) 00007FFBF9E27829 (Qt5Core) : QCoreApplication::notifyInternal2
 5) 00007FFBF9E72C5C (Qt5Core) : QEventDispatcherWin32Private::sendTimerEvent
 4) 00007FFBF9E70C58 (Qt5Core) : QEventDispatcherWin32::event
 3) 00007FFBF13B911D (Qt5Widgets) : QApplicationPrivate::notify_helper
 2) 00007FFBF13B7FF7 (Qt5Widgets) : QApplication::notify
 1) 00007FFBF9E27829 (Qt5Core) : QCoreApplication::notifyInternal2


Suspended thread (Physics):
10) 00007FFC2910BE24 (ntdll) : ZwWaitForSingleObject
 9) 00007FFC268326EE (KERNELBASE) : WaitForSingleObjectEx
 8) c:\Amazon\Lumberyard\1.26.0.0\dev\Code\CryEngine\CrySystem\System.cpp (1213) : (function-name not available)
 7) c:\Amazon\Lumberyard\1.26.0.0\dev\Code\CryEngine\CrySystem\System.cpp (1102) : (function-name not available)
 6) c:\Amazon\Lumberyard\1.26.0.0\dev\Code\CryEngine\CrySystem\ThreadTask.cpp (98) : (function-name not available)
 5) c:\Amazon\Lumberyard\1.26.0.0\dev\Code\CryEngine\CrySystem\ThreadTask.cpp (124) : (function-name not available)
 4) c:\Amazon\Lumberyard\1.26.0.0\dev\Code\CryEngine\CryCommon\CryThread_windows.h (334) : (function-name not available)
 3) 00007FFC26B014C2 (ucrtbase) : configthreadlocale
 2) 00007FFC28917034 (KERNEL32) : BaseThreadInitThunk
 1) 00007FFC290BCEC1 (ntdll) : RtlUserThreadStart

And if needed, here is the error.dmp dump: (~3Mb zipped, 87Mb unzipped)

https://www.dropbox.com/s/b6hzct0h01ewg57/error_dmp.zip?dl=0

If you need something else/more let me know.

asked 3 years ago161 views
23 Answers
0
Accepted Answer

[quote="wcb, post:11, topic:9835"] LyShine Samples gem [/quote]

Hmmmm... The samples... I'll take a look.

EDIT: Indeed, in the last project I edited I disabled them. They are still enabled in all the other projects though. I would really like someone from the team to check on this. If it is possible that a disabled "examples" gem in one project corrupts everything engine wide. That would be quite scary.

(EDIT2: I am just finished with the uninstall/reinstall anyway, so unfortunately I can't check now if enabling it back again in that project and rebuilding it would fix this. That's hard to believe though. The uninstall/reinstall however fixed this. )

answered 3 years ago
0

What is your GPU????

answered 3 years ago
0

Nvidia GTX 680

I don't quite understand though why any GPU would make LY crash when open the UI Editor.

Also why just since today. You really think GPU could trigger this? Can you elaborate on that?

(I actually could switch Graphics cards. I put in the Nvidia two or three days ago to see if there is a performance difference - because of these motion stutterings -and CUDA support. The other one is an ATI. I could switch back to the ATI, it's much newer and has way better specs. I would lose CUDA support though. )

answered 3 years ago
0

Have you tried updating your drivers? I'm just trying to help you. I'm not exactly sure if this can help but I just glanced at the stack trace and someone can correct me if I'm wrong but it looks like it's coming from the renderer so I was thinking maybe it's a driver issue.

answered 3 years ago
0

Thanks for that. Unfortunately, these are the latest drivers. I updated everything when I installed LY a couple of days ago. So I don't think this is in play here.

Deleting the BinTemp folder and going through a larger required rebuild afterwards also didn't help. Just finished that right now. I think I need to wait.

Otherwise uninstall/reinstall again. But that would be 5th or 6th time. I think I'd rather wait until the next version is released if that's my only option. But I will try switching GPUs tomorrow, who knows, maybe your instinct is correct.

You know what, I think I do this right now, why not...

answered 3 years ago
0

No. ATI Card = same thing. But at least I tried.

FYI: I went through the whole Tools Menu. All other Editors work. (open without freezing/crashing) The Canvas UI Editor is the only exception.

I am out of ideas now. I'll wait until hopefully someone with more insight can tell me more.

answered 3 years ago
0

Just a hail mary but another thing you might try is opening the canvas UI without having a level open in the main editor. I've found that sometimes the particle editor will mess up if I have a level open in the main editor. Worth a shot.

Might also try deleting what's in the Cache folder and doing a redo for asset generation with the asset processor.

answered 3 years ago
0

[quote="wcb, post:7, topic:9835"] Just a hail mary but another thing you might try is opening the canvas UI without having a level open in the main editor. I’ve found that sometimes the particle editor will mess up if I have a level open in the main editor. Worth a shot. [/quote]

Did that already. :slight_smile:

Might also try deleting what’s in the Cache folder and doing a redo for asset generation with the asset processor.

Alright, will try that too.

answered 3 years ago
0

I had this issue before, and a fresh full rebuild fixed the issue for me. It must have forgotten something in the build the first time around for me. maybe the same problem for you? not sure though.

answered 3 years ago
0

[quote="wcb, post:7, topic:9835"] Might also try deleting what’s in the Cache folder and doing a redo for asset generation with the asset processor. [/quote] No. Didn't work...

[quote="WashedUpStudios, post:9, topic:9835, full:true"] I had this issue before, and a fresh full rebuild fixed the issue for me. It must have forgotten something in the build the first time around for me. maybe the same problem for you? not sure though. [/quote]

Thanks for the info. I really hoped I didn't have to reinstall again. Did that already 3 or 4 times... That's all in all ~20 hours uninstall/reinstall already in 8 days or so... . :face_with_head_bandage:

What I really don't get is that it just stopped working today... Nothing changed since yesterday. The last couple of days were fine, I used the UI Editor without any problems.

answered 3 years ago
0

Well, I know you've been messing with reducing the size of your executable. It may be the case that you disabled like, LyShine Samples gem or something and it may be trying to load them and crashing it.

answered 3 years ago
0

You can't disable LyShine. I've looked into that right in the beginning as stated in the original post:

[quote="Lytz1, post:1, topic:9835"] Because LYShine can’t be disabled/re-enabled as a GEM I don’t know how to approach this. [/quote]

It is required 100%.

Also if you would disable a GEM it wouldn't be available in the editor in the first place, no? :slight_smile:

answered 3 years ago
0

Yeah. I think it's beacuse LyShine actually requires some components in the LyShine Samples gem for some reason.

answered 3 years ago
0

If that's really the case the "Samples" should also be marked as "required" and forced to stay selected if otherwise the whole friggin' engine falls apart... 😂

answered 3 years ago
0

@REDACTEDUSER

tagging this so someone on the team sees it. This is actually really important because I've also experienced this. LyShine samples should be marked as required or all required components moved to LyShine gem.

answered 3 years ago
0

Hey @REDACTEDUSER

Thanks for letting me know, I'll ping someone from the LyShine team about this.

Cheers!

Tom

answered 3 years ago
0

@REDACTEDUSER

Created an issue for this LY-123012. After investigating, I don't believe there is a dependency from LyShine to LyShineExamples. Here's the relevant section from LyShine's gem.json file:

"Dependencies": [
{ "Uuid": "ff06785f7145416b9d46fde39098cb0c", "VersionConstraints": [ "~>0.1" ], "_comment": "LmbrCentral" },
{ "Uuid": "5a149b6b3c964064bd4970f0e92f72e2", "VersionConstraints": [ "~>0.1" ], "_comment": "Texture Atlas" }
]

And here's a search by UUID of all of the gems that do rely on LyShineExamples:

rg -F c7935ecf5e8047fe8ca947b34b11cadb --iglob *.json AutomatedTesting\gems.json StarterGame\gems.json SamplesProject\gems.json ProjectTemplates\AtomTemplate${ProjectName}\gems.json ProjectTemplates\DefaultTemplate${ProjectName}\gems.json LargeWorldsTest\gems.json Gems\GameStateSamples\gem.json Helios\gems.json

I tried it out and disabled the LyShineExamples gem, and was able to launch the UiFeatures level as well as the UI Canvas Editor without any issues.

answered 3 years ago
0

When referring to "launching" the UiFeatures level with LyShineExamples disabled - none of the canvases within the level actually load (since the canvases live in LyShineExamples). But the level itself is able to open, close, and enter/exit game mode without any crashes.

answered 3 years ago
0

OK. I know that this person @REDACTEDUSER

So based on that I presumed Lyshine requires something in the lyshine samples gem regardless of what that JSON says.

answered 3 years ago
0

This is true. Also:

[quote="WashedUpStudios, post:9, topic:9835, full:true"] I had this issue before, and a fresh full rebuild fixed the issue for me. It must have forgotten something in the build the first time around for me. maybe the same problem for you? not sure though. [/quote]

So I am not sure if this really can be eliminated 100% as the problem.

@REDACTEDUSER Which version are you using? Maybe something silently changed in 1.27? I uploaded the error.dmp etc, maybe someone already looked at it? IDK.

Then again it seems that sometimes LY behaves quite randomly on different systems. I don't know. But anyway, reinstall helped here.

answered 3 years ago
0

Whoa. Same thing again right now. Just like that.
I think it might be true that the shine examples might not have anything to do with it. I didn't touch any gems the last couple of days.

The only thing I did is I switched projects to a different one (where a rebuild was required, so I didn't want to do that because -> time... time... time...) and then back. And then UI broke again.

I am switching to a new system in a couple of days, then I need to reinstall anyway. So no big deal. But man, someone really should take a look at this...

(BTW: In this project I use the render to texture gem, rendering something from the UI onto geometry in the 3d world. Render to texture is tagged as "experimental", so maybe that has something to do with it? Not sure if anyone else who had that problem can remember if they might have used the render target feature as well...)

answered 3 years ago
0

I use render to texture with no issue, when you rebuilt your other project did you just do game and engine or all? Because with just game and engine it should not break like that, all will transfer game to game with what you rebuilt that I can see.

answered 3 years ago
0

No no, I always build game & engine -p.

Was just a guess. But unfortunately it seems no one can do more right now than guessing... Until someone takes a look at the error dump. :slight_smile:

Like I said, I think there is some random shenanigans going on from time to time.

We'll see how everything goes when I have the new system running. The actual one behaves a bit wonky in general with several applications.

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions