Why does VSCode external links don't open and make firefox crashing - firefox

OS version: Ubuntu 17.10 x64
VSCode version:1.17.2 x64
When I click on a link in VSCode which refer to an internet URL (ex:on welcome page at startup>Help>Introductory videos) it opens 2 "Mozilla Crash Reporter" windows with "Firefox had a problem and crash"
I tried to disable all Add-ons in Firefox and VSCode, but the issue is still there.
I tried to re-install VSCode
I didn't find a way to ask VSCode to use Chrome instead of Firefox...
here is the Modzilla firefox report content:
Add-ons: sbv4-gradual-rollout%40mozilla.com:1.0.0,firefox%40getpocket.com:1.0.5,activity-stream%40mozilla.org:0.0.0,clicktoplay-rollout%40mozilla.org:1.4,followonsearch%40mozilla.com:0.9.3,aushelper%40mozilla.org:2.0,onboarding%40mozilla.org:0.1,shield-recipe-client%40mozilla.org:65,e10srollout%40mozilla.org:3.00,formautofill%40mozilla.org:1.0,webcompat%40mozilla.org:1.1,screenshots%40mozilla.org:10.12.0,langpack-en-ZA%40firefox.mozilla.org:56.0,%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:56.0,langpack-en-GB%40firefox.mozilla.org:56.0,ubufox%40ubuntu.com:3.3
AddonsShouldHaveBlockedE10s: 0
BuildID: 20171003222101
CTPCohort: user-changed-from-test
ContentSandboxCapabilities: 119
ContentSandboxCapable: 1
ContentSandboxLevel: 2
CrashTime: 1510735922
DOMIPCEnabled: 1
E10SCohort: addons-set50allmpc-test
EMCheckCompatibility: true
Email: -----#gmail.com
FramePoisonBase: 9223372036600930304
FramePoisonSize: 4096
InstallTime: 1509968396
Notes: Ubuntu 17.10FP(D00-L1000-W00000000-T000) OpenGL: X.Org -- Gallium 0.4 on AMD RS880 (DRM 2.50.0 / 4.13.0-16-generic, LLVM 4.0.0) -- 3.0 Mesa 17.0.7 -- texture_from_pixmap
WR? WR-
ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
ProductName: Firefox
ReleaseChannel: release
SafeMode: 0
SecondsSinceLastCrash: 302
StackTraces:
StartupCrash: 0
StartupTime: 1510735920
TelemetryEnvironment: {"build":{"applicationId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","applicationName":"Firefox","architecture":"x86-64","buildId":"20171003222101","version":"56.0","vendor":"Mozilla","platformVersion":"56.0","xpcomAbi":"x86_64-gcc3","hotfixVersion":null},"partner":{"distributionId":null,"distributionVersion":null,"partnerId":null,"distributor":null,"distributorChannel":null,"partnerNames":[]},"system":{"memoryMB":7727,"virtualMaxMB":null,"cpu":{"count":4,"cores":4,"vendor":"AuthenticAMD","family":16,"model":5,"stepping":3,"l2cacheKB":512,"l3cacheKB":512,"speedMHz":3100,"extensions":["hasMMX","hasSSE","hasSSE2","hasSSE3"]},"os":{"name":"Linux","version":"4.13.0-16-generic","locale":"en-US"},"hdd":{"profile":{"model":null,"revision":null},"binary":{"model":null,"revision":null},"system":{"model":null,"revision":null}},"gfx":{"D2DEnabled":null,"DWriteEnabled":null,"ContentBackend":"Skia","adapters":[{"description":"X.Org -- Gallium 0.4 on AMD RS880 (DRM 2.50.0 / 4.13.0-16-generic, LLVM 4.0.0)","vendorID":"X.Org","deviceID":"Gallium 0.4 on AMD RS880 (DRM 2.50.0 / 4.13.0-16-generic, LLVM 4.0.0)","subsysID":null,"RAM":null,"driver":null,"driverVersion":"3.0 Mesa 17.0.7","driverDate":null,"GPUActive":true}],"monitors":[],"features":{"compositor":"none","gpuProcess":{"status":"unused"}}}},"settings":{"blocklistEnabled":true,"e10sEnabled":true,"e10sMultiProcesses":1,"e10sCohort":"addons-set50allmpc-test","telemetryEnabled":false,"locale":"en-US","update":{"channel":"release","enabled":true,"autoDownload":true},"userPrefs":{"browser.cache.disk.capacity":358400,"browser.newtabpage.enhanced":true},"sandbox":{"effectiveContentProcessLevel":2},"addonCompatibilityCheckEnabled":true,"isDefaultBrowser":null},"profile":{},"experiments":{"clicktoplay-rollout":{"branch":"user-changed-from-test"},"e10sCohort":{"branch":"addons-set50allmpc-test"}}}
Theme: classic/1.0
ThreadIdNameMapping: 13144:"Gecko_IOThread",13145:"Timer",13146:"Link Monitor",13147:"Socket Thread",13148:"JS Watchdog",13158:"Hang Monitor",13161:"Cache2 I/O",13162:"GMPThread",13164:"SoftwareVsyncThread",13165:"Compositor",13166:"ImgDecoder #1",13167:"ImgDecoder #2",13168:"ImgDecoder #3",13169:"ImageIO",13170:"SysProxySetting",13171:"ProxyResolution",13172:"DataStorage",13173:"URL Classifier",13174:"DNS Resolver #1",13175:"DataStorage",13176:"DataStorage",13177:"HTML5 Parser",13178:"IPDL Background",13179:"Classifier Update",13182:"DOM Worker",13184:"DOM Worker",13186:"StreamTrans #5",13187:"StreamTrans #6",13188:"StreamTrans #7",13192:"ImageBridgeChild",13194:"ProcessHangMon",
Throttleable: 1
UptimeTS: 1.6526776
Vendor: Mozilla
Version: 56.0
useragent_locale: en-US
This report also contains technical information about the state of the application when it crashed.

