marticliment / ElevenClock

ElevenClock: Customize Windows 11 taskbar clock
https://www.marticliment.com/elevenclock/
GNU General Public License v3.0
2.32k stars 175 forks source link

[BUG/ISSUE] Flashing/lag effect due to running 2 instances at once #1098

Closed DandelionSprout closed 1 year ago

DandelionSprout commented 1 year ago

Before submitting the issue

Describe the bug

For reasons I've struggled surprisingly much to figure out for some weeks, ElevenClock opens up a 2nd instance approx. once a day (Most likely after update checks), causing a flashing/lag effect on the clock, as can be seen in the animated screenshot below.

To Reproduce

Steps to reproduce the behaviour:

1) Install ElevenClock. 2) Set ElevenClock to start up on system boot. 3) Ensure that "Look for updates automatically" is turned on. 4) Ensure that the seconds counter is turned on. 5) Ensure that the ElevenClock language is set to Norwegian (BokmΓ₯l). 6) Wait up to 24 hours. 7) The clock's background will begin to flash, and sometimes have an odd lag effect for the seconds counter.

Expected behaviour

ElevenClock does not flash or lag.

Screenshots

https://user-images.githubusercontent.com/22780683/213908615-7aaba8e3-f3fd-4b32-8644-43ebed47da18.mp4

The Log

🟒 Using cached lang file
🟑 Using bundled lang file (forced=True)
It took 0.004002094268798828 to load all language files
---------------------------------------------------------------------------------------------------

   ElevenClock's 3.9.6 (v3.96) log: Select all the text and hit Ctrl+C to copy it
   All modules loaded successfully and sys.stdout patched correctly, starting main script
   Translator function set language to "nb"

---------------------------------------------------------------------------------------------------

 Log legend:
 πŸ”΅: Verbose
 🟒: Information
 🟑: Warning
 🟠: Handled unexpected exception
 πŸ”΄: Unhandled unexpected exception
 🟣: Handled expected exception

