Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Are you seeing a crash in Details Customization?

0 votes

We got a crash when, in the UE4 Editor, we delete an audio actor containing a UAkSurfaceReflectorSetComponent, then undo.

The reason is that FAkSurfaceReflectorSetDetailsCustomization was keeping a raw pointer to IDetailLayoutBuilder.  That needs to be a TWeakPtr with appropriate validity checks at each usage.  We found the same problem in FAkLateReverbComponentDetailsCustomization and FAkRoomComponentDetailsCustomization.

The fix is to change each class's MyDetailLayout member variable to:
 

TWeakPtr<IDetailLayoutBuilder> MyDetailLayout;

 

Then override this additional function from the baseclass:

 

virtual void CustomizeDetails( const TSharedPtr<IDetailLayoutBuilder>& DetailBuilder ) override;

 

Use that function to initialize your weak pointer from the shared pointer, then call the other CustomizeDetails with the raw pointer from there.

Hope this helps!

asked Dec 13, 2018 in General Discussion by Alex P. (180 points)

Please sign-in or register to answer this question.

...