Could not connect to development server.
Ensure the following:
Node server is running and available on the same network - run 'npm start' from react-native root
Node server URL is correctly set in AppDelegate
WiFi is enabled and connected to the same network as the Node Server
URL:
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false
RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
__CFRunLoopRun CFRunLoopRunSpecific GSEventRunModal
-[UIApplication _run] UIApplicationMain main start_sim 0x0
this error show in device simulator
Normally it work ,but today problem appear By without change my react native code
I npm start at react native root folder. Metro bundler is stuck at 99.4% when call from device simulator
My react-native. version is 0.61.2
I try solve it by many solution from google , but it not work yet.
please. suggest me
Connection to http://localhost:8081/debugger-proxy?role=client timed
out. Are you running node proxy? If you are running on the device,
check if you have the right IP address in RCTWebSocketExecutor.m.
RCTFatal
-[RCTWebSocketExecutor setUp] facebook::react::(anonymous namespace)::RCTObjcExecutor::RCTObjcExecutor(id,
void (NSError*) block_pointer,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1facebook::react::ExecutorDelegate)
facebook::react::(anonymous
namespace)::RCTObjcExecutor::RCTObjcExecutor(id,
void (NSError*) block_pointer,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1facebook::react::ExecutorDelegate)
facebook::react::RCTObjcExecutorFactory::createJSExecutor(std::__1::shared_ptrfacebook::react::ExecutorDelegate,
std::__1::shared_ptrfacebook::react::MessageQueueThread) (anonymous
namespace)::GetDescAdapter::createJSExecutor(std::__1::shared_ptrfacebook::react::ExecutorDelegate,
std::__1::shared_ptrfacebook::react::MessageQueueThread)
facebook::react::NativeToJsBridge::NativeToJsBridge(facebook::react::JSExecutorFactory*,
std::__1::shared_ptrfacebook::react::ModuleRegistry,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::InstanceCallback)
facebook::react::NativeToJsBridge::NativeToJsBridge(facebook::react::JSExecutorFactory*,
std::__1::shared_ptrfacebook::react::ModuleRegistry,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::InstanceCallback)
std::__1::__unique_iffacebook::react::NativeToJsBridge::__unique_single
std::__1::make_unique<facebook::react::NativeToJsBridge,
facebook::react::JSExecutorFactory*,
std::__1::shared_ptrfacebook::react::ModuleRegistry&,
std::__1::shared_ptrfacebook::react::MessageQueueThread&,
std::__1::shared_ptrfacebook::react::InstanceCallback&>(facebook::react::JSExecutorFactory*&&,
std::__1::shared_ptrfacebook::react::ModuleRegistry&,
std::__1::shared_ptrfacebook::react::MessageQueueThread&,
std::__1::shared_ptrfacebook::react::InstanceCallback&)
facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback,
std::__1::default_deletefacebook::react::InstanceCallback >,
std::__1::shared_ptrfacebook::react::JSExecutorFactory,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::ModuleRegistry)::$_0::operator()()
decltype(std::__1::forward<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback,
std::__1::default_deletefacebook::react::InstanceCallback >,
std::__1::shared_ptrfacebook::react::JSExecutorFactory,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::ModuleRegistry)::$_0&>(fp)())
std::__1::__invoke<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback,
std::__1::default_deletefacebook::react::InstanceCallback >,
std::__1::shared_ptrfacebook::react::JSExecutorFactory,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::ModuleRegistry)::$_0&>(facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback,
std::__1::default_deletefacebook::react::InstanceCallback >,
std::__1::shared_ptrfacebook::react::JSExecutorFactory,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::ModuleRegistry)::$_0&) void
std::__1::__invoke_void_return_wrapper<void,
true>::__call<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback,
std::__1::default_deletefacebook::react::InstanceCallback >,
std::__1::shared_ptrfacebook::react::JSExecutorFactory,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::ModuleRegistry)::$_0&>(facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback,
std::__1::default_deletefacebook::react::InstanceCallback >,
std::__1::shared_ptrfacebook::react::JSExecutorFactory,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::ModuleRegistry)::$_0&)
std::__1::__function::__alloc_func<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback,
std::__1::default_deletefacebook::react::InstanceCallback >,
std::__1::shared_ptrfacebook::react::JSExecutorFactory,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::ModuleRegistry)::$_0,
std::__1::allocator<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback,
std::__1::default_deletefacebook::react::InstanceCallback >,
std::__1::shared_ptrfacebook::react::JSExecutorFactory,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::ModuleRegistry)::$_0>, void
()>::operator()()
std::__1::__function::__func<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback,
std::__1::default_deletefacebook::react::InstanceCallback >,
std::__1::shared_ptrfacebook::react::JSExecutorFactory,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::ModuleRegistry)::$_0,
std::__1::allocator<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback,
std::__1::default_deletefacebook::react::InstanceCallback >,
std::__1::shared_ptrfacebook::react::JSExecutorFactory,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::ModuleRegistry)::$_0>, void
()>::operator()() std::__1::__function::__value_func<void
()>::operator()() const std::__1::function<void ()>::operator()()
const facebook::react::tryAndReturnError(std::__1::function<void ()>
const&)
facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()>
const&)
facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void
()>&&)::$_2::operator()() const
decltype(std::__1::forward<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void
()>&&)::$_2&>(fp)())
std::__1::__invoke<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void
()>&&)::$_2&>(facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void
()>&&)::$_2&) void std::__1::__invoke_void_return_wrapper<void,
true>::__call<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void
()>&&)::$_2&>(facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void
()>&&)::$_2&)
std::__1::__function::__alloc_func<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void
()>&&)::$_2,
std::__1::allocator<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void
()>&&)::$_2>, void ()>::operator()()
std::__1::__function::__func<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void
()>&&)::$_2,
std::__1::allocator<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void
()>&&)::$_2>, void ()>::operator()()
std::__1::__function::__value_func<void ()>::operator()() const
std::__1::function<void ()>::operator()() const
facebook::react::RCTMessageThread::runSync(std::__1::function<void
()>)
facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void
()>&&)
facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback,
std::__1::default_deletefacebook::react::InstanceCallback >,
std::__1::shared_ptrfacebook::react::JSExecutorFactory,
std::__1::shared_ptrfacebook::react::MessageQueueThread,
std::__1::shared_ptrfacebook::react::ModuleRegistry)
-[RCTCxxBridge _initializeBridgeLocked:]
-[RCTCxxBridge _initializeBridge:]
__21-[RCTCxxBridge start]_block_invoke.166 decltype(std::__1::forward<void () block_pointer __strong&>(fp)())
std::__1::__invoke<void () block_pointer __strong&>(&&,
decltype(std::__1::forward<void () block_pointer
__strong&>(fp)())&&...) void std::__1::__invoke_void_return_wrapper<void, true>::__call<void ()
block_pointer __strong&>(void () block_pointer __strong&)
std::__1::__function::__alloc_func<void () block_pointer __strong,
std::__1::allocatorstd::__1::allocator, void ()>::operator()()
std::__1::__function::__func<void () block_pointer __strong,
std::__1::allocatorstd::__1::allocator, void ()>::operator()()
std::__1::__function::__value_func<void ()>::operator()() const
std::__1::function<void ()>::operator()() const
facebook::react::tryAndReturnError(std::__1::function<void ()> const&)
-[RCTCxxBridge _tryAndHandleError:]
__NSThreadPerformPerform
CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
__CFRunLoopDoSource0
__CFRunLoopDoSources0
__CFRunLoopRun CFRunLoopRunSpecific
+[RCTCxxBridge runRunLoop]
NSThread__start
_pthread_start thread_start
sometime above error show at simulator
i can solve this.
reason from has below code in somefile in my project
import { isGetAccessor } from 'typescript';
when i rid its my project come back to work again
Related
I user Flutter PlatformView to Maps and navigation in my App, but I'm having serious performance problems.
My app always stuck over 5 second on the iPhone which device system is iOS12 and below. And, never occur on the iPhone device system above iOS 12.
I have this problem as son as I upgrade Flutter from 1.17 to 2.0.1, I find my app always stuck when I use map and navigation function over 30 mins.
I got the reason [CAMetalLayer nextDrawable] which cause my app stuck by use stuck check tools. There is call stack:
0 libsystem_kernel.dylib semaphore_timedwait_trap + 8
1 libdispatch.dylib _dispatch_sema4_timedwait$VARIANT$armv81 + 60
2 libdispatch.dylib _dispatch_semaphore_wait_slow + 72
3 QuartzCore -[CAMetalLayer nextDrawable] + 1424
4 Flutter std::__1::__function::__func<SkSurface::MakeFromCAMetalLayer(GrRecordingContext*, void const*, GrSurfaceOrigin, int, SkColorType, sk_sp<SkColorSpace>, SkSurfaceProps const*, void const**)::$_0, std::__1::allocator<SkSurface::MakeFromCAMetalLayer(GrRecordingContext*, void const*, GrSurfaceOrigin, int, SkColorType, sk_sp<SkColorSpace>, SkSurfaceProps const*, void const**)::$_0>, GrSurfaceProxy::LazyCallbackResult (GrResourceProvider*, GrSurfaceProxy::LazySurfaceDesc const&)>::operator()(GrResourceProvider*&&, GrSurfaceProxy::LazySurfaceDesc const&) (SkSurface_GpuMtl.mm:0)
5 Flutter GrSurfaceProxyPriv::doLazyInstantiation(GrResourceProvider*) (SkRefCnt.h:320)
6 Flutter GrResourceAllocator::assign(int*, int*, GrResourceAllocator::AssignError*) (GrResourceAllocator.cpp:396)
7 Flutter GrDrawingManager::flush(SkSpan<GrSurfaceProxy*>, SkSurface::BackendSurfaceAccess, GrFlushInfo const&, GrBackendSurfaceMutableState const*) (GrDrawingManager.cpp:219)
8 Flutter GrDrawingManager::flushSurfaces(SkSpan<GrSurfaceProxy*>, SkSurface::BackendSurfaceAccess, GrFlushInfo const&, GrBackendSurfaceMutableState const*) (GrDrawingManager.cpp:537)
9 Flutter SkCanvas::onFlush() (GrDirectContext.cpp:375)
10 Flutter std::__1::__function::__func<flutter::FlutterPlatformViewsController::SubmitFrame(GrDirectContext*, std::__1::shared_ptr<flutter::IOSContext>, std::__1::unique_ptr<flutter::SurfaceFrame, std::__1::default_delete<flutter::SurfaceFrame> >, std::__1::shared_ptr<fml::SyncSwitch> const&)::$_1, std::__1::allocator<flutter::FlutterPlatformViewsController::SubmitFrame(GrDirectContext*, std::__1::shared_ptr<flutter::IOSContext>, std::__1::unique_ptr<flutter::SurfaceFrame, std::__1::default_delete<flutter::SurfaceFrame> >, std::__1::shared_ptr<fml::SyncSwitch> const&)::$_1>, void ()>::operator()() (SkCanvas.h:2758)
11 Flutter fml::SyncSwitch::Execute(fml::SyncSwitch::Handlers const&) (mutex:501)
12 Flutter flutter::IOSExternalViewEmbedder::SubmitFrame(GrDirectContext*, std::__1::unique_ptr<flutter::SurfaceFrame, std::__1::default_delete<flutter::SurfaceFrame> >, std::__1::shared_ptr<fml::SyncSwitch> const&) (functional:1831)
13 Flutter flutter::Rasterizer::DrawToSurface(flutter::LayerTree&) (memory:4211)
14 Flutter std::__1::__function::__func<flutter::Rasterizer::Draw(fml::RefPtr<flutter::Pipeline<flutter::LayerTree> >, std::__1::function<bool (flutter::LayerTree&)>)::$_1, std::__1::allocator<flutter::Rasterizer::Draw(fml::RefPtr<flutter::Pipeline<flutter::LayerTree> >, std::__1::function<bool (flutter::LayerTree&)>)::$_1>, void (std::__1::unique_ptr<flutter::LayerTree, std::__1::default_delete<flutter::LayerTree> >)>::operator()(std::__1::unique_ptr<flutter::LayerTree, std::__1::default_delete<flutter::LayerTree> >&&) (rasterizer.cc:344)
15 Flutter flutter::Rasterizer::Draw(fml::RefPtr<flutter::Pipeline<flutter::LayerTree> >, std::__1::function<bool (flutter::LayerTree&)>) (memory:2620)
16 Flutter std::__1::__function::__func<flutter::Rasterizer::Draw(fml::RefPtr<flutter::Pipeline<flutter::LayerTree> >, std::__1::function<bool (flutter::LayerTree&)>)::$_2, std::__1::allocator<flutter::Rasterizer::Draw(fml::RefPtr<flutter::Pipeline<flutter::LayerTree> >, std::__1::function<bool (flutter::LayerTree&)>)::$_2>, void ()>::operator()() (functional:1831)
17 Flutter fml::MessageLoopImpl::FlushTasks(fml::FlushType) (ref_ptr.h:121)
18 Flutter fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) (message_loop_darwin.mm:76)
19 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
20 CoreFoundation __CFRunLoopDoTimer + 864
21 CoreFoundation __CFRunLoopDoTimers + 248
22 CoreFoundation __CFRunLoopRun + 2168
23 CoreFoundation CFRunLoopRunSpecific + 552
24 GraphicsServices GSEventRunModal + 100
25 UIKit UIApplicationMain + 236
26 myapp main (main.m:37)
27 libdyld.dylib start + 4
I don't know how to avoid the stuck When I user my app,Can someone help me solve this problem?
I have an issue with debugging my iOS application. When the app reaches the breakpoint it stops there for a second and then the debugger crashes. (The app doesn't crash, only the debugger. A behavior similar to a device being disconnected from cable while it's in debug mode).
The print from Xcode Console:
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.
I checked the crash log and here's the part of the file:
Process: lldb-rpc-server [21320]
Path: /Applications/Xcode.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 [15500]
Responsible: lldb-rpc-server [21320]
User ID: 502
Date/Time: 2018-04-12 17:20:19.901 +0300
OS Version: Mac OS X 10.13.4 (17E199)
Report Version: 12
Anonymous UUID: BCD9F4BE-3ECF-2DD0-68EC-671CF1821432
Time Awake Since Boot: 24000 seconds
System Integrity Protection: enabled
Crashed Thread: 8 RPC packet thread for client tid 00055ab9 (350905)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
Stack dump:
0. error finding type for _T07Staging11AppDelegateCD
abort() called
Thread 8 Crashed:: RPC packet thread for client tid 00055ab9 (350905)
0 libsystem_kernel.dylib 0x00007fff70cdcb6e __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff70ea7080 pthread_kill + 333
2 libsystem_c.dylib 0x00007fff70c3824d __abort + 144
3 libsystem_c.dylib 0x00007fff70c381bd abort + 142
4 com.apple.LLDB.framework 0x000000011132acdd swift::ModuleFile::fatal(llvm::Error) + 1213
5 com.apple.LLDB.framework 0x0000000111332711 swift::ModuleFile::getDeclChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::Optional<swift::DeclContext*>) + 27649
6 com.apple.LLDB.framework 0x0000000111359e39 swift::ModuleFile::lookupValue(swift::DeclName, llvm::SmallVectorImpl<swift::ValueDecl*>&) + 841
7 com.apple.LLDB.framework 0x0000000110b43f9a swift::ModuleDecl::lookupValue(llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, swift::DeclName, swift::NLKind, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 90
8 com.apple.LLDB.framework 0x0000000110b4e8aa void lookupInModule<llvm::SmallSet<swift::CanType, 4u, (anonymous namespace)::SortCanType>, swift::namelookup::lookupInModule(swift::ModuleDecl*, llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, swift::DeclName, llvm::SmallVectorImpl<swift::ValueDecl*>&, swift::NLKind, swift::namelookup::ResolutionKind, swift::LazyResolver*, swift::DeclContext const*, llvm::ArrayRef<std::__1::pair<llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, swift::ModuleDecl*> >)::$_0>(swift::ModuleDecl*, llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, llvm::SmallVectorImpl<swift::ValueDecl*>&, swift::namelookup::ResolutionKind, bool, swift::LazyResolver*, llvm::SmallDenseMap<std::__1::pair<llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, swift::ModuleDecl*>, llvm::TinyPtrVector<swift::ValueDecl*>, 32u, llvm::DenseMapInfo<std::__1::pair<llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, swift::ModuleDecl*> >, llvm::detail::DenseMapPair<std::__1::pair<llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, swift::ModuleDecl*>, llvm::TinyPtrVector<swift::ValueDecl*> > >&, swift::DeclContext const*, bool, llvm::ArrayRef<std::__1::pair<llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, swift::ModuleDecl*> >, swift::namelookup::lookupInModule(swift::ModuleDecl*, llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, swift::DeclName, llvm::SmallVectorImpl<swift::ValueDecl*>&, swift::NLKind, swift::namelookup::ResolutionKind, swift::LazyResolver*, swift::DeclContext const*, llvm::ArrayRef<std::__1::pair<llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, swift::ModuleDecl*> >)::$_0) + 346
9 com.apple.LLDB.framework 0x0000000110b4e71e swift::namelookup::lookupInModule(swift::ModuleDecl*, llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, swift::DeclName, llvm::SmallVectorImpl<swift::ValueDecl*>&, swift::NLKind, swift::namelookup::ResolutionKind, swift::LazyResolver*, swift::DeclContext const*, llvm::ArrayRef<std::__1::pair<llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, swift::ModuleDecl*> >) + 1278
10 com.apple.LLDB.framework 0x0000000110b550e1 swift::DeclContext::lookupQualified(swift::Type, swift::DeclName, swift::NLOptions, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 1089
11 com.apple.LLDB.framework 0x0000000110c56db2 DeclsLookupSource::lookupQualified(swift::Identifier, swift::NLOptions, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) + 226
12 com.apple.LLDB.framework 0x0000000110c5693d FindFirstNamedDeclWithKind(swift::ASTContext*, llvm::StringRef const&, swift::DeclKind, VisitNodeResult&, llvm::Optional<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) + 301
13 com.apple.LLDB.framework 0x0000000110c5608c VisitNodeIdentifier(swift::ASTContext*, swift::Demangle::Node*, swift::Demangle::Node*, VisitNodeResult&) + 124
14 com.apple.LLDB.framework 0x0000000110c4ebf7 VisitNode(swift::ASTContext*, swift::Demangle::Node*, VisitNodeResult&) + 199
15 com.apple.LLDB.framework 0x0000000110c4eba0 VisitNode(swift::ASTContext*, swift::Demangle::Node*, VisitNodeResult&) + 112
16 com.apple.LLDB.framework 0x0000000110c4eba0 VisitNode(swift::ASTContext*, swift::Demangle::Node*, VisitNodeResult&) + 112
17 com.apple.LLDB.framework 0x0000000110c4eba0 VisitNode(swift::ASTContext*, swift::Demangle::Node*, VisitNodeResult&) + 112
18 com.apple.LLDB.framework 0x0000000110c5475c swift::ide::getTypeFromMangledSymbolname(swift::ASTContext&, llvm::StringRef, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 204
19 com.apple.LLDB.framework 0x000000011172ceda lldb_private::SwiftASTContext::GetTypeFromMangledTypename(char const*, lldb_private::Error&) + 532
20 com.apple.LLDB.framework 0x00000001114a5101 DWARFASTParserSwift::ParseTypeFromDWARF(lldb_private::SymbolContext const&, DWARFDIE const&, lldb_private::Log*, bool*) + 887
21 com.apple.LLDB.framework 0x00000001115c2623 SymbolFileDWARF::ParseType(lldb_private::SymbolContext const&, DWARFDIE const&, bool*) + 171
22 com.apple.LLDB.framework 0x00000001115bc33f SymbolFileDWARF::GetTypeForDIE(DWARFDIE const&, bool) + 369
23 com.apple.LLDB.framework 0x00000001115bbc6e SymbolFileDWARF::ResolveType(DWARFDIE const&, bool, bool) + 68
24 com.apple.LLDB.framework 0x00000001115bbbed SymbolFileDWARF::ResolveTypeUID(unsigned long long) + 45
25 com.apple.LLDB.framework 0x00000001116390d7 lldb_private::SymbolFileType::GetType() + 51
26 com.apple.LLDB.framework 0x000000011147be4f lldb_private::ValueObjectVariable::GetCompilerTypeImpl() + 21
27 com.apple.LLDB.framework 0x000000011146cf67 lldb_private::ValueObject::MaybeCalculateCompleteType() + 39
28 com.apple.LLDB.framework 0x00000001114712dd lldb_private::ValueObject::GetObjectRuntimeLanguage() + 33
29 com.apple.LLDB.framework 0x000000011147167b lldb_private::ValueObject::IsRuntimeSupportValue() + 73
30 com.apple.LLDB.framework 0x000000010eb3faec lldb::SBFrame::GetVariables(lldb::SBVariablesOptions const&) + 624
31 com.apple.LLDB.framework 0x000000010eb3fda4 lldb::SBFrame::GetVariables(bool, bool, bool, bool, lldb::DynamicValueType) + 208
32 lldb-rpc-server 0x000000010e8b0aef rpc_server::_ZN4lldb7SBFrame12GetVariablesEbbbbNS_16DynamicValueTypeE::HandleRPCCall(rpc_common::Connection&, rpc_common::RPCStream&, rpc_common::RPCStream&) + 219
33 lldb-rpc-server 0x000000010e87662a rpc_common::Connection::PrivateHandleRPCPacket(rpc_common::RPCPacket&, rpc_common::RPCPacket&, bool&) + 506
34 lldb-rpc-server 0x000000010e87730c rpc_common::Connection::HandleRPCPacket(rpc_common::RPCPacket&) + 62
35 lldb-rpc-server 0x000000010e87a862 Packets::ProcessPackets() + 254
36 lldb-rpc-server 0x000000010e87a68b Packets::ReadThread() + 187
37 lldb-rpc-server 0x000000010e87a5cb Packets::RunReadThread(void*) + 9
38 libsystem_pthread.dylib 0x00007fff70ea4661 _pthread_body + 340
39 libsystem_pthread.dylib 0x00007fff70ea450d _pthread_start + 377
40 libsystem_pthread.dylib 0x00007fff70ea3bf9 thread_start + 13
(the full output could be found here)
https://pastebin.com/18ZE08kv
Line 28 says:
error finding type for _T07Staging11AppDelegateCD
Does anybody know, what the error means?
Any help would be appreciated.
Regards
Just move your breakpoint by a line. Clean the project and try to run again, it should solve your problem.
I've been trying to use redux-persist in a React Native app that I'm building, but whenever I do, I get random crashes when running on an iOS device. This problem does not occur when running on the simulator. It happens on versions 4 and 5 of redux-persist.
According to sentry.io, the error is:
EXC_BREAKPOINT main
fatalException 6, Code 2390738480, Subcode 8
I've tested this on all released versions of iOS 11. Sometimes it seems that the error has disappeared for a few days of normal usage, but then it will return, often repeatedly. This behaviour suggests that the crash only occurs when the store reaches a certain state, or if it becomes too large. As far as I can tell, though, this is not the case - apparently Async Storage does not have a size limit on iOS (unlike Android).
The sentry.io stack trace doesn't seem to provide any clues, but here it is anyway:
JavaScriptCore 0x18e7fc630 bmalloc::Heap::allocateLarge(std::__1::lock_guard&, unsigned long, unsigned long)
JavaScriptCore 0x18e7f9ea4 bmalloc::Allocator::allocateLarge(unsigned long)
JavaScriptCore 0x18deb8a04 WTF::fastMalloc(unsigned long)
JavaScriptCore 0x18dec9d50 WTF::StringImpl::createUninitialized(unsigned int, unsigned short*&)
JavaScriptCore 0x18dec9bf8 WTF::StringBuilder::allocateBufferUpConvert(unsigned char const*, unsigned int)
JavaScriptCore 0x18e7e76f0 WTF::StringBuilder::appendQuotedJSONString(WTF::String const&)
JavaScriptCore 0x18e55a2cc JSC::Stringifier::appendStringifiedValue(WTF::StringBuilder&, JSC::JSValue, JSC::Stringifier::Holder const&, JSC::PropertyNameForFunctionCall const&)
JavaScriptCore 0x18e55b354 JSC::Stringifier::Holder::appendNextProperty(JSC::Stringifier&, WTF::StringBuilder&)
JavaScriptCore 0x18e55a5d4 JSC::Stringifier::appendStringifiedValue(WTF::StringBuilder&, JSC::JSValue, JSC::Stringifier::Holder const&, JSC::PropertyNameForFunctionCall const&)
JavaScriptCore 0x18e5594e0 JSC::Stringifier::stringify(JSC::Handle)
JavaScriptCore 0x18e55d804 JSC::JSONProtoFuncStringify(JSC::ExecState*)
JavaScriptCore 0x18e5f34c8 llint_entry
JavaScriptCore 0x18e5f2a94 llint_entry
JavaScriptCore 0x18e5f2a94 llint_entry
JavaScriptCore 0x18e5f2a94 llint_entry
JavaScriptCore 0x18e5f2a30 llint_entry
JavaScriptCore 0x18e5f2ee0 llint_entry
JavaScriptCore 0x18e5f2a30 llint_entry
JavaScriptCore 0x18e5f2a94 llint_entry
JavaScriptCore 0x18e5f2a30 llint_entry
JavaScriptCore 0x18e5ebf50 llintPCRangeStart
JavaScriptCore 0x18e4d1b94 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)
JavaScriptCore 0x18def71b8 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
JavaScriptCore 0x18e506c3c JSC::boundThisNoArgsFunctionCall(JSC::ExecState*)
JavaScriptCore 0x18e5ec098 vmEntryToNative
JavaScriptCore 0x18def7200 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
JavaScriptCore 0x18e14a1fc JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
JavaScriptCore 0x18def6f68 JSObjectCallAsFunction
rizzle 0x1013eca4c facebook::react::Object::callAsFunction(OpaqueJSValue*, int, OpaqueJSValue const* const*) const
rizzle 0x10140c76c facebook::react::JSCExecutor::callFunction(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, folly::dynamic const&)
at setJSResponder(node_modules/react-native-sentry/lib/NativeClient.js:155:29)
at onChange(node_modules/react-native/Libraries/Renderer/ReactNativeFiber-prod.js:3241:23)
at setResponderAndExtractTransfer(node_modules/react-native/Libraries/Renderer/ReactNativeFiber-prod.js:3354:140)
at extractEvents(node_modules/react-native/Libraries/Renderer/ReactNativeFiber-prod.js:3463:85)
at extractEvents(node_modules/react-native/Libraries/Renderer/ReactNativeFiber-prod.js:2971:54)
at fn(node_modules/react-native/Libraries/Renderer/ReactNativeFiber-prod.js:3201:47)
at batchedUpdates(node_modules/react-native/Libraries/Renderer/ReactNativeFiber-prod.js:2448:20)
at batchedUpdates(node_modules/react-native/Libraries/Renderer/ReactNativeFiber-prod.js:198:16)
at _receiveRootNodeIDEvent(node_modules/react-native/Libraries/Renderer/ReactNativeFiber-prod.js:3221:32)
at apply(node_modules/react-native/Libraries/Renderer/ReactNativeFiber-prod.js:3234:37)
at fn(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:299:42)
at __guard(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:262:7)
at value(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:110:10)
rizzle 0x10140bb00 std::__1::function::operator()(OpaqueJSContext*) const
rizzle 0x10139a110 facebook::react::tryAndReturnError(std::__1::function const&)
rizzle 0x1013923a8 facebook::react::RCTMessageThread::tryFunc(std::__1::function const&)
CoreFoundation 0x18756016c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__
CoreFoundation 0x18755fa3c __CFRunLoopDoBlocks
CoreFoundation 0x18755dca4 __CFRunLoopRun
CoreFoundation 0x18747e2d8 CFRunLoopRunSpecific
rizzle 0x101374c48 +[RCTCxxBridge runRunLoop]
Foundation 0x187fa7860 __NSThread__start__
libsystem_pthread 0x1871e432c _pthread_body
libsystem_pthread 0x1871e41f8 _pthread_start
I've been trying to get to the bottom of this for over 3 months now, and have been trying out alternative libraries, but I would really like to be able to use redux-persist.
I've encountered the exact same error and stack trace with redux-persist, which seemed to be caused when the size of data in one of my reducers was too large for some aspect of the storage engine to handle.
In my case, the json that was trying to be persisted was 520000000 characters in size!
In the end, the best solution I found was to split that persisted reducer into smaller reducers, which I then combined in my app, so that I could handle it as one from my application code.
I also experimented with different storage engines to find the one that handled that amount of data the best, finally settling on a redux-persist-realm, though we did patch it to fix some errors we were getting.
To split the reducer I used the first character of each items uuid, so that I would get 16 reasonable even sized sub-sets.
First I created a reducer for each of the potential first characters of the uuid
const store = createStore(
{
... other reducers
recordsDataA: createReducer('A'),
recordsDataB: createReducer('B'),
recordsDataC: createReducer('C'),
recordsDataD: createReducer('D'),
recordsDataE: createReducer('E'),
...
},
applyMiddleware(...middlewares),
enhancer
)
export const createReducer = key => combineReducers({
records: recordsReducer(key),
})
const recordsReducer = batch => (state = [], action) => {
switch (action.type) {
case REQUEST_RECORDS_SUCCESS:
return action.records.filter(record => record.id[0].toUpperCase() === batch)
... other actions
default:
return state
}
}
Then in my selector, using reselect, I combined the individual reducers back into a single array, so that it can easily be used from other selectors. i.e -
export const makeGetAllRecords = () =>
createSelector(
[
state => state.recordsDataA.records,
state => state.recordsDataB.records,
state => state.recordsDataC.records,
state => state.recordsDataD.records,
state => state.recordsDataE.records,
state => state.recordsDataF.records,
...
],
(...allBatches) => [].concat(...allBatches)
)
export const getRecordById = (state: Array<Record>, recordId: string) =>
makeGetAllRecords()(state).find(record => record.id === recordId) || null
I'm sure there is plenty that can be done to neaten and optimise that code, but its working well for as in production as is.
I am receiving a Crashlytics report but it doesn't contain anything that could help me identify which part of my application is crashing.
Here's the complete downloaded .txt report from Crashlytics
# Crashlytics - plaintext stacktrace downloaded by User at Mon, 23 Jan 2017 06:25:47 GMT
# URL: https://fabric.io/user/ios/apps/com.myapp.bundleidentifier/issues/57c72fb40aeb16625b814d60/sessions/3000505bf0e34fd3bcd6e9cabdecada3_7d537631c1fd41e9bb6d83e1f2a8b6dd_0_v1
# Organization: User
# Platform: ios
# Application: Hajj
# Version: 1.0.4 (1)
# Bundle Identifier: com.myapp.bundleidentifier
# Issue #: 2
# Issue ID: 57c72fb40aeb16625b814d60
# Session ID: 3000505bf0e34fd3bcd6e9cabdecada3_7d537631c1fd41e9bb6d83e1f2a8b6dd_0_v1
# Date: 2017-01-22T10:14:11Z
# OS Version: 10.2.0 (14C92)
# Device: iPhone 5s
# RAM Free: 7.4%
# Disk Free: 9.5%
#0. Crashed: com.apple.main-thread
0 Template 0x10043013c std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int> > >::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, void*>*) + 4299620668
1 Template 0x100430148 std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int> > >::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, void*>*) + 4299620680
2 Template 0x100430148 std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int> > >::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, void*>*) + 4299620680
3 Template 0x100477548 opengl::GLProgram::~GLProgram() + 4299912520
4 Template 0x100430148 std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int> > >::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, void*>*) + 4299620680
5 Template 0x10047771c opengl::GLProgram::~GLProgram() + 4299912988
6 Template 0x10046d1e8 opengl::detail::GLStateMachine::~GLStateMachine() + 4299870696
7 Template 0x10046bd74 opengl::detail::GLStateMachine::~GLStateMachine() + 4299865460
8 libsystem_c.dylib 0x1855ffff0 __cxa_finalize_ranges + 392
9 libsystem_c.dylib 0x1855a9390 exit + 24
10 UIKit 0x18c5fe7fc +[_UIAlertManager hideAlertsForTermination] + 490
11 UIKit 0x18c8007cc __102-[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:]_block_invoke.2100 + 792
12 UIKit 0x18c803fdc _runAfterCACommitDeferredBlocks + 292
13 UIKit 0x18c7f5d50 _cleanUpAfterCAFlushAndRunDeferredBlocks + 560
14 UIKit 0x18c5650b4 _afterCACommitHandler + 168
15 CoreFoundation 0x18666a0c0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
16 CoreFoundation 0x186667cf0 __CFRunLoopDoObservers + 372
17 CoreFoundation 0x186668180 __CFRunLoopRun + 1024
18 CoreFoundation 0x1865962b8 CFRunLoopRunSpecific + 444
19 GraphicsServices 0x18804a198 GSEventRunModal + 180
20 UIKit 0x18c5dd7fc -[UIApplication _run] + 684
21 UIKit 0x18c5d8534 UIApplicationMain + 208
22 Template 0x10006affc main (main.m:14)
23 libdispatch.dylib 0x1855795b8 (Missing)
--
#0. Crashed: com.apple.main-thread
0 Template 0x10043013c std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int> > >::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, void*>*) + 4299620668
1 Template 0x100430148 std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int> > >::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, void*>*) + 4299620680
2 Template 0x100430148 std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int> > >::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, void*>*) + 4299620680
3 Template 0x100477548 opengl::GLProgram::~GLProgram() + 4299912520
4 Template 0x100430148 std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int> > >::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, void*>*) + 4299620680
5 Template 0x10047771c opengl::GLProgram::~GLProgram() + 4299912988
6 Template 0x10046d1e8 opengl::detail::GLStateMachine::~GLStateMachine() + 4299870696
7 Template 0x10046bd74 opengl::detail::GLStateMachine::~GLStateMachine() + 4299865460
8 libsystem_c.dylib 0x1855ffff0 __cxa_finalize_ranges + 392
9 libsystem_c.dylib 0x1855a9390 exit + 24
10 UIKit 0x18c5fe7fc +[_UIAlertManager hideAlertsForTermination] + 490
11 UIKit 0x18c8007cc __102-[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:]_block_invoke.2100 + 792
12 UIKit 0x18c803fdc _runAfterCACommitDeferredBlocks + 292
13 UIKit 0x18c7f5d50 _cleanUpAfterCAFlushAndRunDeferredBlocks + 560
14 UIKit 0x18c5650b4 _afterCACommitHandler + 168
15 CoreFoundation 0x18666a0c0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
16 CoreFoundation 0x186667cf0 __CFRunLoopDoObservers + 372
17 CoreFoundation 0x186668180 __CFRunLoopRun + 1024
18 CoreFoundation 0x1865962b8 CFRunLoopRunSpecific + 444
19 GraphicsServices 0x18804a198 GSEventRunModal + 180
20 UIKit 0x18c5dd7fc -[UIApplication _run] + 684
21 UIKit 0x18c5d8534 UIApplicationMain + 208
22 Template 0x10006affc main (main.m:14)
23 libdispatch.dylib 0x1855795b8 (Missing)
#1. com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x18566d188 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x18566cff8 mach_msg + 72
2 CoreFoundation 0x18666a5d0 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x1866681ec __CFRunLoopRun + 1132
4 CoreFoundation 0x1865962b8 CFRunLoopRunSpecific + 444
5 Foundation 0x1870d326c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x1870f3dd0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKit 0x18cf51c38 -[UIEventFetcher threadMain] + 136
8 Foundation 0x1871d0e68 __NSThread__start__ + 1024
9 libsystem_pthread.dylib 0x185751850 _pthread_body + 240
10 libsystem_pthread.dylib 0x185751760 _pthread_body + 282
11 libsystem_pthread.dylib 0x18574ed94 thread_start + 4
#2. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x18566d188 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x18566cff8 mach_msg + 72
2 CoreFoundation 0x18666a5d0 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x1866681ec __CFRunLoopRun + 1132
4 CoreFoundation 0x1865962b8 CFRunLoopRunSpecific + 444
5 CFNetwork 0x186d9b8f0 +[NSURLConnection(Loader) _resourceLoadLoop:] + 336
6 Foundation 0x1871d0e68 __NSThread__start__ + 1024
7 libsystem_pthread.dylib 0x185751850 _pthread_body + 240
8 libsystem_pthread.dylib 0x185751760 _pthread_body + 282
9 libsystem_pthread.dylib 0x18574ed94 thread_start + 4
#3. com.twitter.crashlytics.ios.MachExceptionServer
0 Template 0x1000fbc30 CLSProcessRecordAllThreads + 4296260656
1 Template 0x1000fbc30 CLSProcessRecordAllThreads + 4296260656
2 Template 0x1000fbaec CLSProcessRecordAllThreads + 4296260332
3 Template 0x1000ec2ac CLSHandler + 4296196780
4 Template 0x1000e7250 CLSMachExceptionServer + 4296176208
5 libsystem_pthread.dylib 0x185751850 _pthread_body + 240
6 libsystem_pthread.dylib 0x185751760 _pthread_body + 282
7 libsystem_pthread.dylib 0x18574ed94 thread_start + 4
#4. Thread
0 libsystem_kernel.dylib 0x18568ba88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18574f344 _pthread_wqthread + 1452
2 libsystem_pthread.dylib 0x18574ed8c start_wqthread + 4
#5. Thread
0 libsystem_kernel.dylib 0x18568ba88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18574f160 _pthread_wqthread + 968
2 libsystem_pthread.dylib 0x18574ed8c start_wqthread + 4
#6. Thread
0 libsystem_kernel.dylib 0x18568ba88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18574f344 _pthread_wqthread + 1452
2 libsystem_pthread.dylib 0x18574ed8c start_wqthread + 4
#7. Thread
0 libsystem_kernel.dylib 0x18568ba88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18574f160 _pthread_wqthread + 968
2 libsystem_pthread.dylib 0x18574ed8c start_wqthread + 4
#8. Thread
0 libsystem_kernel.dylib 0x18568ba88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18574f344 _pthread_wqthread + 1452
2 libsystem_pthread.dylib 0x18574ed8c start_wqthread + 4
#9. Thread
0 libsystem_pthread.dylib 0x18574ed88 start_wqthread + 126
#10. Thread
0 libsystem_kernel.dylib 0x18568ba88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18574f160 _pthread_wqthread + 968
2 libsystem_pthread.dylib 0x18574ed8c start_wqthread + 4
The application is written Swift 2.3
Can anyone please help me understand how can I even start locating the actual code causing this crash.
Thanks
I am creating iOS app using cordova 5.2.0 (cordova-ios 3.8.0) on an iPad Air2. And I am currently trying to use the telerik-WKWebView-plugin version 0.4.0 (https://github.com/Telerik-Verified-Plugins/WKWebView).
Problem
When I write Japanese in input(type=text) or textarea, WKWebView crashes.
This does not happen when inputting using English.
Any ideas what's wrong? Is there any workaround?
I have these plugins installed:
com.telerik.plugins.wkwebview 0.4.0 "WKWebView Polyfill"
com.shazron.cordova.plugin.keychainutil 2.0.0 "KeyChain Plugin for Cordova iOS"
cordova-plugin-statusbar 1.0.1 "StatusBar"
cordova-plugin-webserver 1.0.3 "CordovaWebServer"
cordova-plugin-whitelist 1.0.0 "Whitelist"
cordova-plugin-x-toast 2.2.0 "Toast"
crash log
Incident Identifier: C0BFA434-10D4-4D06-A68A-A40F3A2FE6FF
CrashReporter Key: 8efab59a8f19fbe4dc7c57c0483ef6ceba677767
Hardware Model: iPad5,4
Process: com.apple.WebKit.WebContent [1469]
Path: /System/Library/Frameworks/WebKit.framework/XPCServices/com.apple.WebKit.WebContent.xpc/com.apple.WebKit.WebContent
Identifier: com.apple.WebKit.WebContent
Version: 8600.1.4.17.9 (8600)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-09-10 11:32:01.633 +0900
Launch Time: 2015-09-10 11:31:32.374 +0900
OS Version: iOS 8.4.1 (12H321)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000018
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 WebCore 0x00000001954fa9bc WebCore::VisibleSelection::VisibleSelection(WebCore::Range const*, WebCore::EAffinity, bool) + 40
1 WebKit 0x000000018b3e0670 WebKit::WebPage::setCompositionAsync(WTF::String const&, WTF::Vector<WebCore::CompositionUnderline, 0ul, WTF::CrashOnOverflow>, WebKit::EditingRange const&, WebKit::EditingRange const&) + 136
2 WebKit 0x000000018b3e0670 WebKit::WebPage::setCompositionAsync(WTF::String const&, WTF::Vector<WebCore::CompositionUnderline, 0ul, WTF::CrashOnOverflow>, WebKit::EditingRange const&, WebKit::EditingRange const&) + 136
3 WebKit 0x000000018b3ef2cc void IPC::callMemberFunctionImpl<WebKit::WebPage, void (WebKit::WebPage::*)(WTF::String const&, WTF::Vector<WebCore::CompositionUnderline, 0ul, WTF::CrashOnOverflow>, WebKit::EditingRange const&, WebKit::EditingRange const&), std::__1::tuple<WTF::String, WTF::Vector<WebCore::CompositionUnderline, 0ul, WTF::CrashOnOverflow>, WebKit::EditingRange, WebKit::EditingRange>, 0ul, 1ul, 2ul, 3ul>(WebKit::WebPage*, void (WebKit::WebPage::*)(WTF::String const&, WTF::Vector<WebCore::CompositionUnderline, 0ul, WTF::CrashOnOverflow>, WebKit::EditingRange const&, WebKit::EditingRange const&), std::__1::tuple<WTF::String, WTF::Vector<WebCore::CompositionUnderline, 0ul, WTF::CrashOnOverflow>, WebKit::EditingRange, WebKit::EditingRange>&&, std::index_sequence<0ul, 1ul, 2ul, 3ul>) + 80
4 WebKit 0x000000018b3ee4d0 void IPC::handleMessage<Messages::WebPage::SetCompositionAsync, WebKit::WebPage, void (WebKit::WebPage::*)(WTF::String const&, WTF::Vector<WebCore::CompositionUnderline, 0ul, WTF::CrashOnOverflow>, WebKit::EditingRange const&, WebKit::EditingRange const&)>(IPC::MessageDecoder&, WebKit::WebPage*, void (WebKit::WebPage::*)(WTF::String const&, WTF::Vector<WebCore::CompositionUnderline, 0ul, WTF::CrashOnOverflow>, WebKit::EditingRange const&, WebKit::EditingRange const&)) + 80
5 WebKit 0x000000018b3ec1fc WebKit::WebPage::didReceiveWebPageMessage(IPC::Connection*, IPC::MessageDecoder&) + 11936
6 WebKit 0x000000018b31ad28 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection*, IPC::MessageDecoder&) + 116
7 WebKit 0x000000018b428790 WebKit::WebProcess::didReceiveMessage(IPC::Connection*, IPC::MessageDecoder&) + 36
8 WebKit 0x000000018b2a56d8 IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::MessageDecoder, std::__1::default_delete<IPC::MessageDecoder> >) + 124
9 WebKit 0x000000018b2a7684 IPC::Connection::dispatchOneMessage() + 116
10 JavaScriptCore 0x0000000187702ab8 WTF::RunLoop::performWork() + 440
11 JavaScriptCore 0x00000001877030f0 WTF::RunLoop::performWork(void*) + 36
12 CoreFoundation 0x0000000185da7f88 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 20
13 CoreFoundation 0x0000000185da722c __CFRunLoopDoSources0 + 260
14 CoreFoundation 0x0000000185da52dc __CFRunLoopRun + 708
15 CoreFoundation 0x0000000185cd0f70 CFRunLoopRunSpecific + 392
16 Foundation 0x0000000186c094c4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 312
17 Foundation 0x0000000186c6380c -[NSRunLoop(NSRunLoop) run] + 92
18 libxpc.dylib 0x0000000198250180 _xpc_objc_main + 664
19 libxpc.dylib 0x0000000198251eec xpc_main + 196
20 com.apple.WebKit.WebContent 0x00000001000a7a7c 0x1000a4000 + 14972
21 libdyld.dylib 0x000000019806aa04 start + 0