Please be advised that the Audiokinetic offices will close at 3:00 p.m. EST on December 23rd, 2019 for the holiday period, and will reopen on January 3rd, 2020 at 9:00 a.m. EST. Learn more.

Community Q&A

Where Wwise users help each other out!

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

2019.1.1 AKDEBUG: Java VM not initialized or not provided in AkInitSettings.

0 votes


We're currently in the process of trying to upgrade from 2016.1.1 to the latest 2019.1.1 release, but are running into a failure when attempting to initialize the sound engine. This is with a mixed Java/C++ game, not a native NDK activity based app. 

The following code is used for sound engine initialization, the Java VM is obtained from the initial JNI_OnLoad(JavaVM * vm, void *reserved) call which happens when our library is loaded. This works fine in 2016.1.1 but fails under 2019.1.1 for some reason. I'm unable to debug this further as I lack the source code to the SoundEngine. 

 AkInitSettings initSettings;
 AkPlatformInitSettings platformInitSettings;
 AK::SoundEngine::GetDefaultInitSettings( initSettings );
 AK::SoundEngine::GetDefaultPlatformInitSettings( platformInitSettings );
 platformInitSettings.pJavaVM = OurCustomLib->GetJavaVM();
 if ( AK::SoundEngine::Init( &initSettings, &platformInitSettings ) != AK_Success ) -> Failure: AKDEBUG: Java VM not initialized or not provided in AkInitSettings.

Please advise.


asked Jun 27 in General Discussion by Gregg W. (100 points)

Please sign-in or register to answer this question.