mojira.dev
MCL-23077

Blocking Minecraft.exe on Firewall causes Logging to loop indefinitely

Launcher logs connection errors indefinitely.
Tries to reconnect which fails, etc.
Causes launcher-app.log to take up a lot of space (~150MB in ~4 min)
Causes high CPU/memory usage.

Also as a note/question:
Why does minecraft.exe try to connect to google content servers?
The logging feature seems very intrusive to me. Not particularly the
information itself more the providers used and what it might be used for in the future.

Linked issues

Attachments

Comments 12

Hi!

Please unblock Launcher from your Firewall, blocking it may cause problems, as you mentioned, with logging and performance.

After unblocking you may report back if any other issues arose. 

This ticket will automatically reopen when you reply.

This issue does not just occur when blocking Minecraft.exe on the Firewall.
It also occurs when you are in Offline mode or can not establish a connection for other reasons.
Therefore it needs to be fixed either way. Dealing with 150 MB log files filled with the same 7 lines of information does not benefit Mojang either.
The fix for this is for the logger to check if a connection could be established once.
If the connection was unsuccessful it could:
A) trigger a log every 2^n seconds to try for reconnection.
B) log once and ignore the failed connection afterwards
c) log to switch to offline mode so logging excludes network related logging.

This might be even easier if you filter logging messages in the first place to avoid reoccurring messages.
Maybe through a queue that checks the occurrences of a given message and only returning the counter + Message + TimeSpan or smh.
Just a thought though.

Heya! Can you verify that this issue still occurs on the newest version of the Launcher? I could not reproduce this issue on my end.

Fixed for Offline mode. Thank you🙂
Sadly not fixed when blocking MC Launcher on Firewall.
Unfortunately not blocking this is not an option for me.
Also I am not an expert when it comes to logging data but this can't be good in the long run if this does not get fixed at some point... If the app gets unblocked at some point it would upload like 5gb of useless data to the server...
(Useless in the sense that it will repeatedly log the same 5 lines)

Hi again! As you mentioned, the offline mode issue appears to be fixed.

I can still (partially) reproduce this behavior by blocking the launcher via firewall, but with "only" ~30MB in ~4 min in launcher_log file; CPU usage is remarkably high.

2 more comments

Is anyone still running into this issue?

I am still running into this issue in Windows 10.0 2.12.12-1.6.2. Due to the fact that my launcher_log file exceeds the upload limit, here is an example:

[Error: 2023-10-25 23:21:12.6009367: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6009768: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6037555: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6037772: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6038016: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6038482: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6038673: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6038902: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6039307: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6039492: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6039717: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6040148: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6040444: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6040671: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6413618: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6413992: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6414792: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6477024: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6415186: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6480792: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6477979: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6536432: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6481777: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6543293: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6537254: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6594857: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6595351: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6595864: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6596819: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6597201: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6597650: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6598420: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6598785: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6599232: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6600007: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6600546: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6600998: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6544150: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6601929: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6602872: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6660278: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6661184: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6715888: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6721358: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6716832: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6763910: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6764119: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6764341: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6764824: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6765005: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6765219: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Error: 2023-10-25 23:21:12.6722433: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6765602: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6765927: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6766042: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6766474: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6766929: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6767117: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6767337: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6767732: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6767915: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6768132: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6768521: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6768702: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6768924: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6769332: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6769639: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6769866: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6770082: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6770296: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6771640: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6766304: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6791517: CurlNetQueue.cpp(574)] NetQueue: No ip address available. Error code 7, Host: sentry.io
[Error: 2023-10-25 23:21:12.6791901: CurlNetQueue.cpp(649)] NetQueue: Action failed with result "Failed to connect to sentry.io port 443 after 0 ms: Bad access" (7) : https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6815864: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6816057: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6816276: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6816696: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6816859: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6817053: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6817395: NetQueue.cpp(102)] NetQueue: Action finished: https://sentry.io/api/2703928/store/
[Error: 2023-10-25 23:21:12.6817552: SentryAPI.cpp(121)] 0 Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Warning: 2023-10-25 23:21:12.6817746: NetQueue.cpp(124)] Action https://sentry.io/api/2703928/store/ failed in response handler. response code: 0 - error string: 'Failed to connect to sentry.io port 443 after 0 ms: Bad access
[Info: 2023-10-25 23:21:12.6818096: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6818356: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/
[Info: 2023-10-25 23:21:12.6818548: NetQueue.cpp(213)] NetQueue: Starting net action https://sentry.io/api/2703928/store/

MC-272360

Similar issue, except it’s present on Mac and Linux.

Unblocking telemetry data is not the solution. This is not how it should be in the first place. Blocking a error logging domain like Sentry can't be a application breaking thing. The launcher should just ignore it and not log to Sentry.

This is still an issue. At the very least, you all could sleep() even ~30 seconds between network requests and it'd make a difference.

migrated

(Unassigned)

Confirmed

Retrieved