SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.42k stars 8.15k forks source link

[🐛 Bug]: Stack Trace printing out gibberish and spamming the console #14047

Closed Drygord closed 4 months ago

Drygord commented 4 months ago

What happened?

For months now this has been happening, even various versions of selenium and on different machines and operating systems.

Error messages print out non-nonsensical gibberish such as the following:

Couldn't find expand stack button. Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\Scripts\Selenium\SPOTIFY.py", line 1334, in gmail_spotify_link_fetch expand_stack_button = Wait(d, stack_wait).until(EC.presence_of_element_located(("xpath", File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\support\wait.py", line 105, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: Stacktrace: GetHandleVerifier [0x00007FF6A73F12D2+311426] (No symbol) [0x00007FF6A725B572] (No symbol) [0x00007FF6A6F40A29] (No symbol) [0x00007FF6A6F814C1] (No symbol) [0x00007FF6A6F816F5] (No symbol) [0x00007FF6A6FB5FA7] (No symbol) [0x00007FF6A6F9D82F] (No symbol) [0x00007FF6A6F78910] (No symbol) [0x00007FF6A6FB3F75] (No symbol) [0x00007FF6A6F9D043] (No symbol) [0x00007FF6A6F76CAE] (No symbol) [0x00007FF6A6F763DA] (No symbol) [0x00007FF6A6F77BCB] GetHandleVerifier [0x00007FF6A741BDF2+486306] sqlite3_dbdata_init [0x00007FF6A7616F2B+595003] sqlite3_dbdata_init [0x00007FF6A7616104+591380] sqlite3_dbdata_init [0x00007FF6A7611831+572737] sqlite3_dbdata_init [0x00007FF6A7618615+600869] (No symbol) [0x00007FF6A7278EF9] (No symbol) [0x00007FF6A7269A27] (No symbol) [0x00007FF6A7269DA8] (No symbol) [0x00007FF6A724702A] BaseThreadInitThunk [0x00007FFE14AB7AC4+20] RtlUserThreadStart [0x00007FFE14FBA4E1+33]

This is completely useless information. I don't want it spamming my console. Make it optional, or better yet, disable it completely. This is not even useful for proper debugging.

How can we reproduce the issue?

Just run the most recent version of selenium on any machine.

Relevant log output

Couldn't find expand stack button. Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\Scripts\Selenium\SPOTIFY.py", line 1334, in gmail_spotify_link_fetch
    expand_stack_button = Wait(d, stack_wait).until(EC.presence_of_element_located(("xpath",
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\support\wait.py", line 105, in until
    raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: 
Stacktrace:
    GetHandleVerifier [0x00007FF6A73F12D2+311426]
    (No symbol) [0x00007FF6A725B572]
    (No symbol) [0x00007FF6A6F40A29]
    (No symbol) [0x00007FF6A6F814C1]
    (No symbol) [0x00007FF6A6F816F5]
    (No symbol) [0x00007FF6A6FB5FA7]
    (No symbol) [0x00007FF6A6F9D82F]
    (No symbol) [0x00007FF6A6F78910]
    (No symbol) [0x00007FF6A6FB3F75]
    (No symbol) [0x00007FF6A6F9D043]
    (No symbol) [0x00007FF6A6F76CAE]
    (No symbol) [0x00007FF6A6F763DA]
    (No symbol) [0x00007FF6A6F77BCB]
    GetHandleVerifier [0x00007FF6A741BDF2+486306]
    sqlite3_dbdata_init [0x00007FF6A7616F2B+595003]
    sqlite3_dbdata_init [0x00007FF6A7616104+591380]
    sqlite3_dbdata_init [0x00007FF6A7611831+572737]
    sqlite3_dbdata_init [0x00007FF6A7618615+600869]
    (No symbol) [0x00007FF6A7278EF9]
    (No symbol) [0x00007FF6A7269A27]
    (No symbol) [0x00007FF6A7269DA8]
    (No symbol) [0x00007FF6A724702A]
    BaseThreadInitThunk [0x00007FFE14AB7AC4+20]
    RtlUserThreadStart [0x00007FFE14FBA4E1+33]

Operating System

Windows 10

Selenium version

python selenium version 4.21.0

What are the browser(s) and version(s) where you see this issue?

both

What are the browser driver(s) and version(s) where you see this issue?

most recent

Are you using Selenium Grid?

no

github-actions[bot] commented 4 months ago

@Drygord, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

diemol commented 4 months ago

You can always turn it off https://www.selenium.dev/documentation/webdriver/browsers/chrome/#log-level

You can also reach out to the Chrome team and ask for a more useful output in those cases.

github-actions[bot] commented 4 months ago

Hi, @Drygord. This issue has been determined to require fixes in ChromeDriver.

You can see if the feature is passing in the Web Platform Tests.

If it is something new, please create an issue with the ChromeDriver team. Feel free to comment the issues that you raise back in this issue. Thank you.

github-actions[bot] commented 3 months ago

This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.