Follow this workaround and it should be fixed:
Remove and purge the current installation using sudo apt-get remove code --purge (or in case of using snap, snap remove code).
Download and install the deb package from https://code.visualstudio.com/download
sudo dpkg -i <vscodefile>.deb

I resolved this issue by setting Chrome as "default browser" on my Ubuntu and then re-install VSCode

Related

OSX fix Selenium Chromedriver launch error spawn Unknown system error -86 Bad CPU type in executable?

Suddenly on the afternoon of January 6, 2021, my Selenium Protractor tests under OSX stopped working with the mysterious error
spawn Unknown system error -86
I did some research and discovered that error number 86 is the same as
Bad CPU type in executable
and ran the following to compare the cpu architecture of my chromedriver binary to my system:
% file chromedriver_87.0.4280.88
chromedriver_87.0.4280.88: Mach-O 64-bit executable arm64
% uname -a
Darwin kobl179273m 19.6.0 Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.141.2.2~1/RELEASE_X86_64 x86_64
% uname -p
i386
How can I fix the chromedriver binary used by my Selenium so that it will run on my Intel x64 mac and clear the "system error -86" or "Bad CPU type" message?
The issue is described in https://github.com/angular/webdriver-manager/issues/476.
This has been now fixed in 12.1.8 so just update to that webdriver manager.
For most users this can be accomplished with
npm uninstall protractor && npm install protractor
Edit: this answer should be considered deprecated now that the underlying bug in webdriver-manager has been fixed. A better solution would be to upgrade to the newest version of webdriver-manager. The answer below may be useful if people need to use an older version of webdriver-manager which still has the bug.
As per Deepak Srinivasan's comment above, this error is caused by https://github.com/angular/webdriver-manager/issues/476
Root Cause:
The ChromeDriver team added "_m1" to the end of the filename for their Apple Silicon ARM builds of Chromedriver -- but both the Silicon and Intel versions of chromedriver have "mac64" in the filename, and the version number is exactly the same. This causes webdriver-manager to always download the Silicon build of Chromedriver, even on Intel macs. As a general solution, simply avoid using the chromedriver that has _m1 in its filename if you are on an Intel mac.
Solution 1: Downgrade to Chrome 86.0.4240.198 and Chromedriver 86.0.4240.22. These versions work together and are the most recent versions prior to the new and problematic support for Silicon ARM
Chrome 86 download page:
https://google-chrome.en.uptodown.com/mac/download/2920124
Disable auto-updates in Chrome: https://superuser.com/questions/1359017/how-do-i-disable-automatic-updates-of-google-chrome-on-mac-os-x
Chromedriver 86: https://chromedriver.storage.googleapis.com/index.html?path=86.0.4240.22/
% webdriver-manager update --versions.chrome=86.0.4240.22
Solution 2: Modify the webdriver-manager npm package to point to the correct chromedriver (thanks to ciekaway from the angular github issue page for this fix)
Modify the following file
node_modules/webdriver-manager/built/lib/files/file_manager.js
or, if using protractor
node_modules/protractor/node_modules/webdriver-manager/built/lib/files/file_manager.js
Near the top of the downloadFile method around line 166, add the following line to remove "_m1" from the name of the file:
fileUrl.url = fileUrl.url.replace(/_m1/, '');
It needs to be after the beginning of the .then block that starts with
binary.getUrl(binary.version()).then(fileUrl => {
it also needs to be before the next reference to fileUrl.
For example:
binary.getUrl(binary.version()).then(fileUrl => {
binary.versionCustom = fileUrl.version;
fileUrl.url = fileUrl.url.replace(/_m1/, '');
let filePath = path.resolve(outputDir, binary.filename());
Note that this solution is temporary. It will be overwritten by an npm install. The Chromedriver and/or the webdriver-manager team will probably fix this issue, at which point you should clear the modified version of your webdriver-manager and download the fix from npm.
For macOS Catalina Version 10.15.6 (19G73)
In my case I was working with Rails and Capybara for feature tests. What worked for me was
First, find the actual chromedriver location running:
which chromedriver
# Which returned:
/Users/alex/.webdrivers/chromedriver
Then, install chromedriver via Homebrew:
brew install chromedriver
Then, remove old chromedriver reference found at previous location with:
rm /Users/alex/.webdrivers/chromedriver
Now, link the old chromedriver reference to the one installed with brew:
ln -s /usr/local/bin/chromedriver /Users/alex/.webdrivers/chromedriver
Then, open Finder app, then click on Go menu and then click Go to folder ... option, and enter this route:
/usr/local/Caskroom/chromedriver/
There you should see a folder with the chromedriver version you have installed, something like this:
88.0.4324.96
Enter that folder and you should see the chromedriver binary file.
Right click on it, and click on Open
Now, you should get a terminal window popping up with the output:
Last login: Sun Jan 31 12:29:15 on ttys001
/usr/local/Caskroom/chromedriver/88.0.4324.96/chromedriver ; exit;
  ~  /usr/local/Caskroom/chromedriver/88.0.4324.96/chromedriver ; exit;
Starting ChromeDriver 88.0.4324.96 (68dba2d8a0b149a1d3afac56fa74648032bcf46b- refs/branch-heads/4324#{#1784}) on port 9515
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Finally, press Ctrl+C to stop the execution and quit the terminal window.
Now, you should be able to run capybara tests.
npm uninstall protractor && npm install protractor
If you use webdrivers gem, upgrade it:
bundle update webdrivers

Oracle Instant Client still not working on Mac OS Catalina 10.15.4

I installed the Oracle Instant Client version 19.3 on my Mac Os Catalina version 10.15.4
But i still have the same error on python3.7 and python3.8:
Origin: (cx_Oracle.DatabaseError) DPI-1047: Cannot locate a 64-bit Oracle Client library: "dlopen(libclntsh.dylib, 1): no suitable image found. Did find:
file system relative paths not allowed in hardened programs". See https://oracle.github.io/odpi/doc/installation.html#macos for help
(Background on this error at: http://sqlalche.me/e/4xp6)
here is my installation:
$: ls-l ~/lib
ls -l ~/lib
total 0
lrwxr-xr-x 1 giacomocallegaro staff 58 22 Apr 09:13 libclntsh.dylib -> /Users/giacomocallegaro/instantclient_19_3/libclntsh.dylib
$: cat .zprofile
Setting PATH for Python 3.8
The original version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}"
export PATH
Setting PATH for Python 3.7
The original version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH=$PATH:~/instantclient_19_3
export PATH
$: echo $PATH
/Users/giacomocallegaro/.nvm/versions/node/v12.14.1/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/giacomocallegaro/.nvm/versions/node/v12.16.1/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/opt/openssl/bin:/Users/giacomocallegaro/instantclient_19_3:/Users/giacomocallegaro/instantclient_19_3
$: which python:
/usr/bin/python
when I run sqlplus:
$: sqlplus -v
SQL*Plus: Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
Can some one help me please?
Go to https://www.oracle.com/technical-resources/
Downloads --> Oracle Instant Client --> macOS(Intel x86) --> Basic Package
In your download folder you will find a folder named instantclient_19_3
Add the following to your python script
import cx_Oracle
cx_Oracle.init_oracle_client(lib_dir=r'/Users/<username>/Downloads/instantclient_19_3')
Some windows will pop up, so go to System preferences --> Security & Privacy --> General and there you will see a notification. Click on open anyway. You will have to repeat this last step 3-4 times.
After you download instant client from here, create a symbolic link into /usr/local/lib folder (that's where all .dylib files keep their symbolic links).
In my case, I extracted instant client into /opt/oracle/instantclient_19_3. So the command is:
$ ln -s /opt/oracle/instantclient_19_3/libclntsh.dylib /usr/local/lib/
However, there is another problem when I try to create the connection from python:
Error while trying to retrieve text for error ORA-01804
Oracle says: "Instant Client 19.3 and 18.1 support macOS Mojave and High Sierra", and I have macOS Catalina 10.15, don't know if this has anything to do with that, error 01804 says that timezone information is invalid.
More info on this: http://www.dba-oracle.com/t_ora_01804_start_oracle.htm
EDIT: issue resolved.
After downloading the SQL*Plus Package I managed to connect and verify the instant client works. My python issue was also resolved when I restarted IntelliJ (I was running the server from within so the PATH might have not been updated).
Maybe the error is misleading and it is related to general issue with Oracle Instant Client on MacOS Catalina? Have a look at this blog post:
Gary's Oracle On Tap
Hope this helps!

go-plus atom package doesn't run goimports

This is my current version of
Atom : 1.23.3
Electron: 1.6.15
Chrome : 56.0.2924.87
Node : 7.4.0
go-plus package is at
go-plus 5.8.1
I'm not quite sure how to about getting this to work or figuring out the issue
format box is check to run formattool on save and the formattool is set to goimports
goimports work in my command line, so I suspect this is an issues with the package
I'm also using ubuntu 16.04, with kernel v 4.10. the newer updates doesn't detect any wifi devices

OS X - how to coerce python3 to use tkinter 8.6

python3 (3.6, installed today) reports that it is using Tcl/Tk version 8.5. I want to use 8.6.
This is a Macbook Pro Retina running OS X 10.12. "which python" shows:
/Library/Frameworks/Python.framework/Versions/3.6/bin/python3
There are 2 different high level folders including Tcl (and parallel ones for Tk):
/Library/Frameworks/Tcl.framework
Under ./Versions
8.6 [installed today] and Current (links to 8.6)
/System/Library/Frameworks/Tcl.framework
Under ./Versions:
8.4, 8.5, and Current (links to 8.5)
There is also miscellaneous stuff under:
/Library/Tcl/teapot/package/macosx105.-i386-86-64
/System/Library/Tcl/8.4
/System/Library/Tcl/8.5
How do I (1) get python3 to use Tk 8.6; and (2) clean up this confusing assortment?
I found that the latest python3 was actually installed under /usr/local/Cellar/python3/3.6.0, and tcl-tk under /usr/local/Cellar/tcl-tk/8.6.6. There is a link from /usr/local/opt/python3 to /usr/local/Cellar/python3, and a corresponding one for tcl-tk. So a workaround is to just add /usr/local/opt/python3 to PATH.

Unable to obtain stable firefox connection in 60 seconds

I am continuously getting error below error :
unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)\n[\"/usr/local/rvm/gems/ruby-1.9.3-p551/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/firefox/launcher.rb:90:in `connect_until_stable'\", \"/usr/local/rvm/gems/ruby-1.9.3-p551/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/firefox/launcher.rb:55:in block in launch'\", \"/usr/local/rvm/gems/ruby-1.9.3-p551/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/common/socket_lock.rb:43:in locked'\", \"/usr/local/rvm/gems/ruby-1.9.3-p551/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/firefox/launcher.rb:51:in launch'\", \"/usr/local/rvm/gems/ruby-1.9.3-p551/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/firefox/bridge.rb:43:in initialize'\", \"/usr/local/rvm/gems/ruby-1.9.3-p551/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/common/driver.rb:53:in new'\",
\"/usr/local/rvm/gems/ruby-1.9.3-p551/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/common/driver.rb:53:in for'\",
\"/usr/local/rvm/gems/ruby-1.9.3-p551/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver.rb:86:in for'\",
\"/usr/local/rvm/gems/ruby-1.9.3-p551/gems/watir-webdriver-0.9.1/lib/watir-webdriver/browser.rb:46:in initialize'\"...`
I am using:
Firefox version 42.0,
selenium-webdriver version 2.52.0
ruby version 1.9.3-p551
watir-webdriver (0.9.1)
Can anybody please help me?
I have a similar setup to yours and what worked for me was to reinstall an older version for Firefox, for example version 32 (I had Firefox v43 and it was not working, same error message as yours).
You can download older Firefox versions from:
https://ftp.mozilla.org/pub/firefox/releases/
Make sure to turn off auto-update (otherwise it will update automatically to the latest version after you restart it).

Resources