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

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

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: @log@/Editor.log
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)

If you need something else/more let me know.

What is your GPU???

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. )

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.

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…

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.

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.

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.

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.

No. Didn’t work…

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.

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.

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

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:

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. )

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

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… :joy:

@tom-hh

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.

1 Like

Hey @wcb,

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

Cheers!

Tom

@wcb @hultonha

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.

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.

OK. I know that this person @Lytz1 couldn’t check if it was the lyshine samples being turned off that caused the crash or not. All I know is that when I had lyshine examples turned off one time I would get crashes all the time when I tried to run the Canvas editor.

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