Code Monkey home page Code Monkey logo

Comments (12)

DSPaul avatar DSPaul commented on September 28, 2024 1

Looked at the log and despite it being the same error, the problem is different.

In this case it does detect your chrome install correctly but fails to download the webdriver itself.
Seems like chrome changed download url for their webdrivers starting with with version 115 so if you have an up to date version of chrome (118 at the time of writing) it will indeed fail.

The package I use (WebDriverManager.NET) has released a update that fixes this which will be included in the next release of COMPASS.

from compass.

DSPaul avatar DSPaul commented on September 28, 2024

I looked into it. I think the changed data path is a red herring, I tried it myself and it works fine, everything in the code also looks good on that front.

The error you get however can only occur when COMPASS detects that you have chrome installed but you said that you don't so the issue is most likely related to that. So I have taken the following steps to mitigate this issue:

  • COMPASS would only fall back to firefox and then edge if chrome was not installed, but not if it thought it was installed and then failed. I have changed this so that it will also fall back to the next browser in line if initialisation fails.
  • That however doesn't address the core issue that a chrome install is wrongfully detected so I have expanded the check to see if a program is installed to be more thorough to avoid false positives.

from compass.

lucastucious avatar lucastucious commented on September 28, 2024

After manys verifications :

  • I don't use Chrome, but Vivaldi, a Chromium-based browser
  • After talking about this issue here and on discord, i've found that a was having Chrome installed... but obvisously an outdated version.
  • So i make the chrome update, but i still have the error !

from compass.

lucastucious avatar lucastucious commented on September 28, 2024

Here is an error, i think related to this issue, when i try to renew cover from an homebrewery item :
image

and here is the log
all.log

from compass.

DSPaul avatar DSPaul commented on September 28, 2024
  • The logs show that it thinks chrome is installed at C:\Users\lucas\AppData\Local\Chromium\Application\chrome.exe but cannot find it there. Can you check whether the exe is there and if not, where chrome is actually installed? You can check the actual install location by opening chrome and going to chrome://version as shown here:
    afbeelding
  • The logs end when you moved your data folder. There should be another one at F:/COMPASS/logs that has all the logs from after you moved there, which will have more info about the error you got. This also made me realise the error message does have the path to the logs hardcoded so I'll fix that as well.

from compass.

lucastucious avatar lucastucious commented on September 28, 2024

Here is what i found :

  • Chrome is installed at C:\Program Files\Google\Chrome\Application\chrome.exe
  • I used to have chromium, but not anymore (before Compass installation)
  • i have a chromium.exe located in C:\Users\lucas\AppData\Local\JxBrowser\7.27, but it's for flutter development
  • Vivaldi (chromium based) is located here : C:\Users\lucas\AppData\Local\Vivaldi\Application
  • Windows still think i have chromium, but when i want to uninstall it, it cant find the exe
On app menu after uninstall pressed
image image

the log from F:/COMPASS is here all.log

from compass.

DSPaul avatar DSPaul commented on September 28, 2024

Windows still think i have chromium, but when i want to uninstall it, it cant find the exe

Seems like windows has exactly the same problem COMPASS has, something must have gone wrong while uninstalling so the files are deleted but there is still a registry entry in windows indicating that the program is still there, not much I can do about it. But with the new code it will now just move on from this problem and use firefox so all good.

I have also solved the crash, it was trying to take the most recent webdriver but because you didn't have a webdriver due to your problem, it was trying to take the last out of an empty list, hence the error "sequence contains no elements".

from compass.

lucastucious avatar lucastucious commented on September 28, 2024

from compass.

DSPaul avatar DSPaul commented on September 28, 2024

It doesn't search for it, that would take way too long. Imagine if COMPASS was running on a PC with 16TB hard drive full of data, good luck finding that one chrome.exe file.

So instead of doing that, it looks at the windows registry where windows keeps a table of installed programs and where they are installed. It's the same list windows uses when you go to Apps in the windows settings or when you search for apps using Windows search. It's specifically designed so that you don't have to hunt down the right exe file every time you want to start an app.

So if that registry entry is wrong or outdated, neither Windows nor COMPASS will find it.

from compass.

lucastucious avatar lucastucious commented on September 28, 2024

from compass.

DSPaul avatar DSPaul commented on September 28, 2024

That is exactly what I have done in the first commit that references this issue, the fix will be part of the next update.

from compass.

lucastucious avatar lucastucious commented on September 28, 2024

More info :
I've COMPASS installed on another computer. No data path changed, fresh install, chrome as main browser but still this message. here is the log all.log

from compass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.