I think that one of the last XCode upgrades that came in last week appears to have broken my Xamarin iOS builds. They fail with:
Failed to locate a valid instance of CoreSimulatorService in the bootstrap. Adding it now.
Or
.../SignInUniversalController_iPhone.storyboard: Error: 2016-07-31 12:11:38.046 ibtoold[23284:2756861] [MT] IBPlatformTool: *** Failed to launch tool with description <IBCocoaTouchPlatformToolDescription: 0x7fce44256b20> System content 1x for IBCocoaTouchFramework-NineOneAndLater w/ default fidelity:
Failed to find or create execution context for description <IBCocoaTouchPlatformToolDescription: 0x7fce44256b20> System content 1x for IBCocoaTouchFramework-NineOneAndLater w/ default fidelity (Failure reason: Software caused connection abort): Failed to find a suitable device for the type SimDeviceType : com.apple.dt.Xcode.IBSimDeviceType.iPad-1x with runtime SimRuntime : 9.3 (13E230) - com.apple.CoreSimulator.SimRuntime.iOS-9-3 (Failure reason: Failed to create SimDeviceSet at path /Users/eric/Library/Developer/Xcode/UserData/IB Support/Simulator Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator to see why creating the SimDeviceSet failed.): Failed to initialize simulator device set. (Failure reason: Failed to subscribe to notifications from CoreSimulatorService.): Error returned in reply to notification request: Connection invalid (Failure reason: Software caused connection abort)
2016-07-31 12:11:46.096 ibtoold[23284:2756861] [MT] IBPlatformTool: Wrote failed marshalling request diagnostics to path: /var/folders/t9/t9xl93t50ql14mr0lxmmw_2r0000gn/T/IB-agent-diagnostics_2016-07-31_12-11-46_067000
Error: Internal error. Please file a bug at bugreport.apple.com and attach "/var/folders/t9/t9xl93t50ql14mr0lxmmw_2r0000gn/T/IB-agent-diagnostics_2016-07-31_12-11-46_067000".
The logs mentioned in the first error message doesn't appear to be more verbose than the above:
Failed to find or create execution context for description <IBCocoaTouchPlatformToolDescription: 0x7fce44256b20> System content 1x for IBCocoaTouchFramework-NineOneAndLater w/ default fidelity (Failure reason: Software caused connection abort): Failed to find a suitable device for the type SimDeviceType : com.apple.dt.Xcode.IBSimDeviceType.iPad-1x with runtime SimRuntime : 9.3 (13E230) - com.apple.CoreSimulator.SimRuntime.iOS-9-3 (Failure reason: Failed to create SimDeviceSet at path /Users/eric/Library/Developer/Xcode/UserData/IB Support/Simulator Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator to see why creating the SimDeviceSet failed.): Failed to initialize simulator device set. (Failure reason: Failed to subscribe to notifications from CoreSimulatorService.): Error returned in reply to notification request: Connection invalid (Failure reason: Software caused connection abort)
Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Failed to find or create execution context for description <IBCocoaTouchPlatformToolDescription: 0x7fce44256b20> System content 1x for IBCocoaTouchFramework-NineOneAndLater w/ default fidelity, NSUnderlyingError=0x7fce44152c40 {Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSUnderlyingError=0x7fce441b8150 {Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedFailureReason=Failed to subscribe to notifications from CoreSimulatorService., NSLocalizedDescription=Failed to initialize simulator device set., NSUnderlyingError=0x7fce44155b00 {Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo=0x7fce441c31b0 (not displayed)}}}, NSLocalizedFailureReason=Failed to create SimDeviceSet at path /Users/eric/Library/Developer/Xcode/UserData/IB Support/Simulator Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator to see why creating the SimDeviceSet failed., NSLocalizedDescription=Failed to find a suitable device for the type SimDeviceType : com.apple.dt.Xcode.IBSimDeviceType.iPad-1x with runtime SimRuntime : 9.3 (13E230) - com.apple.CoreSimulator.SimRuntime.iOS-9-3}}}
This is an iPhone project, but uses a Universal component; I note that since the above says iPad.
When it fails, it opens up the Storyboard editor and it appears to be OK there; there's nothing that seems surprising at first glance.
XCode: Version 7.3.1 (7D1014)
Xamarin: Latest Stable; no updates available
Any insight or thoughts? Thanks!
Related
I run my app in Xcode through the simulator and it builds with no crashes. When I run on real device it successfully builds but I get crash errors. Someone suggested it might be the cordova screen lock but I tried it without and still have problems.
Running on real device: a blinking screen or it keeps reloading the first screen, never to make it to the next one. Please help!
Here are the different lines I am seeing when compared to the simulator:
Metal API Validation Enabled
<UMP SDK> To enable debug mode for this device, set: UMPDebugSettings.testDeviceIdentifiers = #[ #"___________________________________" ];
THREAD WARNING: ['CDVOrientation'] took '44.751953' ms. Plugin should use a background thread.
[Process] 0x10f003740 - [PID=1655] WebProcessProxy::didClose: (web process 0 crash)
[Process] 0x10f003740 - [PID=1655] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=4
[ProcessSuspension] 0x10e0042a0 - ProcessAssertion: Failed to acquire RBS Background assertion 'ConnectionTerminationWatchdog' for process because PID 0 is invalid
[ProcessSuspension] 0x10e0042a0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=0, error: (null)
0x150842818 - [pageProxyID=13, webPageID=14, PID=1655] WebPageProxy::processDidTerminate: (pid 1655), reason 4
[assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>
[ProcessSuspension] 0x10e004300 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=1655, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
[Loading] 0x150842818 - [pageProxyID=13, webPageID=14, PID=1655]
WebPageProxy::dispatchProcessDidTerminate: reason=Crash
[XPC] Handle connection with error: Connection interrupted
[Process] 0x10f004110 - [PID=0] WebProcessProxy::didFinishLaunching: Invalid connection identifier (web process failed to launch)
[Process] 0x10f004110 - [PID=0] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=4
[Process] 0x150842818 - [pageProxyID=13, webPageID=14, PID=0] WebPageProxy::processDidTerminate: (pid 0), reason 4
[ServicesDaemonManager] interruptionHandler is called. -[FontServicesDaemonManager connection]_block_invoke
[Process] 0x10f0048f0 - [PID=1682] WebProcessProxy::didClose: (web process 0 crash)
[Process] 0x10f0048f0 - [PID=1682] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=4
THREAD WARNING: ['AdMob'] took '30.550049' ms. Plugin should use a background thread.
THREAD WARNING: ['Consent'] took '10.710205' ms. Plugin should use a background thread.
We saw this issue on Xcode 14.2 where web views were not loading.
Our WKWebViews had Content Rule List set.
The root cause was it compiled the Content Rule List to the underlying chipset (non-Intel), instead of respecting the Rosetta.
This issue was not seen when Xcode was launched without Rosetta.
WebKit has a script that is supposed to help bisect regressions as mentioned in this webkit blog post
I'm trying it out with
./bisect-builds -p mac-mojave -a x86_64 -c release -s 230000 -e 242118
and it downloads a release and runs the release but I can not navigate to any webpages regardless of which release it downloads. I can click a bookmark but typing a URL never works. I can not edit bookmarks (picking edit bookmarks does nothing)
When running I see the errors below in the terminal. That makes me wonder if I need to set some environment variables or something to tell webkit to not use ~/Library/Caches/com.apple.Safari and similar library folders but instead use some temp folder for all it's files since otherwise it would seem like they'd conflict with the system version of Safari.
This page on running webkit mentions nothing
I don't know those errors are the cause of not being able to navigate to pages but whatever the reason, so far it's been impossible to bisect if I can't load a test webpage.
How I can run the webkit bisect-builds script in a way that actually lets me test each webkit revision it launches?
Starting SafariForWebKitDevelopment with DYLD_FRAMEWORK_PATH set to point to built WebKit in /var/folders/7h/wyw4jhd933z5jmqzsdx6r0sr0000gn/T/tmp6D8gwS/Release.
2019-02-27 11:58:59.835 SafariForWebKitDevelopment[43176:20392508] NetworkStorageDB:_openDBReadConnections: failed to open read connection to DB # /Users/gregg/Library/Caches/com.apple.Safari/Cache.db. Error=14. Cause=unable to open database file
2019-02-27 11:58:59.835 SafariForWebKitDevelopment[43176:20392508] CacheRead: unable to open cache files in /Users/gregg/Library/Caches/com.apple.Safari
2019-02-27 11:58:59.836 SafariForWebKitDevelopment[43176:20392508] Failed to obtain sandbox extension for path=/Users/gregg/Library/Caches/com.apple.Safari. Errno:1
2019-02-27 11:58:59.836 SafariForWebKitDevelopment[43176:20392508] NetworkStorageDB:_openDBReadConnections: failed to open read connection to DB # /Users/gregg/Library/Caches/com.apple.Safari/Cache.db. Error=14. Cause=unable to open database file
2019-02-27 11:58:59.836 SafariForWebKitDevelopment[43176:20392508] CacheRead: unable to open cache files in /Users/gregg/Library/Caches/com.apple.Safari
2019-02-27 11:58:59.836 SafariForWebKitDevelopment[43176:20392508] Failed to obtain sandbox extension for path=/Users/gregg/Library/Caches/com.apple.Safari. Errno:1
Failed to open AutoFill corrections SQLite store at AutoFillCorrections.db. Error: Error Domain=com.apple.Safari.SQLite Code=14 "unable to open database file"
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
Failed to open cahce settings store at file:///Users/gregg/Library/Safari/Touch%20Icons%20Cache/TouchIconCacheSettings.db: Error Domain=com.apple.Safari.SQLite Code=14 "unable to open database file"
2019-02-27 11:59:00.100 SafariForWebKitDevelopment[43176:20392508] NetworkStorageDB:_openDBReadConnections: failed to open read connection to DB # /Users/gregg/Library/Caches/com.apple.Safari/Cache.db. Error=14. Cause=unable to open database file
2019-02-27 11:59:00.100 SafariForWebKitDevelopment[43176:20392508] CacheRead: unable to open cache files in /Users/gregg/Library/Caches/com.apple.Safari
2019-02-27 11:59:00.100 SafariForWebKitDevelopment[43176:20392508] Failed to obtain sandbox extension for path=/Users/gregg/Library/Caches/com.apple.Safari. Errno:1
Failed to open AutoFill corrections SQLite store at CloudAutoFillCorrections.db. Error: Error Domain=com.apple.Safari.SQLite Code=14 "unable to open database file"
Failed to open AutoFill corrections SQLite store at AutoFillCorrections.db. Error: Error Domain=com.apple.Safari.SQLite Code=14 "unable to open database file"
Failed to open AutoFill corrections SQLite store at CloudAutoFillCorrections.db. Error: Error Domain=com.apple.Safari.SQLite Code=14 "unable to open database file"
2019-02-27 11:59:00.417 SafariForWebKitDevelopment[43176:20392529] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'SandboxBroker': Connection invalid
Failed to open AutoFill corrections SQLite store at AutoFillCorrections.db. Error: Error Domain=com.apple.Safari.SQLite Code=14 "unable to open database file"
Failed to open AutoFill corrections SQLite store at CloudAutoFillCorrections.db. Error: Error Domain=com.apple.Safari.SQLite Code=14 "unable to open database file"
2019-02-27 11:59:00.560 SafariForWebKitDevelopment[43176:20392510] AOSKit ERROR: XPC CLIENT: Unauthorized client error received
Failed to open AutoFill corrections SQLite store at AutoFillCorrections.db. Error: Error Domain=com.apple.Safari.SQLite Code=14 "unable to open database file"
Failed to open AutoFill corrections SQLite store at CloudAutoFillCorrections.db. Error: Error Domain=com.apple.Safari.SQLite Code=14 "unable to open database file"
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
Failed to open cahce settings store at file:///Users/gregg/Library/Safari/Touch%20Icons%20Cache/TouchIconCacheSettings.db: Error Domain=com.apple.Safari.SQLite Code=14 "unable to open database file"
_RegisterApplication(), FAILED TO establis...
I am trying the first-network demo on OS X and am getting the following error. I have tried searching for an answer. I did found one here but it appears that is for Ubuntu. All the commands didn't work on OS X.
Can anyone suggest a solution on OS X? Thanks!
2018-11-02 03:13:45.696 UTC [main] main -> ERRO 001 Cannot run peer
because error when setting up MSP of type bccsp from directory
/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin#org1.example.com/msp:
could not initialize BCCSP Factories: Failed initializing PKCS11.BCCSP
%!s(): Could not initialize BCCSP PKCS11 [Failed to initialize
software key store: An invalid KeyStore path provided. Path cannot be
an empty string.] !!!!!!!!!!!!!!! Channel creation failed
!!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ==========
The error message is not very specific.
In my case, I was trying to connect to a peer from my fabric-tools container, and there was a TLS enabled mismatch (fabric-tools has TLS enabled, and fabric-peer had TLS disabled). Aligning the TLS configuration made the error go away.
Might help someone out...
✖ Starting business network definition. This may take a minute...
Error: Error trying to start business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: failed to execute transaction b5c260c02b4792c4ae4b85b3d4ccb4565a495da399d27917dccc1a84244e631f: error starting container: error starting container: API error (404): network hlfv11_hyperledger not found
Response from attempted peer comms was an error: Error: failed to execute transaction b5c260c02b4792c4ae4b85b3d4ccb4565a495da399d27917dccc1a84244e631f: error starting container: error starting container: API error (404): network hlfv11_hyperledger not found
This looks like it is a Docker problem trying to start a new ChainCode container on a Docker Network bridge called "hlfv11_hyperledger" which doesn't exist.
(The word 'network' here is ambiguous in the error message :-( )
This is the same problem and hopefully the same solution as a previous post.
I'm getting this error on my latest (and first) AOSPA build for lt01wifi.
It happens when I try to open Browser but it crashes before it opens.
Error Log:
I/LibraryLoader( 5999): Loading: webviewchromium
E/ActivityThread( 5999): Failed to find provider info for com.google.settings
E/dalvikvm( 5999): dlopen("/system/lib/libwebviewchromium.so") failed: dlopen failed: empty/missing DT_HASH in "libwebviewchromium.so" (built with --hash-style=gnu?)
E/WebViewFactory( 5999): error instantiating provider
E/WebViewFactory( 5999): java.lang.RuntimeException: Cannot load WebView
Probably it is the .so file itself that is the problem.
It was built with --hash-style=gnu, which is not supported in Android platform.
You should build your .so file again.
And this link could be helpful.