How to run WebKit via the bisect-builds script? - macos

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...

Related

oracle export failed due to unable to close dump file

The export is failing due to below error
ORA-31693: Table data object "x"."x_t" failed to load/unload and is being skipped due to error:
ORA-31643: unable to close dump file ""
Anyone has knowledge regarding this issue, please help out

Can't download a file in file provider because of a system error

I have created an extension via the fileprovider template and adopts fileprovider protocols in Xcode. But when i download a file, the system throws the error:
"Couldn't communicate with helper application".
From the system log i can see that the fetch-content failed with such error:
┳139b4 ‼️ done executing <FP2 ‼️ fetch-content(a file 1)
why:materialization|itemChangedRemotely
sched:userInitiated.1647482996.810533#1647482996.810533
error:<NSError: Cocoa 4101 "Couldn't communicate with helper
application." Underlying={NSError: POSIX 2 "couldn't issue sandbox
extension com.apple.app-sandbox.read-write for
'/f/db641e9a04e144c6b320': No such file or directory" }}>>
Any advise would be appreciated, thanks!

puppeteer-sharp Failed to launch Base

I have implemented it in my local and works well. But when I moved the changes to the window server it's giving the below error
Failed to launch Base! [0402/075840.212:ERROR:os_crypt_win.cc(70)] Failed to encrypt: The system cannot find the file specified. (0x2)\r\n[0402/075840.212:FATAL:headless_browser_main_parts.cc(103)] Check failed: OSCrypt::Init(local_state_.get()). \r\nBacktrace:\r\n\tIsSandboxedProcess [0x00007FFC31341842+705042]\r\n\tIsSandboxedProcess [0x00007FFC312C39A2+189298]\r\n\tIsSandboxedProcess [0x00007FFC312D2AF8+251080]\r\n\tIsSandboxedProcess [0x00007FFC312D39E0+254896]\r\n\tRelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFC32B12123+12980755]\r\n\tRelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFC32B11E8D+12980093]\r\n\tovly_debug_event [0x00007FFC2F905929+16331561]\r\n\tovly_debug_event [0x00007FFC2FCC5B17+20264215]\r\n\tovly_debug_event [0x00007FFC2F904675+16326773]\r\n\tovly_debug_event [0x00007FFC2F9073BE+16338366]\r\n\tIsSandboxedProcess [0x00007FFC31DB7DB7+11675527]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125A837+8179991]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125B5AD+8183437]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125B20C+8182508]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125A1BD+8178333]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125A53A+8179226]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC31294D1A+8418810]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC31294BDC+8418492]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC312949E7+8417991]\r\n\tChromeMain [0x00007FFC2E971238+408]\r\n\tOrdinal0 [0x00007FF6E8CF26B8+9912]\r\n\tOrdinal0 [0x00007FF6E8CF1A41+6721]\r\n\tGetHandleVerifier [0x00007FF6E8E3AF42+904642]\r\n\tBaseThreadInitThunk [0x00007FFC68F113F2+34]\r\n\tRtlUserThreadStart [0x00007FFC6AB054F4+52]\r\n\r\n
Can anyone please advise what should be the fix for the above error message?
We had the same error with default browser:
Failed to launch browser! [0428/113352.960:ERROR:os_crypt_win.cc(70)] Failed to encrypt
As #hardkoded suggested, using the revision 851527 we could launch the browser. Thank you!

cant start session of Appium server version 1.15.1

This error message is displaying:
An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'F:\\gautam\\android\\platform-tools\\adb.exe -P 5037 -s 192.168.0.115\:5555 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:1815)
at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1023)
at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1006)
at com.android.providers.settings.SettingsProvider.delete(SettingsProvider.java:592)
at android.content.ContentProvider$Transport.delete(ContentProvider.java:343)
at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:406)
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:289)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:51)
at android.os.Binder.shellCommand(Binder.java:634)
at android.os.Binder.onTransact(Binder.java:532)
at android.os.Binder.execTransact(Binder.java:735)'; Code: '255'`enter code here
An error tells you: Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
Try following steps:
In your phone developer options (Security settings), enable USB Debugging or (or and) Disable permission monitoring. All of these settings are in your dev options.

Upgrade to new XCode; can't built in Xamarin

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!

Resources