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

Intermittent crash in Multiplayer Sample #51

Open
mbalfour-amzn opened this issue May 17, 2023 · 0 comments
Open

Intermittent crash in Multiplayer Sample #51

mbalfour-amzn opened this issue May 17, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mbalfour-amzn
Copy link

When running the MultiplayerSample GameLauncher client in the development branch, I get intermittent crashes with the following callstack:

>	PopcornFX.dll!PopcornFX::_ExpandAndInterpolatePayload_0x0C_f32x3(const void * srcPtrA, const void * srcPtrB, const void * srcPtrAd, const void * srcPtrBd, const PopcornFX::TMemoryView<unsigned int const> & cacheParentId, const PopcornFX::TMemoryView<float const> & cacheCursors, void * curPayloadPtr, unsigned int count, const PopcornFX::SPayloadElementView::ELerpSemantic payloadLerpSemantic) Line 696	C++
 	PopcornFX.dll!PopcornFX::CParticleTask_KickEvent::_VirtualLaunch(PopcornFX::Threads::SThreadContext & threadContext) Line 1441	C++
 	PopcornFX.dll!PopcornFX::CAsynchronousJob::_LaunchReady(PopcornFX::Threads::SThreadContext & threadContext) Line 232	C++
 	PopcornFX.dll!PopcornFX::CWorkerThread::Run() Line 123	C++
 	PopcornFX.dll!PopcornFX::CThread::ThreadStartAddress(void * param) Line 643	C++

The specific crash in this example is: Exception thrown at 0x00007FFB383355D8 (PopcornFX.dll) in MultiplayerSample.GameLauncher.exe: 0xC0000005: Access violation reading location 0x000001C45345C740.

Here are all of the local variables available in VS at the point of the crash:

<title>Document</title>
  Name Value Type
cacheCursors {m_Data=0x000000a71e7ff410 "\x14\x1" m_Count=0x0000007c } const PopcornFX::TMemoryView &
  ▶ m_Data 0x000000a71e7ff410 "\x14\x1" const unsigned char *
  m_Count 0x0000007c unsigned int
cacheParentId {m_Data=0x000000a71e7ff610 "0ü�\x1e§" m_Count=0x0000007c } const PopcornFX::TMemoryView &
  ▶ m_Data 0x000000a71e7ff610 "0ü�\x1e§" const unsigned char *
  m_Count 0x0000007c unsigned int
  count 0x0000000c unsigned int
  curPayloadPtr 0x000001c30eb63840 void *
  f Variable is optimized away and not available.  
  payloadLerpSemantic LerpSemantic_Linear (0x00000001) PopcornFX::SPayloadElementView::ELerpSemantic
  srcPtrA 0x000001c2e545f440 const void *
  srcPtrAd Variable is optimized away and not available.  
  srcPtrB 0x000001c2e545f500 const void *
  srcPtrBd Variable is optimized away and not available.  

There are several asserts in _VirtualLaunch when running with a debug build, it's possible this crash is related to those asserts.

@ValPKFX ValPKFX self-assigned this May 23, 2023
@ValPKFX ValPKFX added the bug Something isn't working label May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants