"Illegal callback invocation error", "Spokestack error during initialize.", and app crash when calling Spokestack.initialize() on first load. No issues on subsequent loads. (iOS only) #105
As the title describes, here is the the console output during the first load of the app on an iOS device:
2021-11-16 13:08:06.096795-0700 mobile[4246:3045067] [native] Illegal callback invocation from native module. This callback type only permits a single invocation from native code.
2021-11-16 13:08:06.096902-0700 mobile[4246:3045068] [native] Illegal callback invocation from native module. This callback type only permits a single invocation from native code.
2021-11-16 13:08:06.423242-0700 mobile[4246:3044487] [javascript] [Error: Spokestack error during initialize.]
2021-11-16 13:08:08.461274-0700 mobile[4246:3044487] [javascript] Possible Unhandled Promise Rejection (id: 0):
Error: Speech Pipeline is not initialized. Call Spokestack.initialize() first.
followed by the app crashing.
Strangely, after reloading the app, these issues do not occur and the app works fine.
Describe the bug
As the title describes, here is the the console output during the first load of the app on an iOS device:
followed by the app crashing.
Strangely, after reloading the app, these issues do not occur and the app works fine.
Here is the code initalizing Spokestack:
Your environment
Expected behavior
The app should not crash on first load.
Actual behavior
The app crashes on first load with aforementioned errors.
Has anyone encountered this sort of error, or know what could cause it?