πŸ”΅ Initializing clock 0...
πŸ”΅ Using taskbar background color
🟒 Regular sized taskbar
🟒 Clock on the bottom
🟒 Clock on the right
🟒 Using qt's default positioning system
πŸ”΅ Clock geometry: PySide6.QtCore.QRect(1240, 2514, 200, 46)
πŸ”΅ Font families   : ['Segoe UI Variable Display', 'sans-serif']
πŸ”΅ Custom font     : 
πŸ”΅ Font size: 9.0
🟒 Using white text (dark mode)
πŸ”΅ tDateMode: dd.MM.yyyy
πŸ”΅ tTimeMode: HH.mm
πŸ”΅ Loaded date time format: %H.%M.%Sβ€Š
%d.%m.%Y
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Full screen rect:  (0, 0, 1440, 2560)
can't parse ""
πŸ”΅ Show/hide loop started with parameters: HideonFS:True, NotHideOnTB:False, HideOnRDP:False, ClockOn1Mon:True, NefWSMethod:False, DisableNotifications:True, legacyFullScreenMethod:False
πŸ”΅ Initializing clock 1...
πŸ”΅ Using taskbar background color
🟒 Regular sized taskbar
🟒 Clock on the bottom
🟒 Clock on the right
🟒 Using qt's default positioning system
πŸ”΅ Clock geometry: PySide6.QtCore.QRect(-200, 1034, 200, 46)
πŸ”΅ Font families   : ['Segoe UI Variable Display', 'sans-serif']
πŸ”΅ Custom font     : 
πŸ”΅ Font size: 9.0
🟒 Using white text (dark mode)
πŸ”΅ tDateMode: dd.MM.yyyy
πŸ”΅ tTimeMode: HH.mm
πŸ”΅ Loaded date time format: %H.%M.%Sβ€Š
%d.%m.%Y
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Full screen rect:  (-1920, 0, 0, 1080)
πŸ”΅ Show/hide loop started with parameters: HideonFS:True, NotHideOnTB:False, HideOnRDP:False, ClockOn1Mon:True, NefWSMethod:False, DisableNotifications:True, legacyFullScreenMethod:False
can't parse ""
🟒 Loaded clocks in 0.8189601898193359
πŸ”΅ Restart loop: 1
🟣 Expected AttributeError on checkAndUpdateBackground
🟣 Expected AttributeError on checkAndUpdateBackground
{'System language': 'default', 'Arabic - عربي\u200e (68%)': 'ar', 'Bosnian - Bosanski (6%)': 'bs', 'Bulgarian - Π±ΡŠΠ»Π³Π°Ρ€ΡΠΊΠΈ (18%)': 'bg', 'Catalan - CatalΓ ': 'ca', 'Czech - ČeΕ‘tina': 'cs', 'Danish - Dansk (99%)': 'da', 'German - Deutsch (99%)': 'de', 'Greek - Ελληνικά (18%)': 'el', 'English - English': 'en', 'Spanish - EspaΓ±ol (99%)': 'es', 'Estonian - eesti (92%)': 'et', 'Persian - فارسی\u200e (5%)': 'fa', 'Finnish - Suomi (63%)': 'fi', 'French - FranΓ§ais': 'fr', 'Hebrew - Χ’Φ΄Χ‘Φ°Χ¨Φ΄Χ™Χͺ\u200e (92%)': 'he', 'Croatian - Hrvatski (11%)': 'hr', 'Hungarian - Magyar': 'hu', 'Indonesian - Bahasa Indonesia (92%)': 'id', 'Italian - Italiano (81%)': 'it', 'Japanese - ζ—₯本θͺž': 'ja', 'Korean - ν•œκ΅­μ–΄': 'ko', 'Lithuanian - LietuviΕ³ (22%)': 'lt', 'Latvian - Latviski (61%)': 'lv', 'Norwegian (bokmΓ₯l) (95%)': 'nb', 'Dutch - Nederlands (91%)': 'nl', 'Norwegian (nynorsk) (67%)': 'nn', 'Polish - Polski (98%)': 'pl', 'Portuguese (Brazil)': 'pt_BR', 'Portuguese (Portugal)': 'pt_PT', 'Romanian - RomΓ’nΔƒ (92%)': 'ro', 'Russian - Русский (92%)': 'ru', 'Sinhala - ΰ·ƒΰ·’ΰΆ‚ΰ·„ΰΆ½': 'si', 'Slovak - Slovenčina (30%)': 'sk', 'Serbian - Srpski (22%)': 'sr', 'Swedish - Svenska (78%)': 'sv', 'Thai - ΰΈ ΰΈ²ΰΈ©ΰΈ²ΰΉ„ΰΈ—ΰΈ’ (82%)': 'th', 'Turkish - TΓΌrkΓ§e (99%)': 'tr', 'Ukranian - YΠΊΡ€Π°Ρ—ΜΠ½ΡΡŒΠΊΠ°': 'ua', 'Vietnamese - TiαΊΏng Việt (49%)': 'vi', 'Simplified Chinese (China)': 'zh_CN', 'Traditional Chinese (Taiwan)': 'zh_TW'}
πŸ”΅ Language file up-to-date
🟣 Expected AttributeError on checkAndUpdateBackground
🟣 Expected AttributeError on checkAndUpdateBackground
🟣 Expected AttributeError on checkAndUpdateBackground
🟣 Expected AttributeError on checkAndUpdateBackground
🟣 Expected AttributeError on checkAndUpdateBackground
🟣 Expected AttributeError on checkAndUpdateBackground
🟣 Expected AttributeError on checkAndUpdateBackground
🟣 Expected AttributeError on checkAndUpdateBackground
πŸ”΅ System tray icon enabled
πŸ”΅ Starting update check
πŸ”΅ Low cpu mode is set to False. DisableNotifications is set to False
🟒 Loaded everything in 3.6306276321411133
🟠 Can't remove lock file, file exist status: False
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟑 Verifying unverified hwnd 263358
🟑 Fullscreen window detected! (0, 0, 1440, 2560) Fullscreen rect: [0, 0, 1440, 2560]
🟑 Blacklisted hwnd 263358 under title Windows-inndataopplevelse (Process name is c:\windows\systemapps\microsoftwindows.client.cbs_cw5n1h2txyewy\textinputhost.exe)
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "urllib\request.py", line 1348, in do_open

πŸ”΄   File "http\client.py", line 1282, in request

πŸ”΄   File "http\client.py", line 1328, in _send_request

