using ObjectAL with spritekit causes SKAction sounds not to be found? - objective-c

I'm trying to use both ObjectAL and native SKAction in my spritekit project.
I've got it working, but when i run this code,
OALSimpleAudio.sharedInstance().playBg("shipengine.wav", loop:true)
it gives me an error saying 'Resource powershotbeep.wav can not be loaded' this is a file I use with SKAction somewhere else in the project. any idea why this would be happening?
if i stop loading those actions, then my shipengine sound will play just fine
i've tried this with objective-c as well.. i get this error
2014-09-06 13:18:23.790 testsound[59331:4033724] OAL Error: +[ALWrapper openDevice:]: Could not open device (null)
2014-09-06 13:18:23.791 testsound[59331:4033724] OAL Error: -[ALDevice initWithDeviceSpecifier:]: : Failed to create OpenAL device (null)
2014-09-06 13:18:23.791 testsound[59331:4033724] OAL Error: +[ALWrapper closeDevice:]: Invalid Enum (error code 0x0000a003)
2014-09-06 13:18:23.791 testsound[59331:4033724] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification, but last reset was 0.001220 seconds ago. Doing nothing.
2014-09-06 13:18:23.791 testsound[59331:4033724] OAL Error: -[OALSimpleAudio initWithSources:]: : Could not create OpenAL device

Related

react-native - [object] is not usable as a native method argument

I recently started to get this error for both iOS and Android. I don't know what is causing this problem. In all the other instances of this error, there is probably a NaN value or some other unexpected value but in my case, everything is a valid value. For iOS, this is happening when I am callind the PushNotificationIOS.scheduleNotification. For Android, it happens, when I called a native react method.
This is only happening when I am running in dev mode. Please let me know what could be the problem here or how can I debug this problem.
2019-10-18 21:27:16.745 10843-11080/com.myapp E/ReactNativeJS: [{"fireDate":"2019-11-01T16:30:00.000Z","repeat":"2","repeatType":"weeks","creatorTimezone":"Asia/Kolkata","alarmId":"-LrU_OrkWvoCU-W8VY-A","alarmName":"Personal Reminder","type":"alarm","alarmType":"Personal","alarmDate":"2019-11-01T16:30:00.000Z","alarmAlert":"Personal Reminder - It's time.","shortAlarmAlert":"It's time.","cascadingAlarmInterval":900000,"recipientAlarmInterval":0,"alarmRingtone":{"label":"Hollywood Adventure","type":"inbuilt","value":"hollywood_adventure"},"vibrate":"true","volume":80,"version":2,"ringtoneDuration":60000,"uid":"-LrTbAdkCtVoFBfDKBwk","username":"udi","ringtonePath":"android.resource://com.myapp/raw/hollywood_adventure"}] is not usable as a native method argument
2019-10-18 21:27:16.766 10843-11080/com.myapp I/ReactNativeJS: 'Failed to print error: ', 'Exception in HostFunction: Malformed calls from JS: field sizes are different.\n\n[[34,45],[4,2],[["[{\\"fireDate\\":\\"2019-11-01T16:30:00.000Z\\",\\"repeat\\":\\"2\\",\\"repeatType\\":\\"weeks\\",\\"creatorTimezone\\":\\"Asia/Kolkata\\",\\"alarmId\\":\\"-LrU_OrkWvoCU-W8VY-A\\",\\"alarmName\\":\\"Personal Reminder\\",\\"type\\":\\"alarm\\",\\"alarmType\\":\\"Personal\\",\\"alarmDate\\":\\"2019-11-01T16:30:00.000Z\\",\\"alarmAlert\\":\\"Personal Reminder - It\'s time.\\",\\"shortAlarmAlert\\":\\"It\'s time.\\",\\"cascadingAlarmInterval\\":900000,\\"recipientAlarmInterval\\":0,\\"alarmRingtone\\":{\\"label\\":\\"Hollywood Adventure\\",\\"type\\":\\"inbuilt\\",\\"value\\":\\"hollywood_adventure\\"},\\"vibrate\\":\\"true\\",\\"volume\\":80,\\"version\\":2,\\"ringtoneDuration\\":60000,\\"uid\\":\\"-LrTbAdkCtVoFBfDKBwk\\",\\"username\\":\\"udi\\",\\"ringtonePath\\":\\"android.resource://com.myapp/raw/hollywood_adventure\\"}] is not usable as a native method argument",[{"column":20,"lineNumber":4382,"arguments":[],"methodName":"enqueueNativeCall","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":42,"lineNumber":4000,"arguments":[],"methodName":"fn","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":41,"lineNumber":284071,"arguments":[],"methodName":"scheduleNotification","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":53,"lineNumber":213975,"arguments":[],"methodName":"cancelOrRescheduleNotificationForAlarm","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":53,"lineNumber":213917,"arguments":[],"methodName":"markAlarmAsAcknowledged","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":17,"lineNumber":197088,"arguments":[],"methodName":"withConnectAndAuthenticationOptional","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":67,"lineNumber":213997,"arguments":[],"methodName":"onIAmUp","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":47,"lineNumber":53662,"arguments":[],"methodName":"touchableHandlePress","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":null,"lineNumber":null,"arguments":[],"methodName":"touchableHandlePress","file":"[native code]"},{"column":36,"lineNumber":53205,"arguments":[],"methodName":"_performSideEffectsForTransition","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":null,"lineNumber":null,"arguments":[],"methodName":"_performSideEffectsForTransition","file":"[native code]"},{"column":46,"lineNumber":53131,"arguments":[],"methodName":"_receiveSignal","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":null,"lineNumber":null,"arguments":[],"methodName":"_receiveSignal","file":"[native code]"},{"column":26,"lineNumber":53010,"arguments":[],"methodName":"touchableHandleResponderRelease","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":null,"lineNumber":null,"arguments":[],"methodName":"touchableHandleResponderRelease","file":"[native code]"},{"column":21,"lineNumber":14049,"arguments":[],"methodName":"invokeGuardedCallbackImpl","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":42,"lineNumber":14145,"arguments":[],"methodName":"invokeGuardedCallback","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":36,"lineNumber":14149,"arguments":[],"methodName":"invokeGuardedCallbackAndCatchFirstError","file":"http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&minify=false"},{"column":48,"lineNumber":14256,"arguments":[],"methodName":"executeDispatch","file":"http://10.0.2.2:8081/in
2019-10-18 21:27:16.770 10843-11080/com.myapp E/unknown:ReactNative: Exception in native call
java.lang.RuntimeException: Error calling RCTEventEmitter.receiveTouches
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
at android.os.Looper.loop(Looper.java:193)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
at java.lang.Thread.run(Thread.java:764)
Caused by: com.facebook.jni.CppException: [{"fireDate":"2019-11-01T16:30:00.000Z","repeat":"2","repeatType":"weeks","creatorTimezone":"Asia/Kolkata","alarmId":"-LrU_OrkWvoCU-W8VY-A","alarmName":"Personal Reminder","type":"alarm","alarmType":"Personal","alarmDate":"2019-11-01T16:30:00.000Z","alarmAlert":"Personal Reminder - It's time.","shortAlarmAlert":"It's time.","cascadingAlarmInterval":900000,"recipientAlarmInterval":0,"alarmRingtone":{"label":"Hollywood Adventure","type":"inbuilt","value":"hollywood_adventure"},"vibrate":"true","volume":80,"version":2,"ringtoneDuration":60000,"uid":"-LrTbAdkCtVoFBfDKBwk","username":"udi","ringtonePath":"android.resource://com.myapp/raw/hollywood_adventure"}] is not usable as a native method argument

