delta-client icon indicating copy to clipboard operation
delta-client copied to clipboard

Join world hangs on chunk download with github actions build

Open JWhitmore1 opened this issue 3 years ago • 10 comments

Describe the bug see title

To Reproduce Steps to reproduce the behavior:

  1. launch world

Expected behavior world opens

Extra information (please complete the following information

  • OS: macOS 11.6
  • Hardware: M1 MacBook Air
  • Build: d96c3ff
27-12-2021 21:15:39.8790 n/a [info ] Loading plugins
27-12-2021 21:15:39.8870 n/a [info ] Loading registries
27-12-2021 21:15:39.8870 n/a [info ] Loading cached block registry
27-12-2021 21:15:39.9830 n/a [info ] Loading cached biome registry
27-12-2021 21:15:39.9850 n/a [info ] Loading cached fluid registry
27-12-2021 21:15:39.9860 n/a [info ] Loading cached entity registry
27-12-2021 21:15:39.9870 n/a [info ] Loading resource pack
27-12-2021 21:15:39.9880 n/a [debug] Loading resources from 'realms' namespace
27-12-2021 21:15:39.9880 n/a [debug] Loading textures
27-12-2021 21:15:39.9880 n/a [debug] Loading biome colors
27-12-2021 21:15:39.9880 n/a [debug] Loading cached block models
27-12-2021 21:15:39.9890 n/a [debug] Loading resources from 'minecraft' namespace
27-12-2021 21:15:39.9890 n/a [debug] Loading textures
27-12-2021 21:15:40.1300 n/a [debug] Loading biome colors
27-12-2021 21:15:40.1330 n/a [debug] Loading cached block models
27-12-2021 21:15:40.3460 n/a [info ] Done (572.47ms)
27-12-2021 21:15:41.8870 n/a [debug] Packet received, id=0x00
27-12-2021 21:15:41.8880 n/a [debug] Received ping response from play.stackotter.dev:36112
27-12-2021 21:15:45.1630 n/a [debug] Packet received, id=0x03
27-12-2021 21:15:45.1640 n/a [debug] Packet received, id=0x02
27-12-2021 21:15:45.1670 n/a [debug] Packet received, id=0x25
27-12-2021 21:15:45.1670 n/a [debug] Packet received, id=0x18
27-12-2021 21:15:45.1670 n/a [debug] plugin message received with channel: minecraft:brand
27-12-2021 21:15:45.1670 n/a [debug] Packet received, id=0x0d
27-12-2021 21:15:45.1670 n/a [debug] Packet received, id=0x31
27-12-2021 21:15:45.1670 n/a [debug] Packet received, id=0x3f

JWhitmore1 avatar Dec 27 '21 11:12 JWhitmore1

I can reproduce this too, on both the test server and on a local server. Some extra context:

  • the progress bar shows as stuck on loading 0 chunks
  • server logs show join and then instant disconnect

nekename avatar Dec 27 '21 15:12 nekename

@MoustacheOff has run into this issue on Monterey (#114).

Their context

OS: macOS 12.4 Hardware: M1 Mac mini Build: 0b76c80

stackotter avatar Jun 22 '22 12:06 stackotter

@MoustacheOff what account type are you logged in with?

stackotter avatar Jun 22 '22 12:06 stackotter

@MoustacheOff what account type are you logged in with?

I'm using a Microsoft account. (migrated)

MoustacheOff avatar Jun 22 '22 12:06 MoustacheOff

@stackotter I can test using a new account (created after Microsoft's migration) if needed.

MoustacheOff avatar Jun 22 '22 12:06 MoustacheOff

The issue might possibly be related to using an online account. To test if it's that, try using an offline account instead. A migrated account shouldn't make a difference, my account is migrated and it works.

My hunch is that this whole issue is related to me starting to use Swift's new structured concurrency feature (which seems to be a bit buggy in terms of SwiftPM and distribution.

stackotter avatar Jun 22 '22 12:06 stackotter

Nevermind, the Monterey case was a false positive, I miss diagnosed it. Thanks @ninjadev64 for noticing

stackotter avatar Jun 22 '22 12:06 stackotter

Did we have any ideas on what's causing this? I still experience this issue and would like to resolve it so I can see all the new progress, and contribute more as well.

nekename avatar Oct 09 '22 07:10 nekename

Not really, no one experiencing it has had Xcode or the skills to debug it. If you can install xcode then I can walk you through looking for causes

stackotter avatar Oct 09 '22 08:10 stackotter

Then that's exactly what I'll do today :∆

nekename avatar Oct 09 '22 08:10 nekename

I've got Xcode now. This is the full log produced from a fresh install of a local debug build.

➜  ~ /Users/aman/GitHub\ Desktop/delta-client/.build/bundler/DeltaClient.app/Contents/MacOS/DeltaClient ; exit;
25-10-2022 18:14:05.2330 DeltaClient [info ] Creating plugins directory
25-10-2022 18:14:05.2400 DeltaClient [info ] Downloading vanilla assets (might take a little while)
25-10-2022 18:14:05.2520 DeltaCore [info ] Fetching version manifest
25-10-2022 18:14:05.5390 DeltaCore [info ] Downloading client jar
25-10-2022 18:14:10.3080 DeltaCore [info ] Extracting client jar
25-10-2022 18:14:22.9570 DeltaCore [info ] Copying assets
25-10-2022 18:14:25.5100 DeltaCore [info ] Creating pack.mcmeta
25-10-2022 18:14:25.5120 DeltaClient [info ] Loading registries
25-10-2022 18:14:25.5160 DeltaCore [info ] Loading cached block registry
25-10-2022 18:14:25.5220 DeltaCore [warn ] Failed to load cached registries; failedToLoadFromCache(Error Domain=NSCocoaErrorDomain Code=260 "The file “blocks.bin” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/aman/Library/Application Support/dev.stackotter.delta-client/registries/blocks.bin, NSUnderlyingError=0x7fa7e3c3ca20 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}})
25-10-2022 18:14:25.5220 DeltaCore [info ] Downloading registries
25-10-2022 18:14:25.5220 DeltaCore [info ] Downloading and decoding pixlyzer items
25-10-2022 18:14:26.0670 DeltaCore [info ] Downloading and decoding pixlyzer fluids
25-10-2022 18:14:26.1830 DeltaCore [info ] Downloading and decoding pixlyzer biomes
25-10-2022 18:14:26.3230 DeltaCore [info ] Downloading and decoding pixlyzer blocks
25-10-2022 18:14:35.7120 DeltaCore [info ] Downloading and decoding pixlyzer entities
25-10-2022 18:14:35.9470 DeltaCore [info ] Downloading and decoding pixlyzer shapes
25-10-2022 18:14:36.1250 DeltaCore [info ] Processing pixlyzer fluid registry
25-10-2022 18:14:36.1260 DeltaCore [info ] Processing pixlyzer biome registry
25-10-2022 18:14:36.1280 DeltaCore [info ] Processing pixlyzer entity registry
25-10-2022 18:14:36.1330 DeltaCore [info ] Processing pixlyzer block registry
25-10-2022 18:14:36.4010 DeltaCore [info ] Processing pixlyzer item registry
25-10-2022 18:14:36.4320 DeltaCore [info ] Caching block registry
25-10-2022 18:14:47.6110 DeltaCore [info ] Caching biome registry
25-10-2022 18:14:47.6210 DeltaCore [info ] Caching fluid registry
25-10-2022 18:14:47.6240 DeltaCore [info ] Caching entity registry
25-10-2022 18:14:47.6310 DeltaCore [info ] Caching item registry
25-10-2022 18:14:47.6630 DeltaClient [info ] Loading resource pack
25-10-2022 18:15:41.1960 DeltaClient [info ] Starting
25-10-2022 18:15:41.2000 DeltaClient [info ] Done (109935.03ms)
Dimension(identifier: minecraft:overworld, ambientLight: 0.0, infiniburn: Optional(minecraft:infiniburn_overworld), fixedTime: nil, logicalHeight: 256, isNatural: true, hasCeiling: false, hasSkyLight: true, shrunk: false, ultrawarm: false, hasRaids: true, respawnAnchorWorks: false, bedWorks: true, piglinSafe: false)
Dimension(identifier: minecraft:overworld, ambientLight: 0.0, infiniburn: Optional(minecraft:infiniburn_overworld), fixedTime: nil, logicalHeight: 256, isNatural: true, hasCeiling: false, hasSkyLight: true, shrunk: false, ultrawarm: false, hasRaids: true, respawnAnchorWorks: false, bedWorks: true, piglinSafe: false)
Dimension(identifier: minecraft:overworld, ambientLight: 0.0, infiniburn: Optional(minecraft:infiniburn_overworld), fixedTime: nil, logicalHeight: 256, isNatural: true, hasCeiling: false, hasSkyLight: true, shrunk: false, ultrawarm: false, hasRaids: true, respawnAnchorWorks: false, bedWorks: true, piglinSafe: false)

I left it at "Downloading chunks" for ~5mins, then hit Cancel and CMD+Q.

nekename avatar Oct 25 '22 17:10 nekename

Can we rename this issue to something along the lines of "Soft hang while downloading chunks on Big Sur"? The current title is misleading as this behaviour is experienced on local builds as well, and is limited to Big Sur.

nekename avatar Dec 21 '22 16:12 nekename

The commit that introduces this bug is stackotter/delta-client@dbbb22a72c73401884d474cfffdcdc97ce3315e6.

This bug is nearing it's 1 year anniversary, so can we please get it resolved? :cry:

nekename avatar Dec 21 '22 16:12 nekename