wtfbbqhax / tremulous

:godmode: Modern modular idTech3 based engine, Tremulous

Home Page:http://wtfbbqhax.github.io/tremulous/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Client crash when Joining GrangerHub [1.1] server (EXEC_BAD_ACCESS)

wtfbbqhax opened this issue · comments

Steps to Reproduce

Join any GrangerHub [1.1] Protocol Server from the Server Browser.

This is not the same as issue #49 which is fixed in 65d902c.

Logging the individual VM Module initializations like before:

After clicking "Join" on GrangerHub [1.1] protocol server

  1. Loads UI QVM module
    image

Pressing Continue, we are immediately hit with another UI Initialization from the CL_DownloadsComplete() call path

  1. Loading UI QVM module
    image

Press Continue

  1. Loading CGame QVM module
    image

....

I'm having trouble reproducing this in the debugger; it seems that some initial state from a freshly started client is important.
In the Debugger, I can reproduce the crash if I allow continue quickly

After deleting the 11 vms-*.pk3 only, we can see something else happening

  1. Fails to load ui.qvm
  2. Loads native UI module
  3. Downloads missing pak
  4. Load UI QVM
    CL_DownloadComplete() -> CL_FlushMemory() ... -> CL_StartHunkUsers() -> CL_InitUI()

Look at the "Debug Console" output in the below screenshot.

It looks like we've found a ui/ directory instead of the UI QVM module
image

Okay, now I can not reproduce the issue at all, I'm not sure if it's real or was a glitchy build

Happened again now in the UI module, this log might be important

 Sound memory manager started
Loading vm file vm/ui.qvm...
File "vm/ui.qvm" found in "/Users/victor.roemer/Library/Application Support/Tremulous/base/vms-1.1.0.pk3"
...which has vmMagic VM_MAGIC_VER2
Loading 1075 jump table targets
WARNING: Server uses protocol 70, but a ui module using the 1.1 interface was found
UI menu load time = 171 milli seconds
UI menu load time = 32 milli seconds
UI menu load time = 13 milli seconds
File "ui/" found in "/Users/victor.roemer/co/wtfbbqhax/tremulous/build/debug-darwin-x86_64/base/data-1.1.0.pk3"
Need paks: @slacker/vms-gpp1-bunker_220207-144309.pk3@slacker/vms-gpp1-bunker_220207-144309.pk3@slacker/data-bunker.pk3@slacker/data-bunker.pk3
Trying CURL download: slacker/vms-gpp1-bunker_220207-144309.pk3; slacker/vms-gpp1-bunker_220207-144309.pk3
URL: http://dl.zittrig.eu/slacker/vms-gpp1-bunker_220207-144309.pk3
Trying CURL download: slacker/data-bunker.pk3; slacker/data-bunker.pk3
URL: http://dl.zittrig.eu/slacker/data-bunker.pk3