πŸ”΄   File "http\client.py", line 1277, in endheaders

πŸ”΄   File "http\client.py", line 1037, in _send_output

πŸ”΄   File "http\client.py", line 975, in send

πŸ”΄   File "http\client.py", line 1454, in connect

πŸ”΄   File "ssl.py", line 517, in wrap_socket

πŸ”΄   File "ssl.py", line 1075, in _create

πŸ”΄   File "ssl.py", line 1346, in do_handshake

πŸ”΄ ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)

πŸ”΄ 
During handling of the above exception, another exception occurred:

πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 132, in updateIfPossible

πŸ”΄   File "urllib\request.py", line 216, in urlopen

πŸ”΄   File "urllib\request.py", line 519, in open

πŸ”΄   File "urllib\request.py", line 536, in _open

πŸ”΄   File "urllib\request.py", line 496, in _call_chain

πŸ”΄   File "urllib\request.py", line 1391, in https_open

πŸ”΄   File "urllib\request.py", line 1351, in do_open

πŸ”΄ urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>)
πŸ”΅ Version URL: http://ww25.somepythonthings.tk/versions/elevenclock.ver?subid1=20230122-0759-5353-bf67-fa8e8ddbe92e
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 140, in updateIfPossible

πŸ”΄ IndexError: list index out of range

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (list index out of range)
πŸ”΅ Starting update check
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "urllib\request.py", line 1348, in do_open

πŸ”΄   File "http\client.py", line 1282, in request

πŸ”΄   File "http\client.py", line 1328, in _send_request

πŸ”΄   File "http\client.py", line 1277, in endheaders

πŸ”΄   File "http\client.py", line 1037, in _send_output

πŸ”΄   File "http\client.py", line 975, in send

πŸ”΄   File "http\client.py", line 1454, in connect

πŸ”΄   File "ssl.py", line 517, in wrap_socket

πŸ”΄   File "ssl.py", line 1075, in _create

πŸ”΄   File "ssl.py", line 1346, in do_handshake

πŸ”΄ ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)

πŸ”΄ 
During handling of the above exception, another exception occurred:

πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 132, in updateIfPossible

πŸ”΄   File "urllib\request.py", line 216, in urlopen

πŸ”΄   File "urllib\request.py", line 519, in open

πŸ”΄   File "urllib\request.py", line 536, in _open

πŸ”΄   File "urllib\request.py", line 496, in _call_chain

πŸ”΄   File "urllib\request.py", line 1391, in https_open

πŸ”΄   File "urllib\request.py", line 1351, in do_open

πŸ”΄ urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>)
πŸ”΅ Version URL: http://ww25.somepythonthings.tk/versions/elevenclock.ver?subid1=20230122-0801-01bd-9860-ba2646f5051b
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 140, in updateIfPossible

πŸ”΄ IndexError: list index out of range

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (list index out of range)
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Starting update check
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "urllib\request.py", line 1348, in do_open

πŸ”΄   File "http\client.py", line 1282, in request

πŸ”΄   File "http\client.py", line 1328, in _send_request

πŸ”΄   File "http\client.py", line 1277, in endheaders

πŸ”΄   File "http\client.py", line 1037, in _send_output

πŸ”΄   File "http\client.py", line 975, in send

πŸ”΄   File "http\client.py", line 1454, in connect

πŸ”΄   File "ssl.py", line 517, in wrap_socket

πŸ”΄   File "ssl.py", line 1075, in _create

πŸ”΄   File "ssl.py", line 1346, in do_handshake

πŸ”΄ ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)

πŸ”΄ 
During handling of the above exception, another exception occurred:

πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 132, in updateIfPossible

πŸ”΄   File "urllib\request.py", line 216, in urlopen

πŸ”΄   File "urllib\request.py", line 519, in open

πŸ”΄   File "urllib\request.py", line 536, in _open

πŸ”΄   File "urllib\request.py", line 496, in _call_chain

πŸ”΄   File "urllib\request.py", line 1391, in https_open

πŸ”΄   File "urllib\request.py", line 1351, in do_open

πŸ”΄ urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>)
πŸ”΅ Version URL: http://ww25.somepythonthings.tk/versions/elevenclock.ver?subid1=20230122-1001-08b9-a0b1-edb950ac145b
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 140, in updateIfPossible

