Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: Exiting GameLauncher and ServerLauncher causes asserts to be printed to the Terminal #323

Closed
LB-ArturZieba opened this issue Apr 6, 2023 · 2 comments
Assignees
Labels
kind/bug Something isn't working needs-triage Issue requires review priority/major Major priority. Work that should be handled after all blocking and critical work is done. triage/needs-information Indicates an issue needs more information in order to triage

Comments

@LB-ArturZieba
Copy link

Describe the bug
Exiting GameLauncher and ServerLauncher causes asserts to be printed to the Terminal they were launched from (Linux).

ServerLauncher asserts:
Assert#1
File:

/data/workspace/o3de/Code/Framework/AzCore/./AzCore/std/containers/vector.h

Condition:

(140650960039040) 'AZStd::vector::const_reference AZStd::vector<AZStd::intrusive_ptr<AZ::Vulkan::CommandQueue>>::operator[](AZStd::vector::size_type) const [T = AZStd::intrusive_ptr<AZ::Vulkan::CommandQueue>, Allocator = AZStd::allocator]'
AZStd::vector<>::at - position is out of range

Line: 547


Assert#2
File:

/data/workspace/o3de/Gems/Atom/RHI/Code/Source/RHI/Object.cpp

Condition:

(140650960039040) 'void AZ::RHI::Object::add_ref() const'
m_useCount is negative

Line: 34


Assert#3
File:

/data/workspace/o3de/Code/Framework/AzCore/./AzCore/std/smart_ptr/intrusive_ptr.h

Condition:

(140650960039040) 'T *AZStd::intrusive_ptr<AZ::Vulkan::BufferPool>::operator->() const [T = AZ::Vulkan::BufferPool]'
You can't dereference a null pointer

Line: 189


GameLauncher assert:
File:

/data/workspace/o3de/Gems/Atom/RHI/Vulkan/Code/Source/RHI/Vulkan.h

Condition:

(140240341694016) 'void AZ::Vulkan::AssertSuccess(VkResult)'
ASSERT: Vulkan API method failed: Device lost

Line: 96


Full assert logs are attached in the Video and full assert logs section.

It should be noted that this issue only occurred on Linux.

Steps to reproduce

  1. Follow steps listed here: https://github.com/o3de/o3de-multiplayersample/blob/stabilization/2305/README_LINUX.md to setup MultiplayerSample.
  2. Launch ServerLauncher and GameLauncher as described here: https://github.com/o3de/o3de-multiplayersample/blob/development/README_LINUX.md#step-4-setup-client-and-server.
  3. In the GameLauncher press Esc and click Quit in the menu.
  4. Look to the Terminals used to launch ServerLauncher and GameLauncher.

Expected behavior
No asserts are printed to the Terminals.

Actual behavior
Asserts are printed to the Terminals.

Video and full assert logs

AssertsOnExit.mp4

AssertLogs.txt

Found in Branch
o3de-multiplayersample: Stabilization/2305 (4cee1b1)
o3de-multiplayersample-assets: Stabilization/2305 (6739f1027152e68f67be361d77df2296dbf4e800)
o3de: Stabilization/2305 Installer (4/6/2023)

Desktop

  • Device: PC
  • OS: Linux
  • Version: Ubuntu 22.04.1 LTS
  • CPU AMD Ryzen 5 3600
  • GPU NVIDIA GeForce RTX 2060 SUPER
  • Memory 16GB
@LB-ArturZieba LB-ArturZieba added kind/bug Something isn't working needs-triage Issue requires review labels Apr 6, 2023
@lmbr-pip
Copy link
Contributor

lmbr-pip commented Apr 6, 2023

Split into issues per assert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working needs-triage Issue requires review priority/major Major priority. Work that should be handled after all blocking and critical work is done. triage/needs-information Indicates an issue needs more information in order to triage
Projects
None yet
Development

No branches or pull requests

2 participants