QW-Group / ezquake-source

main ezQuake source code base
https://www.ezquake.com/
GNU General Public License v2.0
270 stars 122 forks source link

BUG: Ezquake crashes when loading vw models #644

Open molgrum opened 2 years ago

molgrum commented 2 years ago

ezQuake version: r7198~6c0f2843

OS/device including version: Parabola GNU/Linux-libre Mesa Intel(R) HD Graphics 620 (KBL GT2) (0x5916)

Describe the bug Ezquake segfaults when loading vw models downloaded straight from a KTX server.

To Reproduce Steps to reproduce the behavior:

  1. Make a clean directory with only ezquake and pak0/pak1
  2. Connect to any KTX server
  3. Wait for vw models to download
  4. Crash

Expected behavior To connect and load the map. Being able to play.

Backtrace ` Thread 1 "ezquake-db" received signal SIGSEGV, Segmentation fault. 0x00005555555e75b3 in Mod_LoadAliasModel (mod=0x5555569e5c88 <mod_known+155944>, buffer=0x7ffff65166d0, filesize=125236, loadname=0x5555569beb40 "w_nail2") at r_aliasmodel.c:843 843 frametype = LittleLong(pframetype->type); (gdb) bt

0 0x00005555555e75b3 in Mod_LoadAliasModel (

mod=0x5555569e5c88 <mod_known+155944>, buffer=0x7ffff65166d0, 
filesize=125236, 
loadname=0x5555569beb40 <loadname> <error: Cannot access memory at address 0x5555569beb40>) at r_aliasmodel.c:843

1 0x0000555555607d6a in Mod_LoadModel (

mod=0x5555569e5c88 <mod_known+155944>, crash=false)
at r_model.c:289

2 0x0000555555607dfa in Mod_ForName (

name=0x555558da5f0c <cl+1441676> <error: Cannot access memory at address 0x555558da5f0c>, crash=false) at r_model.c:313

Backtrace stopped: Cannot access memory at address 0x7fffffffe218 `

molgrum commented 2 years ago

Architecture: x86_64

meag commented 2 years ago

Hi molgrum

Can you upload the w_nail2.mdl file please? Just tried here and it worked ok.

Thanks meag

molgrum commented 2 years ago

@meag

Hello.

It seems Github doesn't support uploading .mdl. Where can I upload it?

Thanks.

meag commented 2 years ago

w_nail2.zip

(test) - you can just zip it up I think?

molgrum commented 2 years ago

w_nail2.zip

@meag

Here you go.