πŸ”΄ IndexError: list index out of range

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (list index out of range)
πŸ”΅ Starting update check
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "urllib\request.py", line 1348, in do_open

πŸ”΄   File "http\client.py", line 1282, in request

πŸ”΄   File "http\client.py", line 1328, in _send_request

πŸ”΄   File "http\client.py", line 1277, in endheaders

πŸ”΄   File "http\client.py", line 1037, in _send_output

πŸ”΄   File "http\client.py", line 975, in send

πŸ”΄   File "http\client.py", line 1454, in connect

πŸ”΄   File "ssl.py", line 517, in wrap_socket

πŸ”΄   File "ssl.py", line 1075, in _create

πŸ”΄   File "ssl.py", line 1346, in do_handshake

πŸ”΄ ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)

πŸ”΄ 
During handling of the above exception, another exception occurred:

πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 132, in updateIfPossible

πŸ”΄   File "urllib\request.py", line 216, in urlopen

πŸ”΄   File "urllib\request.py", line 519, in open

πŸ”΄   File "urllib\request.py", line 536, in _open

πŸ”΄   File "urllib\request.py", line 496, in _call_chain

πŸ”΄   File "urllib\request.py", line 1391, in https_open

πŸ”΄   File "urllib\request.py", line 1351, in do_open

πŸ”΄ urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>)
πŸ”΅ Version URL: http://ww25.somepythonthings.tk/versions/elevenclock.ver?subid1=20230122-1201-16c4-a16e-beedb2d68794
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 140, in updateIfPossible

πŸ”΄ IndexError: list index out of range

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (list index out of range)
πŸ”΅ Starting update check
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "urllib\request.py", line 1348, in do_open

πŸ”΄   File "http\client.py", line 1282, in request

πŸ”΄   File "http\client.py", line 1328, in _send_request

πŸ”΄   File "http\client.py", line 1277, in endheaders

πŸ”΄   File "http\client.py", line 1037, in _send_output

πŸ”΄   File "http\client.py", line 975, in send

πŸ”΄   File "http\client.py", line 1454, in connect

πŸ”΄   File "ssl.py", line 517, in wrap_socket

πŸ”΄   File "ssl.py", line 1075, in _create

πŸ”΄   File "ssl.py", line 1346, in do_handshake

πŸ”΄ ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)

πŸ”΄ 
During handling of the above exception, another exception occurred:

πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 132, in updateIfPossible

πŸ”΄   File "urllib\request.py", line 216, in urlopen

πŸ”΄   File "urllib\request.py", line 519, in open

πŸ”΄   File "urllib\request.py", line 536, in _open

πŸ”΄   File "urllib\request.py", line 496, in _call_chain

πŸ”΄   File "urllib\request.py", line 1391, in https_open

πŸ”΄   File "urllib\request.py", line 1351, in do_open

πŸ”΄ urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>)
πŸ”΅ Version URL: http://ww25.somepythonthings.tk/versions/elevenclock.ver?subid1=20230122-1401-2453-9207-dd5ea3aeae44
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 140, in updateIfPossible

πŸ”΄ IndexError: list index out of range

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (list index out of range)
πŸ”΅ Starting update check
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "urllib\request.py", line 1348, in do_open

πŸ”΄   File "http\client.py", line 1282, in request

πŸ”΄   File "http\client.py", line 1328, in _send_request

πŸ”΄   File "http\client.py", line 1277, in endheaders

πŸ”΄   File "http\client.py", line 1037, in _send_output

πŸ”΄   File "http\client.py", line 975, in send

πŸ”΄   File "http\client.py", line 1454, in connect

πŸ”΄   File "ssl.py", line 517, in wrap_socket

πŸ”΄   File "ssl.py", line 1075, in _create

πŸ”΄   File "ssl.py", line 1346, in do_handshake

πŸ”΄ ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)

πŸ”΄ 
During handling of the above exception, another exception occurred:

πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 132, in updateIfPossible

πŸ”΄   File "urllib\request.py", line 216, in urlopen

πŸ”΄   File "urllib\request.py", line 519, in open

πŸ”΄   File "urllib\request.py", line 536, in _open

πŸ”΄   File "urllib\request.py", line 496, in _call_chain