NSURL Connection Error

I am using the Wikitude plugin on iOS for AR and I am getting the following errors. Sometimes it will run then other times it will just keep loading. When it does run it gives the errors but everything functions perfect. The code that loads the view is the following:
self.architectWorldNavigation = [self.architectView loadArchitectWorldFromURL:[[NSBundle mainBundle] URLForResource:#"index" withExtension:#"html" subdirectory:#"files"]];
I am not sure what could be causing this, sometimes disconnecting from wifi works.
Cheers,
Curtis
2018-02-12 13:00:39.326356+0000 UAReloaded[5763:2125598]
NSURLConnection finished with error - code -1100 2018-02-12
13:00:40.743844+0000 UAReloaded[5763:2125632] TIC TCP Conn Failed
[1:0x1d01654c0]: 1:61 Err(61) 2018-02-12 13:00:40.743939+0000
UAReloaded[5763:2125632] Task
.<0> HTTP load failed (error
code: -1004 [1:61]) 2018-02-12 13:00:40.744102+0000
UAReloaded[5763:2125594] NSURLConnection finished with error - code
-1004

__tcp_connection_write_eof_block_invoke Write close callback received error: [89] Operation canceled

I am getting this when uploading to server in this API I am uploading audio file and text data and if I remove audio it is working fine and I am getting this error in iOS 10. In iOS below 10 it's working fine all data is getting uploaded.
Error: The request timed out. 2016-11-11 10:17:26.263019 Smart Child Info[1407:423623] [] __tcp_connection_write_eof_block_invoke Write close callback received error: [89] Operation canceled
Seems that your request timed out, try (assuming you are using NSMutableURLRequest and you want a timeout of 120 seconds):
request.timeoutInterval = 120;

Android Mediaplayer gives error while it is trying to play mp4 file which is recorded by LIVE555 QuickPlayerFilesink

I am facing below error on Android Kitkat when I am trying to play recorded video which is recorded by LIVE555.
Following is my source code to play video on App:
player = new MediaPlayer();
player.setDataSource(filePath); <------ getting error here
player.setDisplay(holder);
player.setOnCompletionListener(this);
player.setOnPreparedListener(this);
player.setOnErrorListener(this);
player.setScreenOnWhilePlaying(true);
log.debug("prepare async called");
player.prepareAsync();
Error log is given below:
07-28 04:59:17.942 E/MediaPlayerService( 2242): error: -2147483648
07-28 04:59:17.942 E/MediaPlayer( 4072): Unable to create media player
07-28 04:59:17.942 W/RecordingActivity*( 4072): Failed to set file: setDataSourceFD failed.: status=0x80000000
Here Please note that: Same Android and Live555 source code is working on Android Gingerbread.

Error 22 when scanning for available WiFi-Networks using CoreWLAN

I use the following code to scan for all available WiFi-Networks:
[[CWInterface interface] scanForNetworksWithSSID:nil error:&err];
Usually I get a NSSet of Networks but sometimes I get the following error:
The operation couldn’t be completed. (com.apple.coreWLAN.error error
22.)
Error Domain=com.apple.coreWLAN.error Code=22
I haven't find anything about that error code 22. Is there a documentation or a solution for this?
Because I had another problem with CoreWlan(http://stackoverflow.com/questions/9943833/cwinterface-returning-no-data) i replaced it with Apple80211.framework.
This also is a workaround for this one...