Closed djmaxisauce closed 6 years ago
Other two strange things:
Debuggin with XCode , the error says:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Framework resource bundle 'GoogleCastResources.bundle' not found
And the last one if I install the plugin with cordova plugin add cordova-plugin-chromecastios
cordova plugin add cordova-plugin-chromecastios Fetching plugin "cordova-plugin-chromecastios" via npm Installing "cordova-plugin-chromecastios" for android Installing "cordova-plugin-chromecastios" for ios Starting cordova-plugin-chromecastios install, fetching castSDK created temp dir Downloading GoogleCast SDK Extracting GoogleCast SDK Encountered an error, reverting install steps { Error: Command failed: rm /Users/boldmss/Documents/mobileApp/platforms/ios/Bold Cast/Plugins/cordova-plugin-chromecastios/GoogleCast.framework rm: /Users/boldmss/Documents/mobileApp/platforms/ios/Bold: No such file or directory rm: Cast/Plugins/cordova-plugin-chromecastios/GoogleCast.framework: No such file or directory
at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)
killed: false, code: 1, signal: null, cmd: 'rm /Users/boldmss/Documents/mobileApp/platforms/ios/Bold Cast/Plugins/cordova-plugin-chromecastios/GoogleCast.framework' } cordova-plugin-chromecastios iOS install reverted
The plugin only works with cordova plugin add https://github.com/ghenry22/cordova-plugin-chromecastios.git
yeh that error is from the space in the directory name for your project, the install script doesn't handle it. This is already fixed in the project on github, mustn't have pushed out to npm for some reason.
Thanks for reporting I will make sure an updated version is pushed out.
ok! Installing from git link, the installation succeds; but I still I have the error mentioned above. Do you have any ideas of what can I do to solve it @ghenry22 ?
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Framework resource bundle 'GoogleCastResources.bundle' not found
The LLDB RPC server has crashed. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.
The XCODE says the error is in: 0x100181164 <+108>: b 0x100181140 ; <+72> at GCKFrameworkResources.m:32
Here is the crash log:
Process: lldb-rpc-server [16631] Path: /Volumes/VOLUME/*/Xcode-2.app/Contents/SharedFrameworks/LLDBRPC.framework/Versions/A/Resources/lldb-rpc-server Identifier: lldb-rpc-server Version: 2 Code Type: X86-64 (Native) Parent Process: Xcode [16254] Responsible: lldb-rpc-server [16631] User ID: 501
Date/Time: 2017-08-02 12:38:14.948 -0300 OS Version: Mac OS X 10.12.5 (16F73) Report Version: 12 Anonymous UUID: 2F740B78-594A-BC89-70F1-B075AF19499F
Sleep/Wake UUID: E57B3FDD-FD52-409F-B112-68995B48CF2B
Time Awake Since Boot: 59000 seconds Time Since Wake: 5400 seconds
System Integrity Protection: enabled
Notes: Translocated Process
Crashed Thread: 6 RPC packet thread for client tid 00063a06 (408070)
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information: abort() called *** error for object 0x7fcd3c927640: incorrect checksum for freed object - object was probably modified after being freed.
Thread 0:: Connection::RunLoop() packet reading thread Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fffa13c6246 read + 10
1 lldb-rpc-server 0x0000000100291667 rpc_common::RPCConnectionSocket::Read(std::1::basic_string<unsigned char, std::__1::char_traits
Thread 1:: RPC packet thread for client tid 0006182a (399402)
0 libsystem_kernel.dylib 0x00007fffa13c4bf2 psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffa14b07fa _pthread_cond_wait + 712
2 libc++.1.dylib 0x00007fff9fe334cd std::__1::condition_variable::wait(std::1::unique_lock
Thread 2:: lldb.debugger.io-handler
0 libsystem_kernel.dylib 0x00007fffa13c4dc6 read_nocancel + 10
1 libsystem_c.dylib 0x00007fffa131015c _sread + 16
2 libsystem_c.dylib 0x00007fffa130f797 srefill1 + 24
3 libsystem_c.dylib 0x00007fffa130905a fgets + 103
4 com.apple.LLDB.framework 0x0000000102be511d lldb_private::IOHandlerEditline::GetLine(std::1::basic_string<char, std::__1::char_traits
Thread 3: 0 libsystem_kernel.dylib 0x00007fffa13bd34a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fffa13bc797 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff8b6e9874 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff8b6e8cf1 CFRunLoopRun + 1361 4 com.apple.CoreFoundation 0x00007fff8b6e8544 CFRunLoopRunSpecific + 420 5 com.apple.CoreFoundation 0x00007fff8b727d31 CFRunLoopRun + 97 6 com.apple.DebugSymbols 0x00007fff97b9920e SpotlightQueryThread(void*) + 478 7 libsystem_pthread.dylib 0x00007fffa14af93b _pthread_body + 180 8 libsystem_pthread.dylib 0x00007fffa14af887 _pthread_start + 286 9 libsystem_pthread.dylib 0x00007fffa14af08d thread_start + 13
Thread 4::
Thread 5:: <lldb.process.internal-state(pid=0)>
0 libsystem_kernel.dylib 0x00007fffa13c4bf2 psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffa14b07fa _pthread_cond_wait + 712
2 libc++.1.dylib 0x00007fff9fe334cd std::__1::condition_variable::wait(std::1::unique_lock
Thread 6 Crashed:: RPC packet thread for client tid 00063a06 (408070)
0 libsystem_kernel.dylib 0x00007fffa13c4d42 pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fffa14b2457 pthread_kill + 90
2 libsystem_c.dylib 0x00007fffa132a420 abort + 129
3 libsystem_malloc.dylib 0x00007fffa1424f5d szone_error + 626
4 libsystem_malloc.dylib 0x00007fffa141af0d tiny_free_list_remove_ptr + 292
5 libsystem_malloc.dylib 0x00007fffa141ba5d szone_realloc + 2276
6 libsystem_malloc.dylib 0x00007fffa141b121 malloc_zone_realloc + 115
7 libsystem_malloc.dylib 0x00007fffa141b010 realloc + 256
8 com.apple.LLDB.framework 0x00000001012d916d llvm::SmallVectorBase::grow_pod(void*, unsigned long, unsigned long) + 61
9 com.apple.LLDB.framework 0x0000000102d3c5a8 llvm::SmallVectorTemplateBase<char, true>::push_back(char const&) + 56
10 com.apple.LLDB.framework 0x0000000102bf7d6d lldb_private::FileSpec::SetFile(llvm::StringRef, bool, lldb_private::FileSpec::PathSyntax) + 159
11 com.apple.LLDB.framework 0x0000000102bfa027 lldb_private::FileSpec::ForEachItemInDirectory(llvm::StringRef, std::1::function<lldb_private::FileSpec::EnumerateDirectoryResult (lldb_private::FileSpec::FileType, lldb_private::FileSpec const&)> const&) + 1033
12 com.apple.LLDB.framework 0x0000000102bfa28b lldb_private::FileSpec::EnumerateDirectory(llvm::StringRef, bool, bool, bool, lldb_private::FileSpec::EnumerateDirectoryResult ()(void, lldb_private::FileSpec::FileType, lldb_private::FileSpec const&), void) + 147
13 com.apple.LLDB.framework 0x0000000102b1f8b7 PlatformDarwin::FindSDKInXcodeForModules(PlatformDarwin::SDKType, lldb_private::FileSpec const&) + 151
14 com.apple.LLDB.framework 0x0000000102b1fac2 PlatformDarwin::GetSDKDirectoryForModules(PlatformDarwin::SDKType) + 418
15 com.apple.LLDB.framework 0x0000000102b2024a PlatformDarwin::AddClangModuleCompilationOptionsForSDKType(lldb_private::Target, std::1::vector<std::1::basic_string<char, std::1::char_traits
Thread 7: 0 libsystem_pthread.dylib 0x00007fffa14af070 start_wqthread + 0
Thread 6 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x000070000f525518 rdx: 0x0000000000000000 rdi: 0x0000000000001d0f rsi: 0x0000000000000006 rbp: 0x000070000f525540 rsp: 0x000070000f525518 r8: 0x00000000fffffff0 r9: 0x00007fcd3a405660 r10: 0x0000000008000000 r11: 0x0000000000000206 r12: 0x0000000000000001 r13: 0x0000000104897000 r14: 0x000070000f527000 r15: 0x0000000104894000 rip: 0x00007fffa13c4d42 rfl: 0x0000000000000206 cr2: 0x000070000e292060
Logical CPU: 0 Error Code: 0x02000148 Trap Number: 133
Binary Images:
0x100288000 - 0x10030bff7 +lldb-rpc-server (2)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 3 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 29473 thread_create: 0 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=261.2M resident=0K(0%) swapped_out_or_unallocated=261.2M(100%) Writable regions: Total=533.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=533.1M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Activity Tracing 256K 2 Dispatch continuations 8192K 2 Kernel Alloc Once 8K 2 MALLOC 476.0M 197 MALLOC guard page 16K 4 STACK GUARD 56.0M 9 Stack 41.6M 9 VM_ALLOCATE 6924K 20 DATA 13.3M 158 LINKEDIT 128.7M 20 TEXT 132.5M 159 UNICODE 556K 2 mapped file 718.7M 127 shared memory 336K 7 =========== ======= ======= TOTAL 1.5G 704
with cordova > 7 that error was fixed
Hi, I installed with cordova plugin add https://github.com/ghenry22/cordova-plugin-chromecastios.git
Ionic version: 2.1.1
cordova version: 6.3.1
When I call
cordova.plugins.chromecastios.scanForDevices("06CCA653").then(function(response){ console.log(response) }).catch(function(error){ console.log(error) });;
My app crashes, and XCODE says: Bold Cast[3440:2030566] chromecast-ios plugin initializing 2017-08-01 12:29:15.861731-0300 Bold Cast[3440:2030566] THREAD WARNING: ['FWChromecast'] took '36.906982' ms. Plugin should use a background thread. 2017-08-01 12:29:16.449525-0300 Bold Cast[3440:2030566] started Message from debugger: The LLDB RPC server has crashed. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.
any ideas?