πŸ”΄   File "urllib\request.py", line 1391, in https_open

πŸ”΄   File "urllib\request.py", line 1351, in do_open

πŸ”΄ urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>)
πŸ”΅ Version URL: http://ww25.somepythonthings.tk/versions/elevenclock.ver?subid1=20230122-1601-326d-80db-50db09ddbc6b
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 140, in updateIfPossible

πŸ”΄ IndexError: list index out of range

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (list index out of range)
πŸ”΅ Starting update check
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "urllib\request.py", line 1348, in do_open

πŸ”΄   File "http\client.py", line 1282, in request

πŸ”΄   File "http\client.py", line 1328, in _send_request

πŸ”΄   File "http\client.py", line 1277, in endheaders

πŸ”΄   File "http\client.py", line 1037, in _send_output

πŸ”΄   File "http\client.py", line 975, in send

πŸ”΄   File "http\client.py", line 1454, in connect

πŸ”΄   File "ssl.py", line 517, in wrap_socket

πŸ”΄   File "ssl.py", line 1075, in _create

πŸ”΄   File "ssl.py", line 1346, in do_handshake

πŸ”΄ ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)

πŸ”΄ 
During handling of the above exception, another exception occurred:

πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 132, in updateIfPossible

πŸ”΄   File "urllib\request.py", line 216, in urlopen

πŸ”΄   File "urllib\request.py", line 519, in open

πŸ”΄   File "urllib\request.py", line 536, in _open

πŸ”΄   File "urllib\request.py", line 496, in _call_chain

πŸ”΄   File "urllib\request.py", line 1391, in https_open

πŸ”΄   File "urllib\request.py", line 1351, in do_open

πŸ”΄ urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>)
πŸ”΅ Version URL: http://ww25.somepythonthings.tk/versions/elevenclock.ver?subid1=20230122-1801-40b9-a170-2f5ab0b5d18c
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 140, in updateIfPossible

