I am trying to incorporate Watson Speech-to-Text into an iOS application. In the past I am able to use the SDK just fine however with the new release of Watson Developer Cloud I have not had any success.
I already created the service in Bluemix for Watson STT. In the iOS app, I pass in the credential and able to get the instance of STT, so connection is fine. Looking at the SDK, it appears that I only need to call startListening() to have the app started listening on the users' speech. However it throws an error immediately.
// Activate speech
stt.startListening()
Error message:
libswiftCore.dylib`_swift_retain_(swift::HeapObject*):
0x10108d1a0 <+0>: cbz x0, 0x10108d1b8 ; <+24>
0x10108d1a4 <+4>: add x8, x0, #8
0x10108d1a8 <+8>: ldxr w9, [x8]
0x10108d1ac <+12>: add w9, w9, #4
-> 0x10108d1b0 <+16>: stxr w10, w9, [x8]
0x10108d1b4 <+20>: cbnz w10, 0x10108d1a8 ; <+8>
0x10108d1b8 <+24>: ret
The error happens on the line with "->" and the message: com.apple.coreaudio.AQClient(6): EXC_BAD_ACCESS (code=2, address=0x1000e8008)
Appreciate any insight on this issue.
Related
What is the fix for a SwiftUI iOS app with Firebase framework error not allowing to build and run on connected devices?
Xcode builds and runs the code flawless in the Canvas panel and Simulator, but does not build and run on connected devices.
(on a new project)
Error Messages :
Thread 1 #0 0x00000001029172ac in __abort_with_payload ()
dyld`__abort_with_payload:
0x1029172a4 <+0>: mov x16, #0x209
0x1029172a8 <+4>: svc #0x80
-> 0x1029172ac <+8>: b.lo 0x1029172c8 ; <+36>
0x1029172b0 <+12>: stp x29, x30, [sp, #-0x10]!
0x1029172b4 <+16>: mov x29, sp
0x1029172b8 <+20>: bl 0x1029157d8 ; cerror_nocancel
0x1029172bc <+24>: mov sp, x29
0x1029172c0 <+28>: ldp x29, x30, [sp], #0x10
0x1029172c4 <+32>: ret
0x1029172c8 <+36>: ret'
debug area
dyld: Library not loaded: #rpath/FBLPromises.framework/FBLPromises
Referenced from: /private/var/containers/Bundle/Application/1ECE175B-46E5-4FC0-A28A-
BC3255C9F124/Bennett Application.app/Bennett Application
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/1ECE175B-46E5-4FC0-A28A-BC3255C9F124/Bennett
Application.app/Frameworks/FBLPromises.framework/FBLPromises: code signature invalid for
'/private/var/containers/Bundle/Application/1ECE175B-46E5-4FC0-A28A-BC3255C9F124/Bennett
Application.app/Frameworks/FBLPromises.framework/FBLPromises'
Also, when you deploy an iOS app to the store, will you encounter similar problems as above?
This error was simply fixed by upgrading to the Apple Developers Program.
At first ld.lld seems to link successfully, but the executable crashes when executing a call instruction.
I'm using clang 6.0.1
My program links and executes just fine using the gcc ld.
Someone told me the driver is incomplete, is this true?
Has anyone linked and ran on windows using ld.lld successfully?
-> 4 extern "C" void Entry()
-> 5 {
-> 6 ExitProcess(0);
Game.exe`::Entry():
-> 0x140003000 <+0>: sub rsp, 0x28
0x140003004 <+4>: mov rax, qword ptr [rip - 0x1fe7] ; __imp_ExitProcess
0x14000300b <+11>: xor ecx, ecx
0x14000300d <+13>: call rax
0x14000300f <+15>: ud2
(lldb) s
Process 7508 crashed
* thread #1, stop reason = Exception 0xc0000005 encountered at address 0x001034
frame #0: 0x0000000000001034
After updating my Xcode a project that was fully functional and ready for launch it now breaks at runtime but gives no errors or warnings at compile time.
I suspect that my simulator or Alamofire 4 is the problem, but I can't seem to find the reason why it's misbehaving. All I can figure out is that the Alamofire files aren't parsed correctly before given to the simulator or that the simulator is skipping the parsed Alamofire files when building.
If anyone has an idea of how to fix this please help.
This is where it breaks:
dyld`__abort_with_payload:
0x599c34 <+0>: movl $0x209, %eax ; imm = 0x209
0x599c39 <+5>: calll 0x59a3f0 ; _sysenter_trap
-> 0x599c3e <+10>: jae 0x599c4e ; <+26>
0x599c40 <+12>: calll 0x599c45 ; <+17>
0x599c45 <+17>: popl %edx
0x599c46 <+18>: movl 0x10553(%edx), %edx
0x599c4c <+24>: jmpl *%edx
0x599c4e <+26>: retl
0x599c4f <+27>: nop
With a message of : "Thread 1: signal SIGABRT"
and in my console i get:
dyld: Library not loaded: #rpath/Alamofire.framework/Alamofire
Referenced from: /Users/stackle005/Library/Developer/CoreSimulator/Devices/5D244AC3-834B- 401B-BA73-0664E95327DF/data/Containers/Bundle/Application/BD754A02-4BFA- 4460-9603-51C94683A286/StackleApp.app/StackleApp
Reason: image not found
(lldb)
The explanation of your error log is : "linker found the library, but can't use it."
Check and Follow below steps :
Clear old build data from CoreSimulator,Delete apps from Simulator/device.
Go to Project Setting -> Your_Target->General -> Embedded Binaries
-> Click on + button and add your library here
Hope it helps!
I am using Map box iOS SDK 3.0.1 in my App and facing issues on slow network. It crashed very often.
libc++abi.dylib: terminating with uncaught exception of type
std::runtime_error: Failed to load
[https://a.tiles.mapbox.com/v4/mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v6/0/0/0.vector.pbf?access_token=pk.xxxx]:
and Xcode crash log is :
libsystem_kernel.dylib`__pthread_kill:
0x114edcff8 <+0>: movl $0x2000148, %eax
0x114edcffd <+5>: movq %rcx, %r10
0x114edd000 <+8>: syscall
-> 0x114edd002 <+10>: jae 0x114edd00c ; <+20>
0x114edd004 <+12>: movq %rax, %rdi
0x114edd007 <+15>: jmp 0x114ed7bdd ; cerror_nocancel
0x114edd00c <+20>: retq
0x114edd00d <+21>: nop
0x114edd00e <+22>: nop
0x114edd00f <+23>: nop
Anyone faced any such issue with map box SDK ? Let me know how it can be prevented to the error can be bought ?
Give Mapbox iOS SDK v3.1.1 a try — there have been significant networking improvements made in the v3.1.x releases.
I have strange problem with my application which uses scandit SDK for barcode scanning.
The next line
ScanditSDKBarcodePicker *scanditSDKBarcodePicker = [[ScanditSDKBarcodePicker alloc] initWithAppKey:kAppKey];
crashes application with EXC_BAD_ACCESS code. Also I got next code as cause of app crash:
0xf0a9c: push {r7, lr}
0xf0a9e: add r7, sp, #0
0xf0aa0: movs r0, #1
0xf0aa2: movw r1, #65535
0xf0aa6: bl #-114 ; 0x000f0a38 __static_initialization_and_destruction_0(int, int)
0xf0aaa: pop {r7, pc}
0xf0aac: lsls r0, r6
Note: This problem does not happen every time the code is executed.
This is Christian from Scandit.
The EXC_BAD_ACCESS could be caused by a problem with the app key/license integration. Can you double-check that the license key and app key are properly integrated?
You might also want to double-check whether the problem also occurs with the demo app that comes with the free development kit of our ios barcode scanner - after you integrated the license there.