o3de / o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.
https://o3de.org
Other
7.84k stars 2.21k forks source link

Editor Crashes on Startup #15871

Open AMZN-alexpete opened 1 year ago

AMZN-alexpete commented 1 year ago

Describe the bug After creating a new project with 23.05 and starting the Editor.exe it crashes. Happened several times before in stabilization/2305 branch, but wasn't able to reproduce it after all assets were compiled.

Possibly relevant: LY_RENDERDOC_ENABLED andLY_PIX_ENABLED were set to ON when configuring AutomatedTesting in the stabiliztion/2305 branch, however the issue is reproducing in the installer build that doesn't have those flags.

It looks like Editor crashes in CStartupLogoDialog::SetInfoText when it calls m_ui->m_TransparentText->setText(text); from a thread other than the main thread. When I was attempting to fix this, moving the call to the main thread seemed to fix the issue, but then after all the assets were processed the issue did not repro.

Thread: APConnectRecv

Exception thrown: read access violation.
obj->**** was nullptr.
    Qt5Core.dll!QMetaObject::cast(const QObject * obj) Line 371 C++
    Qt5Gui.dll!QAccessible::updateAccessibility(QAccessibleEvent * event) Line 877  C++
    Qt5Widgets.dll!QLabel::setText(const QString & text) Line 368   C++
    EditorLib.dll!00007ffef08505db()    Unknown

Assets required n/a

Steps to reproduce Steps to reproduce the behavior:

  1. Create a new project with O3DE SDK 23.05 Visual Studio 2019
  2. Build the project
  3. Launch the Editor,exe

Expected behavior Editor starts

Actual behavior Editor crashes in Qt5Core.dll, no error log is generated.

Screenshots/Video n/a

Found in Branch main

Commit ID from o3de/o3de Repository 515f0cc

Desktop/Device (please complete the following information):

Additional context Add any other context about the problem here.

mbalfour-amzn commented 1 year ago

@AMZN-alexpete might be fixed by this? https://github.com/o3de/o3de/pull/16156