πŸ”΄ IndexError: list index out of range

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (list index out of range)
πŸ”΅ Initializing clock 0...
πŸ”΅ Using taskbar background color
🟒 Regular sized taskbar
🟒 Clock on the bottom
🟒 Clock on the right
🟒 Using qt's default positioning system
πŸ”΅ Clock geometry: PySide6.QtCore.QRect(1240, 2514, 200, 46)
πŸ”΅ Font families   : ['Segoe UI Variable Display', 'sans-serif']
πŸ”΅ Custom font     : 
πŸ”΅ Font size: 9.0
🟒 Using white text (dark mode)
πŸ”΅ tDateMode: dd.MM.yyyy
πŸ”΅ tTimeMode: HH.mm
πŸ”΅ Loaded date time format: %H.%M.%Sβ€Š
%d.%m.%Y
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Full screen rect:  (0, 0, 1440, 2560)
πŸ”΅ Show/hide loop started with parameters: HideonFS:True, NotHideOnTB:False, HideOnRDP:False, ClockOn1Mon:True, NefWSMethod:False, DisableNotifications:True, legacyFullScreenMethod:False
πŸ”΅ Initializing clock 1...
πŸ”΅ Using taskbar background color
🟒 Regular sized taskbar
🟒 Clock on the bottom
🟒 Clock on the right
🟒 Using qt's default positioning system
πŸ”΅ Clock geometry: PySide6.QtCore.QRect(-200, 2384, 200, 46)
πŸ”΅ Font families   : ['Segoe UI Variable Display', 'sans-serif']
πŸ”΅ Custom font     : 
πŸ”΅ Font size: 9.0
🟒 Using white text (dark mode)
πŸ”΅ tDateMode: dd.MM.yyyy
πŸ”΅ tTimeMode: HH.mm
πŸ”΅ Loaded date time format: %H.%M.%Sβ€Š
%d.%m.%Y
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Full screen rect:  (-1080, 510, 0, 2430)
πŸ”΅ Show/hide loop started with parameters: HideonFS:True, NotHideOnTB:False, HideOnRDP:False, ClockOn1Mon:True, NefWSMethod:False, DisableNotifications:True, legacyFullScreenMethod:False
πŸ”΅ tDateMode: dd.MM.yyyy
πŸ”΅ tTimeMode: HH.mm
πŸ”΅ Loaded date time format: %H.%M.%Sβ€Š
%d.%m.%Y
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Restart loop: 1
πŸ”΅ Initializing clock 0...
πŸ”΅ Using taskbar background color
🟒 Regular sized taskbar
🟒 Clock on the bottom
🟒 Clock on the right
πŸ”΅ Restart loop: 1
🟒 Using qt's default positioning system
πŸ”΅ Clock geometry: PySide6.QtCore.QRect(-200, 2152, 200, 46)
πŸ”΅ Font families   : ['Segoe UI Variable Display', 'sans-serif']
πŸ”΅ Custom font     : 
πŸ”΅ Font size: 9.0
🟒 Using white text (dark mode)
πŸ”΅ tDateMode: dd.MM.yyyy
πŸ”΅ tTimeMode: HH.mm
πŸ”΅ Loaded date time format: %H.%M.%Sβ€Š
%d.%m.%Y
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Full screen rect:  (-1080, 278, 0, 2198)
πŸ”΅ Show/hide loop started with parameters: HideonFS:True, NotHideOnTB:False, HideOnRDP:False, ClockOn1Mon:True, NefWSMethod:False, DisableNotifications:True, legacyFullScreenMethod:False
πŸ”΅ Initializing clock 1...
πŸ”΅ Using taskbar background color
🟒 Regular sized taskbar
🟒 Clock on the bottom
🟒 Clock on the right
🟒 Using qt's default positioning system
πŸ”΅ Clock geometry: PySide6.QtCore.QRect(1720, 1034, 200, 46)
πŸ”΅ Font families   : ['Segoe UI Variable Display', 'sans-serif']
πŸ”΅ Custom font     : 
πŸ”΅ Font size: 9.0
🟒 Using white text (dark mode)
πŸ”΅ tDateMode: dd.MM.yyyy
πŸ”΅ tTimeMode: HH.mm
πŸ”΅ Loaded date time format: %H.%M.%Sβ€Š
%d.%m.%Y
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Full screen rect:  (0, 0, 1920, 1080)
πŸ”΅ Show/hide loop started with parameters: HideonFS:True, NotHideOnTB:False, HideOnRDP:False, ClockOn1Mon:True, NefWSMethod:False, DisableNotifications:True, legacyFullScreenMethod:False
πŸ”΅ tDateMode: dd.MM.yyyy
πŸ”΅ tTimeMode: HH.mm
πŸ”΅ Loaded date time format: %H.%M.%Sβ€Š
%d.%m.%Y
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Initializing clock 0...
πŸ”΅ Using taskbar background color
🟒 Regular sized taskbar
🟒 Clock on the bottom
🟒 Clock on the right
🟒 Using qt's default positioning system
πŸ”΅ Clock geometry: PySide6.QtCore.QRect(1240, 2514, 200, 46)
πŸ”΅ Font families   : ['Segoe UI Variable Display', 'sans-serif']
πŸ”΅ Custom font     : 
πŸ”΅ Font size: 9.0
🟒 Using white text (dark mode)
πŸ”΅ tDateMode: dd.MM.yyyy
πŸ”΅ tTimeMode: HH.mm
πŸ”΅ Loaded date time format: %H.%M.%Sβ€Š
%d.%m.%Y
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Full screen rect:  (0, 0, 1440, 2560)
πŸ”΅ Show/hide loop started with parameters: HideonFS:True, NotHideOnTB:False, HideOnRDP:False, ClockOn1Mon:True, NefWSMethod:False, DisableNotifications:True, legacyFullScreenMethod:False
πŸ”΅ Initializing clock 1...
πŸ”΅ Using taskbar background color
🟒 Regular sized taskbar
🟒 Clock on the bottom
🟒 Clock on the right
🟒 Using qt's default positioning system
πŸ”΅ Clock geometry: PySide6.QtCore.QRect(-200, 2384, 200, 46)
πŸ”΅ Font families   : ['Segoe UI Variable Display', 'sans-serif']
πŸ”΅ Custom font     : 
πŸ”΅ Font size: 9.0
🟒 Using white text (dark mode)
πŸ”΅ tDateMode: dd.MM.yyyy
πŸ”΅ tTimeMode: HH.mm
πŸ”΅ Loaded date time format: %H.%M.%Sβ€Š
%d.%m.%Y
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Full screen rect:  (-1080, 510, 0, 2430)
πŸ”΅ Show/hide loop started with parameters: HideonFS:True, NotHideOnTB:False, HideOnRDP:False, ClockOn1Mon:True, NefWSMethod:False, DisableNotifications:True, legacyFullScreenMethod:False
πŸ”΅ tDateMode: dd.MM.yyyy
πŸ”΅ tTimeMode: HH.mm
πŸ”΅ Loaded date time format: %H.%M.%Sβ€Š
%d.%m.%Y
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Restart loop: 1
πŸ”΅ Showing tooltip
πŸ”΅ Long date string: dddd d. MMMM yyyy
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
πŸ”΅ Starting update check
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "urllib\request.py", line 1348, in do_open

