I'm writing a Nativescript Plugin for UDP comms based on CocoaAsyncSocket but my app is crashing when I try to perform any async operation in the context of this pod.
It seems to be something related to the queues/threads on iOS x {N}, but I haven't been able to solve it, any idea?
Here is how I'm creating my Plugin iOS class in Typescript:
export class UdpProtocol extends NSObject implements GCDAsyncUdpSocketDelegate
Here is how I'm initialising my GCDAsyncUdpSocket:
let dispatchQueue = dispatch_queue_create("sendUnicast_queue", null);
let sock = GCDAsyncUdpSocket.alloc()
.initWithDelegateDelegateQueue(this, dispatchQueue);
Here is one example of async method I'm calling in my .ts:
sock.sendDataToHostPortWithTimeoutTag(sendData, address, port, -1, this.tag);
Here is the callback I was expecting to be correctly fired:
udpSocketDidSendDataWithTag(sock: GCDAsyncUdpSocket, tag: number): void {
console.log('udpSocketDidSendDataWithTag callback');
}
But unfortunately what I got is the JS exception below:
CONSOLE LOG file:///node_modules/#nativescript/core/inspector_modules.js:1:0: Loading inspector modules...
CONSOLE LOG file:///node_modules/#nativescript/core/inspector_modules.js:6:0: Finished loading inspector modules.
NativeScript debugger attached.
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1 0x11033960e NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
2 0x110388f76 -[TNSRuntimeInspector reportFatalError:]
3 0x10fc2d23b TNSInspectorUncaughtExceptionHandler
4 0x7fff23e3a36d __handleUncaughtException
5 0x7fff50ad7c05 _objc_terminate()
6 0x7fff4f926c87 std::__terminate(void (*)())
7 0x7fff4f926c29 std::terminate()
8 0x7fff519128df _dispatch_client_callout
9 0x7fff5191860c _dispatch_lane_serial_drain
10 0x7fff51919044 _dispatch_lane_invoke
11 0x7fff519230c4 _dispatch_workloop_worker_thread
12 0x7fff51b37a3d _pthread_wqthread
13 0x7fff51b36b77 start_wqthread
JavaScript stack trace:
UIApplicationMain(file:///node_modules/#nativescript/core/application/application.js:312:0)
at run(file:///node_modules/#nativescript/core/application/application.js:312:0)
at file:///node_modules/#nativescript/angular/platform-common.js:210:0
at file:///node_modules/#nativescript/angular/platform-common.js:111:0
at file:///node_modules/#nativescript/angular/platform-common.js:91:0
at file:///app/bundle.js:198:144
at ./main.ts(file:///app/bundle.js:203:34)
at __webpack_require__(file:///src/webpack/bootstrap:750:0)
at checkDeferredModules(file:///src/webpack/bootstrap:43:0)
at webpackJsonpCallback(file:///src/webpack/bootstrap:30:0)
at anonymous(file:///app/bundle.js:2:61)
at evaluate([native code])
at moduleEvaluation([native code])
at [native code]
at asyncFunctionResume([native code])
at [native code]
at promiseReactionJob([native code])
JavaScript error:
file:///node_modules/#nativescript/core/application/application.js:312:0: JS ERROR Error: -[__NSCFString bytes]: unrecognized selector sent to instance 0x6000036496c0
NativeScript caught signal 6.
Native Stack:
1 0x11038a251 sig_handler(int)
2 0x7fff51b2f5fd _sigtramp
3 0x7fff51a23f39 itoa64
4 0x7fff51a1fb7c abort
5 0x7fff4f927858 abort_message
6 0x7fff4f926cad std::__terminate(void (*)())
7 0x7fff4f926c29 std::terminate()
8 0x7fff519128df _dispatch_client_callout
9 0x7fff5191860c _dispatch_lane_serial_drain
10 0x7fff51919044 _dispatch_lane_invoke
11 0x7fff519230c4 _dispatch_workloop_worker_thread
12 0x7fff51b37a3d _pthread_wqthread
13 0x7fff51b36b77 start_wqthread
JS Stack unavailable. Current thread hasn't initialized a {N} runtime.
I've already tried solutions like this one here, but no success.
The plugin with the angular demo causing the issue is available in this brach
Any tip or help is very welcomed :)
Actually I've found out that the error was associated to how I was creating sendData variable, I've changed it from:
let sendData: any = NSString.alloc().initWithCString(msg);
to
const sendData: NSData = NSData.alloc().initWithBase64EncodedStringOptions(msg, 1);
Related
I'm very new to mobile app development, and though I've settled on using Svelte-Native at this point, I was considering various frameworks a couple of weeks ago (React Native and Kivy). Svelte-Native's, Your First App, was the first tutorial I tried, and at that time everything worked just fine. I then looked at React Native and finally considered Kivy. I never ended up getting Kivy to work, but that in it of itself is fine – I'm not going to use it for the time being. However, while I was trying to get Kivy to work, I had to tinker around a lot in Xcode's settings. My suspicion is that it threw some sort of configuration on such a low level, that it's affecting NS Preview and NS Playground.
When I run, ns preview, the QR code displays just fine, but then when I scan my it with my iPhone 12, and I get an error log both in my terminal and on my phone.
LOG from device Peter’s iPhone: CONSOLE WARN file:///app/tns_modules/#nativescript/core/ui/tab-view/tab-view.js:17:14: Objective-C class name "UITabBarControllerImpl" is already in use - using "UITabBarControllerImpl1" instead.
CONSOLE WARN file:///app/tns_modules/#nativescript/core/ui/tab-view/tab-view.js:78:14: Objective-C class name "UITabBarControllerDelegateImpl" is already in use - using "UITabBarControllerDelegateImpl1" instead.
CONSOLE WARN file:///app/tns_modules/#nativescript/core/ui/tab-view/tab-view.js:116:14: Objective-C class name "UINavigationControllerDelegateImpl" is already in use - using "UINavigationControllerDelegateImpl1" instead.
CONSOLE INFO file:///app/vendor.js:38:36: HMR: Hot Module Replacement Enabled. Waiting for signal.
2021-06-24 10:46:32.720 nsplaydev[20450:7282202] PlayLiveSync: applicationDidFinishLaunching
CONSOLE LOG file:///app/vendor.js:5722:24: Application Launched
CONSOLE ERROR file:///app/vendor.js:3057:16: [HMR][Svelte] Unrecoverable error in <App>: next update will trigger a full reload
2021-06-24 10:46:32.729 nsplaydev[20450:7282202] ***** Fatal JavaScript exception - application has been terminated. *****
2021-06-24 10:46:32.729 nsplaydev[20450:7282202] Native stack trace:
1 0x105916348 NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
2 0x105950434 NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
3 0x1064bb388 ffi_closure_SYSV_inner
4 0x1064bc1b4 .Ldo_closure
5 0x1963ad6d4 <redacted>
6 0x1963ad67c <redacted>
7 0x1963acbe8 <redacted>
8 0x1963ac5a8 _CFXNotificationPost
9 0x1976b16ac <redacted>
10 0x198e3e370 <redacted>
11 0x198e44388 <redacted>
12 0x198497c98 <redacted>
13 0x198a00f58 _UIScenePerformActionsWithLifecycleActionMask
14 0x198498830 <redacted>
15 0x1984982f0 <redacted>
16 0x198498640 <redacted>
17 0x198497e7c <redacted>
18 0x1984a03c0 <redacted>
19 0x19890e970 <redacted>
20 0x198a19d68 _UISceneSettingsDiffActionPerformChangesWithTransitionContext
21 0x1984a00b8 <redacted>
22 0x1982c7fa0 <redacted>
23 0x1982c6920 <redacted>
24 0x1982c7bc8 <redacted>
25 0x198e42528 <redacted>
26 0x198937fd0 <redacted>
27 0x1a59e45d8 <redacted>
28 0x1a5a0fd44 <redacted>
29 0x1a59f36a4 <redacted>
30 0x1a5a0fa0c <redacted>
31 0x19603f81c <redacted>
2021-06-24 10:46:32.731 nsplaydev[20450:7282202] JavaScript stack trace:
2021-06-24 10:46:32.731 nsplaydev[20450:7282202] create_fragment(file:///app/bundle.js:290:17)
at init(file:///app/vendor.js:7356:52)
at App(file:///app/bundle.js:373:63)
at createProxiedComponent(file:///app/vendor.js:3622:22)
at ProxyComponent(file:///app/vendor.js:3239:92)
at file:///app/vendor.js:3298:16
at resolveComponentElement(file:///app/vendor.js:5529:36)
at navigate(file:///app/vendor.js:5542:60)
at create(file:///app/vendor.js:5729:89)
at file:///app/tns_modules/#nativescript/core/ui/builder/builder.js:18:36
at createRootView(file:///app/tns_modules/#nativescript/core/application/application.js:292:61)
at file:///app/tns_modules/#nativescript/core/application/application.js:243:38
at file:///app/tns_modules/#nativescript/core/application/application.js:174:34
at file:///app/tns_modules/#nativescript/core/application/application.js:163:30
at [native code]
at file:///app/tns_modules/#nativescript/core/application/application.js:36:32
at UIApplicationMain([native code])
at run(file:///app/tns_modules/#nativescript/core/application/application.js:312:26)
at file:///app/vendor.js:5726:87
at initializePromise([native code])
at Promise([native code])
at svelteNative(file:///app/vendor.js:5719:23)
at file:///app/bundle.js:459:67
at ./app.ts(file:///app/bundle.js:472:34)
at __webpack_require__(file:///app/runtime.js:817:34)
at checkDeferredModules(file:///app/runtime.js:44:42)
at webpackJsonpCallback(file:///app/runtime.js:31:39)
at anonymous(file:///app/bundle.js:2:61)
at evaluate([native code])
at moduleEvaluation([native code])
at [native code]
at asyncFunctionResume([native code])
at [native code]
at promiseReactionJob([native code])
2021-06-24 10:46:32.731 nsplaydev[20450:7282202] JavaScript error:
file:///app/bundle.js:290:17: JS ERROR ReferenceError: Can't find variable: Page
2021-06-24 10:46:32.732 nsplaydev[20450:7282202] PlayLiveSync: Uncaught Exception
2021-06-24 10:46:32.732 nsplaydev[20450:7282202] *** JavaScript call stack:
(
0 UIApplicationMain#[native code]
1 run#file:///app/tns_modules/#nativescript/core/application/application.js:312:26
2 #file:///app/vendor.js:5726:87
3 initializePromise#:1:11
4 Promise#[native code]
5 svelteNative#file:///app/vendor.js:5719:23
6 #file:///app/bundle.js:459:67
7 ./app.ts#file:///app/bundle.js:472:34
8 __webpack_require__#file:///app/runtime.js:817:34
9 checkDeferredModules#file:///app/runtime.js:44:42
10 webpackJsonpCallback#file:///app/runtime.js:31:39
11 anonymous#file:///app/bundle.js:2:61
12 evaluate#[native code]
13 moduleEvaluation#:1:11
14 #:2:1
15 asyncFunctionResume#:1:11
16 #:24:9
17 promiseReactionJob#:1:11
)
2021-06-24 10:46:32.732 nsplaydev[20450:7282202] *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: ReferenceError: Can't find variable: Page
at
create_fragment(file:///app/bundle.js:290:17)
at init(file:///app/vendor.js:7356:52)
at App(file:///app/bundle.js:373:63)
at createProxiedComponent(file:///app/vendor.js:3622:22)
at ProxyComponent(file:///app/vendor.js:3239:92)
at file:///app/vendor.js:3298:16
at resolveComponentElement(file:///app/vendor.js:5529:36)
at navigate(file:///app/vendor.js:5542:60)
at create(file:///app/vendor.js:5729:89)
at file:///app/tns_modules/#nativescript/core/ui/builder/builder.js:18:36
at createRootView(file:///app/tns_modules/#nativescript/core/application/application.js:292:61)
at file:///app/tns_modules/#nativescript/core/application/application.js:243:38
at file:///app/tns_modules/#nativescript/core/application/application.js:174:34
at file:///app/tns_modules/#nativescript/core/application/application.js:163:30
at [native code]
at file:///app/tns_modules/#nativescript/core/application/application.js:36:32
at UIApplicationMain([native code])
at run(file:///app/tns_modules/#nativescript/core/application/application.js:312:26)
at file:///app/vendor.js:5726:87
at initializePromise([native code])
at Promise([native code])
at svelteNative(file:///app/vendor.js:5719:23)
at file:///app/bundle.js:459:67
at ./app.ts(file:///app/bundle.js:472:34)
at __webpack_require__(file:///app/runtime.js:817:34)
at checkDeferredModules(file:///app/runtime.js:44:42)
at webpackJsonpCallback(file:///app/runtime.js:31:39)
at anonymous(file:///app/bundle.js:2:61)
at evaluate([native code])
at moduleEvaluation([native code])
at [native code]
at asyncFunctionResume([native code])
at [native code]
at promiseReactionJob([native code])
', reason: '(null)'
*** First throw call stack:
(0x196452754 0x1aaf197a8 0x105916820 0x105950434 0x1064bb388 0x1064bc1b4 0x1963ad6d4 0x1963ad67c 0x1963acbe8 0x1963ac5a8 0x1976b16ac 0x198e3e370 0x198e44388 0x198497c98 0x198a00f58 0x198498830 0x1984982f0 0x198498640 0x198497e7c 0x1984a03c0 0x19890e970 0x198a19d68 0x1984a00b8 0x1982c7fa0 0x1982c6920 0x1982c7bc8 0x198e42528 0x198937fd0 0x1a59e45d8 0x1a5a0fd44 0x1a59f36a4 0x1a5a0fa0c 0x19603f81c 0x19604330c 0x1a5a37fa0 0x1a5a37c30 0x1a5a38184 0x1963cc9e8 0x1963cc8e4 0x1963cbbe8 0x1963c5bc8 0x1963c5360 0x1ada03734 0x198e40584 0x198e45df4 0x1064bc044 0x1064baae8 0x1064ba648 0x1058d93d8 0x106487b10 0x106484f28 0x106484f28 0x106484f28 0x1064665e8 0x105a14e48 0x1061c0df0 0x1061c1478 0x106487ca8 0x106485ed4 0x106484f28 0x106484f28 0x106484f28 0x106484f28 0x106484e80 0x106484f28 0x1064665e8 0x105a14e48 0x1062b8cb4 0x1058f18f4 0x1061899d0 0x1064877cc 0x106484f28 0x106484f28 0x106484f28 0x106484e80 0x106484f28 0x1064665e8 0x105a14e48 0x1062b8e50 0x106182d9c 0x1058e7304 0x105960350 0x1069b225c 0x104dff524 0x196081cf8)
libc++abi: terminating with uncaught exception of type NSException
2021-06-24 10:46:32.732 nsplaydev[20450:7282202] PlayLiveSync: Uncaught Exception
How can I resolve this?
Any help would be very appreciated. Thank you in advance.
im using kivy to create an IOS project im successfully deployed the IOS project to Xcode. Im trying to implement the UserNotifications framework and im accessing it through pyobjus but when i run the app. it raises this error for some reason and i am already using the instance currentNotificationCenter. if any has an idea on how to debug the code i would appreciate. Here is my code log
*** Assertion failure in -[UNUserNotificationCenter init], /Library/Caches/com.apple.xbs/Sources/UserNotifications_Sim/UserNotifications-281.6/UNUserNotificationCenter.m:66
2020-04-30 01:25:11.610042+0100 pushdemo[2854:117443] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'use +currentNotificationCenter'
*** First throw call stack:
(
0 CoreFoundation 0x000000010c65bf0e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x000000010c4c79b2 objc_exception_throw + 48
2 CoreFoundation 0x000000010c65bc88 +[NSException raise:format:arguments:] + 88
3 Foundation 0x000000010bea8cd2 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
4 UserNotifications 0x0000000118c9d4a8 -[UNUserNotificationCenter init] + 172
5 pushdemo 0x0000000107122be4 ffi_call_unix64 + 76
6 ??? 0x00006000005a0910 0x0 + 105553122167056
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Just realised its a type method and ive been trying to access it as an instance nethod
I copied a out of the box "material" theme and created my new theme based on the same.
it gets displayed in list when I am trying to create a new website. but when I select a theme and click on "Create" site it gives me an error.
Lumene error log looks like below:
[2016-10-22 06:44:57] lumen.ERROR: exception 'ErrorException' with message 'Undefined variable: main_content' in C:\xampp\htdocs\respond\app\app\Respond\Models\Page.php:652
I already created a html tag main in my page and also one div which having role="main" but it seems I am still missing something.
can someone guide me for looking at correct issue.
Stacktrace is here :
[2016-10-22 06:47:31] lumen.ERROR: exception 'ErrorException' with message 'Undefined variable: main_content' in C:\xampp\htdocs\respond\app\app\Respond\Models\Page.php:652
Stack trace:
0 C:\xampp\htdocs\respond\app\app\Respond\Models\Page.php(652): Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}(8, 'Undefined varia...', 'C:\\xampp\\htdocs...', 652, Array)
1 C:\xampp\htdocs\respond\app\app\Respond\Models\Page.php(507): App\Respond\Models\Page::refreshJSON(Object(App\Respond\Models\User), Object(App\Respond\Models\Site))
2 C:\xampp\htdocs\respond\app\app\Respond\Libraries\Publish.php(167): App\Respond\Models\Page::listAll(Object(App\Respond\Models\User), Object(App\Respond\Models\Site))
3 C:\xampp\htdocs\respond\app\app\Respond\Models\Site.php(162): App\Respond\Libraries\Publish::publishPlugins(Object(App\Respond\Models\User), Object(App\Respond\Models\Site))
4 C:\xampp\htdocs\respond\app\app\Http\Controllers\SiteController.php(44): App\Respond\Models\Site::create('manual9', '/template', 'mygalaxy.shaile...', 'shailesh')
5 [internal function]: App\Http\Controllers\SiteController->create(Object(Illuminate\Http\Request))
6 C:\xampp\htdocs\respond\app\vendor\illuminate\container\Container.php(507): call_user_func_array(Array, Array)
7 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(593): Illuminate\Container\Container->call(Array, Array)
8 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(560): Laravel\Lumen\Application->callControllerCallable(Array, Array)
9 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(533): Laravel\Lumen\Application->callLumenController(Object(App\Http\Controllers\SiteController), 'create', Array)
10 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(501): Laravel\Lumen\Application->callControllerAction(Array)
11 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(486): Laravel\Lumen\Application->callActionOnArrayBasedRoute(Array)
12 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(383): Laravel\Lumen\Application->handleFoundRoute(Array)
13 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(636): Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}()
14 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(389): Laravel\Lumen\Application->sendThroughPipeline(Array, Object(Closure))
15 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(334): Laravel\Lumen\Application->dispatch(NULL)
16 C:\xampp\htdocs\respond\app\public\index.php(28): Laravel\Lumen\Application->run()
17 {main}
There is an AudioUnitV3Example sample code by Apple for iOS. As well as Audio Unit Extension OS X target template in Xcode (7.2).
I created (for debug purpose) simple AUv3 PlugIns Host which used AVFoundation API to build playback engine graph. It is working well with standard AudioUnits shipped with OS X. It can instantiate AudioUnit, load preset, open effect window.
But I can't troubleshoot problem with custom AUv3 PlugIn created from Audio Unit Extension template.
It was already working some days ago and I was able to hit following breakpoint (as well as reach other code from AudioUnit lifecycle):
// AUAudioUnitFactory method.
func createAudioUnitWithComponentDescription(
desc: AudioComponentDescription) throws -> AUAudioUnit
But at some point a faced strange issue. The completionHandler for custom PlugIn, from the following method, never gets called:
// AVAudioUnit method.
class func instantiateWithComponentDescription(
audioComponentDescription: AudioComponentDescription,
options: AudioComponentInstantiationOptions,
completionHandler: (AVAudioUnit?, NSError?) -> Void)
Also there is following log messages in system.log:
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
for x86_64.
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: Got a connection, waiting for process information for launching or attaching.
kernel[0]: warning: debugserver(23653) performed out-of-band resume on pid 23652
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: Attach succeeded, ready to debug.
pkd[562]: INSTALLED:ua.com.wavelabs.Attenuator.AttenuatorAU ua.com.wavelabs.Attenuator.AttenuatorAU(1.0.1) <__NSConcreteUUID 0x7f8dcb847fb0> 4FD70868-0F5B-4979-A6DC-4018B4143934 /private/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex
pkd[562]: client 23594 plug-in ua.com.wavelabs.Attenuator.AttenuatorAU election := 257
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.MediaLibraryService.23655): Path not allowed in target domain: type = pid, path = /Library/Frameworks/iTunesLibrary.framework/Versions/A/XPCServices/com.apple.iTunesLibraryService.xpc error = 147: The specified service did not ship in the requestor's bundle, origin = /System/Library/Frameworks/MediaLibrary.framework/Versions/A/XPCServices/com.apple.MediaLibraryService.xpc
--- last message repeated 1 time ---
com.apple.SecurityServer[88]: Session 101187 created
com.apple.SecurityServer[88]: Session 101188 created
com.apple.SecurityServer[88]: Killing auth hosts
com.apple.SecurityServer[88]: Session 101182 destroyed
com.apple.SecurityServer[88]: Session 101189 created
pkd[562]: enabling pid=23652 for plug-in ua.com.wavelabs.Attenuator.AttenuatorAU(1.0.1) 4FD70868-0F5B-4979-A6DC-4018B4143934 /private/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex
taskgated-helper[23666]: Starting taskgated-helper
taskgated-helper[23666]: validated embedded provisioning profile: file:///private/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex/Contents/embedded.provisionprofile
taskgated-helper[23666]: Found 1 provisioning profiles
taskgated-helper[23666]: allowing entitlement(s) for pid=23665 due to provisioning profile
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23668]: debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
for x86_64.
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23668]: Got a connection, waiting for process information for launching or attaching.
kernel[0]: warning: debugserver(23668) performed out-of-band resume on pid 23665
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23668]: Attach succeeded, ready to debug.
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.AUHost.23652): Ignoring lax activation attempt for unsupported domain: ua.com.wavelabs.Attenuator.AttenuatorAU.apple-extension-service
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.AUHost.23652): Ignoring lax activation attempt for unsupported domain: ua.com.wavelabs.Attenuator.AttenuatorAU.viewbridge
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.AUHost.23652): Ignoring lax activation attempt for unsupported domain: ua.com.wavelabs.Attenuator.AttenuatorAU
From this log we can see that:
App Extension (PlugIn) successfully registered (INSTALLED:ua.com.wavelabs.Attenuator.AttenuatorAU).
Provisioning file validated and thus no Sandbox related issues (allowing entitlement(s) for pid=23665 due to provisioning profile).
Xcode debugger successfully attached to AUv3 Host and Attenuator App Extension.
Unfortunately something went wrong after log messages Ignoring lax activation attempt for unsupported domain .... PlugIn load stuck on waiting for return from callback, which will never be triggered.(
After stopping Xcode debug there is another part of system.log:
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: Got a 'k' packet, killing the inferior process.
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: Sending ptrace PT_KILL to terminate inferior process.
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: 1 +0.000000 sec [5c65/0307]: error: ::ptrace (request = PT_THUPDATE, pid = 0x5c64, tid = 0x1903, signal = 0) err = Resource busy (0x00000010)
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: 2 +0.000143 sec [5c65/0307]: error: ::task_info ( target_task = 0x1403, flavor = TASK_BASIC_INFO, task_info_out => 0x7fff56ac9f30, task_info_outCnt => 10 ) err = (os/kern) invalid argument (0x00000004)
com.apple.security.pboxd[23660]: __45-[NSRemoteServiceConnection _setupConnection]_block_invoke_2: connection failed unexpectedly; terminating process; delegate was (
0 RemoteViewServices 0x00007fff87e25a28 -[NSRemoteServiceConnection setDelegate:] + 255
1 com.apple.security.pboxd 0x00000001068e4771 com.apple.security.pboxd + 22385
2 com.apple.security.pboxd 0x00000001068e4c33 com.apple.security.pboxd + 23603
3 com.apple.security.pboxd 0x00000001068e3b8d com.apple.security.pboxd + 19341
4 libxpc.dylib 0x00007fff932b9396 _xpc_connection_call_event_handler + 35
5 libxpc.dylib 0x00007fff932b900f _xpc_connection_mach_event + 2198
6 libdispatch.dylib 0x00007fff914204ca _dispatch_client_callout4 + 9
7 libdispatch.dylib 0x00007fff9142093c _dispatch_mach_msg_invoke + 555
8 libdispatch.dylib 0x00007fff9141d134 _dispatch_queue_drain + 1207
9 libdispatch.dylib 0x00007fff9141f293 _dispatch_mach_invoke + 735
10 libdispatch.dylib 0x00007fff9141833f _dispatch_client_callout + 8
11 libdispatch.dylib 0x00007fff9141c1cf _dispatch_root_queue_drain + 1890
12 libdispatch.dylib 0x00007fff9141ba34 _dispatch_worker_thread3 + 91
13 libsystem_pthread.dylib 0x00007fff8ff3d68f _pthread_wqthread + 1129
14 libsystem_pthread.dylib 0x00007fff8ff3b365 start_wqthread + 13
)
AttenuatorAU[23665]: host connection <NSXPCConnection: 0x618000300990> connection from pid 23652 invalidated
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: Waited 10 ms for process to be reaped (state = Exited)
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: 3 +0.011781 sec [5c65/1303]: error: ::read ( 3, 0x700000080a40, 1024 ) => -1 err = Bad file descriptor (0x00000009)
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: Exiting.
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23668]: 1 +0.000000 sec [5c74/0307]: error: ::task_info ( target_task = 0x1403, flavor = TASK_BASIC_INFO, task_info_out => 0x7fff5c5c2a30, task_info_outCnt => 10 ) err = (os/kern) invalid argument (0x00000004)
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23668]: 2 +0.004318 sec [5c74/1303]: error: ::read ( 3, 0x700000080a40, 1024 ) => -1 err = Bad file descriptor (0x00000009)
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23668]: Exiting.
Xcode[23287]: DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-10119.9/DVTFoundation/Devices/DVTLocalComputer.m:375
Details: Error un-registering Plugin: '/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex' Error: Error Domain=PlugInKit Code=9 "no plugin at /private/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex" UserInfo={NSLocalizedDescription=no plugin at /private/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex}
Object: <DVTLocalComputer: 0x7fd9b9efa050>
Method: -stopDebuggingXPCServices:forPairedDevice:
Thread: <NSThread: 0x7fd9c211cb60>{number = 47, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
pkd[562]: UNINSTALLED:ua.com.wavelabs.Attenuator.AttenuatorAU ua.com.wavelabs.Attenuator.AttenuatorAU(1.0.1) 4FD70868-0F5B-4979-A6DC-4018B4143934 /private/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex
From this part of log we can see the following:
Debug terminated.
App Extension (PlugIn) uninstalled.
There is also backtrace related NSRemoteServiceConnection class.
Can anybody explain what are the messages Ignoring lax activation attempt for ... about?
Thank you!
Note: AUv3 Host is not a Containing app. Containing app exists as well, but is does nothing except of participating App Extension registration.
In order to reproduce issue you can download source code, open project AUSamplePlugIn/Attenuator.xcodeproj and launch schema AttenuatorAU.
May 25 00:17:43 unknown kernel[0] <Debug>: launchd[887] Builtin profile: container (sandbox)
May 25 00:17:43 unknown kernel[0] <Debug>: launchd[887] Container: /private/var/mobile/Applications/BB467DEE-061F-4A6C-8F75-F88F153BC4A0 [69] (sandbox)
May 25 00:17:43 unknown JulieRowe[887] <Warning>: Device token recived :- a0c4c5a4fa58b09de64b9c97e83cc92d352e3e10563d03b835dfc3eaf187bb14
May 25 00:17:43 unknown JulieRowe[887] <Error>: libMobileGestalt computeUniqueDeviceID: total time for bb to return imei: 0
May 25 00:17:43 unknown JulieRowe[887] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: author_id)'
*** First throw call stack:
(0x3729788f 0x34f9c259 0x37297789 0x372977ab 0x3720468b 0x3951 0x4041 0x3119860b 0x311990dd 0x36033af9 0x3726b523 0x3726b4c5 0x3726a313 0x371ed4a5 0x371ed36d 0x339ac439 0x30f99cd5 0x2c89 0x2c48)
May 25 00:17:43 unknown UIKitApplication:com.julierowe.authorapp[0xe204][887] <Notice>: terminate called throwing an exception
May 25 00:17:44 unknown ReportCrash[888] <Notice>: Formulating crash report for process JulieRowe[887]
>
May 25 00:17:44 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.julierowe.authorapp[0xe204]) Job appears to have crashed: Abort trap: 6
May 25 00:17:44 unknown SpringBoard[51] <Warning>: Application 'Julie Rowe' exited abnormally with signal 6: Abort trap: 6
May 25 00:17:44 unknown ReportCrash[888] <Error>: libMobileGestalt computeUniqueDeviceID: total time for bb to return imei: 0
May 25 00:17:44 unknown ReportCrash[888] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/JulieRowe_2012-05-25-001743_Bob-Eveleth.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
This is a device console log which i have got from xcode 4.3.2 organizer. But I am surprised App is running fine under Debug profile but under adhoc it crashing.