πŸ”΄   File "http\client.py", line 1282, in request

πŸ”΄   File "http\client.py", line 1328, in _send_request

πŸ”΄   File "http\client.py", line 1277, in endheaders

πŸ”΄   File "http\client.py", line 1037, in _send_output

πŸ”΄   File "http\client.py", line 975, in send

πŸ”΄   File "http\client.py", line 1454, in connect

πŸ”΄   File "ssl.py", line 517, in wrap_socket

πŸ”΄   File "ssl.py", line 1075, in _create

πŸ”΄   File "ssl.py", line 1346, in do_handshake

πŸ”΄ ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)

πŸ”΄ 
During handling of the above exception, another exception occurred:

πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 132, in updateIfPossible

πŸ”΄   File "urllib\request.py", line 216, in urlopen

πŸ”΄   File "urllib\request.py", line 519, in open

πŸ”΄   File "urllib\request.py", line 536, in _open

πŸ”΄   File "urllib\request.py", line 496, in _call_chain

πŸ”΄   File "urllib\request.py", line 1391, in https_open

πŸ”΄   File "urllib\request.py", line 1351, in do_open

πŸ”΄ urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'versions.somepythonthings.tk'. (_ssl.c:992)>)
πŸ”΅ Version URL: http://ww25.somepythonthings.tk/versions/elevenclock.ver?subid1=20230122-2001-4730-a9c4-acc8b984b178
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "\\samba-server\SPTPrograms\ElevenClock\elevenclock\__init__.py", line 140, in updateIfPossible

πŸ”΄ IndexError: list index out of range

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (list index out of range)
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
🟣 Expected AttributteError on resizeEvent
Action: ('win', 'n')
πŸ”΅ Showing tooltip
πŸ”΅ Long date string: dddd d. MMMM yyyy
πŸ”΅ Showing tooltip
πŸ”΅ Long date string: dddd d. MMMM yyyy
πŸ”΅ Showing tooltip
πŸ”΅ Long date string: dddd d. MMMM yyyy
Action: ('win', 'n')
πŸ”΅ Showing tooltip
πŸ”΅ Long date string: dddd d. MMMM yyyy
πŸ”΅ Showing tooltip
πŸ”΅ Long date string: dddd d. MMMM yyyy
πŸ”΅ Showing tooltip
πŸ”΅ Long date string: dddd d. MMMM yyyy
πŸ”΅ Announcement URL: http://ww25.somepythonthings.tk/resources/elevenclock.announcement?subid1=20230122-2012-07ce-95a0-499245fddde6
🟠 Unable to retrieve latest announcement
πŸ”΄ Traceback (most recent call last):

πŸ”΄   File "urllib\request.py", line 1348, in do_open

πŸ”΄   File "http\client.py", line 1282, in request

πŸ”΄   File "http\client.py", line 1328, in _send_request

πŸ”΄   File "http\client.py", line 1277, in endheaders

πŸ”΄   File "http\client.py", line 1037, in _send_output

πŸ”΄   File "http\client.py", line 975, in send

πŸ”΄   File "http\client.py", line 1454, in connect

πŸ”΄   File "ssl.py", line 517, in wrap_socket

πŸ”΄   File "ssl.py", line 1075, in _create

πŸ”΄   File "ssl.py", line 1346, in do_handshake

πŸ”΄ ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'www.somepythonthings.tk'. (_ssl.c:992)

πŸ”΄ 
During handling of the above exception, another exception occurred:

πŸ”΄ Traceback (most recent call last):

πŸ”΄   File ".\settings.py", line 3042, in loadAnnouncements

πŸ”΄   File "urllib\request.py", line 216, in urlopen

πŸ”΄   File "urllib\request.py", line 519, in open

πŸ”΄   File "urllib\request.py", line 536, in _open

πŸ”΄   File "urllib\request.py", line 496, in _call_chain

πŸ”΄   File "urllib\request.py", line 1391, in https_open

πŸ”΄   File "urllib\request.py", line 1351, in do_open

πŸ”΄ urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'www.somepythonthings.tk'. (_ssl.c:992)>

πŸ”΄ 
During handling of the above exception, another exception occurred:

πŸ”΄ Traceback (most recent call last):

πŸ”΄   File ".\settings.py", line 3051, in loadAnnouncements

πŸ”΄ IndexError: list index out of range

πŸ”΄ Note this traceback was caught by reporter and has been added to the log (list index out of range)
πŸ”΅ Copying log to the clipboard...

Additional context

Although I acknowledge that the issue appears to not have occured to many people, I presume that limiting ElevenClock to one instance at a time would hopefully fix it.

As an aside note, I notice in the log above that all references (if any) in ElevenClock's code to somepythonthings.tk should be removed as soon as feasible, since domains that start with numbers between ww5. and ww50. can be assumed to have elapsed and bought by SEO/malware spreaders (Even more so when using the .tk TLD), and a quick Google search for somepythonthings.tk seems to confirm my thoughts about it.

marticliment commented 1 year ago

Although I acknowledge that the issue appears to not have occured to many people, I presume that limiting ElevenClock to one instance at a time would hopefully fix it.

This issue is caused due to the inability of the multiple instance handler to close other instances. This faillure is commonly caused by permissions on the .elevenclock folderplaced in your user directory, so please navigate there and delete any ElevenClockRunningXXXXXXXXX file.

P.D. The issues with the domain are happening because freenom has had issues with servers and they have lost lots of records, and won't allow registering new domains.I fixed this on v4.0, but, since the old domain is down, the updater does not work,so please update manually to version 4.0. v4.0 and newer depend on a .com domain registered with google, so there shouldn't be further issues

Please let me know if this fixes the issue

DandelionSprout commented 1 year ago

Strangely, the Microsoft Store page seems to install 3.9.3 on initial installation instead of anything newer, but I've installed 4.0.0 from GitHub now. I'll see if I can remember to let you know about any news after I've tested it for 1~4 days.

marticliment commented 1 year ago

Yes, microsoft store is still reviewing version 4.0, and until they publish v4.0 3.9.3 will be the latest version available

oubeichen commented 1 year ago

I have upgraded elevenclock to version 4.0 but this issue still exists.

marticliment commented 1 year ago

Hi, may I ask you how did you upgrade to version 4.0.X?

DandelionSprout commented 1 year ago

Okay, so it ended up taking me 3 weeks to test (ElevenClock would simply create new ElevenClockRunning files each day after I had deleted the previous one), as I could only test new approaches once a day, but I think (pressure on "think") that turning on "Enable silent updates" fixes it.

oubeichen commented 1 year ago

@marticliment https://github.com/marticliment/ElevenClock/releases

marticliment commented 1 year ago

@DandelionSprout, it should not be related, but if it really fixes the issue, please let me know.

@oubeichen, have you ever ran ElevenClock or the installer with administrator rights?

DandelionSprout commented 1 year ago

Okay, so you were right that my "update check" theory was wrong, as not even turning off ElevenClock updates entirely could fix it.

My current theory is something related to when Windows enters sleep mode, with the area marked in orange below being files that were specifically changed by the OS circa around the time my PC last entered sleep mode this morning:

Screenshot: ![image](https://user-images.githubusercontent.com/22780683/221373188-4af510e4-3208-4daa-ab73-acec5d3fddb6.png)
marticliment commented 1 year ago

Could you please test this beta build?

https://github.com/marticliment/ElevenClock/releases/download/4.1.0-beta/ElevenClock.Installer.exe

DandelionSprout commented 1 year ago

Although I was a bit distracted in the past month, the problem seems to be gone/fixed as of 4.1.0 stable on my end.