Code Monkey home page Code Monkey logo

Comments (7)

jdolan avatar jdolan commented on July 29, 2024

I can't reproduce this one on macOS, either. I just r_restarted about 30 times, 10 times at the menu, and then twice after loading each q2dm level. No crashes.

There is a crash in ObjectivelyMVC around updateHover that you will see fairly consistently if moving your mouse while the map is loading. But this seems different...

from quetoo.

M-Ro avatar M-Ro commented on July 29, 2024

Oddly I can reproduce it easier with F11 (toggle fullscreen) than r_restart, but I'm presuming that's just luck. I've attached an entirely unhelpful backtrace from gdb below.

r_fullscreen will be changed on r_restart.
Video initialization...
  Trying 1913x1074..
  Setting up OpenGL context..
  Renderer:   NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2
  Vendor:     NVIDIA Corporation
  Version:    3.3.0 NVIDIA 470.94
Video initialized 1920x1080 (1920x1080) fullscreen
r_fullscreen will be changed on r_restart.
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
quetoo: s_mix.c:162: S_MixChannels: Assertion `ch->play.sample->buffer' failed.
--Type <RET> for more, q to quit, c to continue without paging--

Thread 1 "quetoo" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
49	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#1  0x00007ffff7745536 in __GI_abort () at abort.c:79
#2  0x00007ffff774541f in __assert_fail_base (
    fmt=0x7ffff78ab978 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
    assertion=0x5555555c0135 "ch->play.sample->buffer", file=0x5555555c012d "s_mix.c",
    line=162, function=<optimized out>) at assert.c:92
#3  0x00007ffff7754212 in __GI___assert_fail (
    assertion=assertion@entry=0x5555555c0135 "ch->play.sample->buffer",
    file=file@entry=0x5555555c012d "s_mix.c", line=line@entry=162,
    function=function@entry=0x5555555c0198 <__PRETTY_FUNCTION__.3> "S_MixChannels")
    at assert.c:101
#4  0x000055555558cb8f in S_MixChannels (stage=stage@entry=0x5555555dcc40 <cl_stage>)
    at s_mix.c:162
#5  0x000055555558b8e0 in S_RenderStage (stage=stage@entry=0x5555555dcc40 <cl_stage>)
    at s_main.c:237
#6  0x0000555555560d0e in Cl_Frame (msec=msec@entry=1) at cl_main.c:666
#7  0x000055555555f884 in Frame (msec=1) at main.c:410
#8  main (argc=1, argv=0x7fffffffe778) at main.c:459
(gdb) quit
A debugging session is active.

	Inferior 1 [process 129100] will be killed.

from quetoo.

M-Ro avatar M-Ro commented on July 29, 2024

A bit further info. I hacked in the following block before the assertion to get some debug output in S_MixChannels.

if (!ch->play.sample->buffer) {
  Com_Print("entity %d\n", ch->play.entity);
  Com_Print("media %s\n", ch->play.sample->media.name);
}

assert(ch->play.sample->buffer);

Which gave me the following output:

entity 1
media #players/common/step_default_2
quetoo: s_mix.c:167: S_MixChannels: Assertion `ch->play.sample->buffer' failed.
Sys_Signal: Received signal 6

It always seems to be a footstep file (grass, default, etc..). I realised if I just load a map, I can r_restart/r_toggle_fullscreen all day long, until I start moving and a footstep sound plays for the first time. The next restart will crash.
This goes against my previous statement that it can happen in the main menu before loading a map, which I can't seem to reproduce. 🤔

from quetoo.

jdolan avatar jdolan commented on July 29, 2024

Ah, this makes more sense now! Thank you.

from quetoo.

jdolan avatar jdolan commented on July 29, 2024

I can reproduce this exact crash, and debug it.

bind "mouse 2" r_toggle_fullscreen

And run around on the grass on Edge and hit mouse2.

from quetoo.

jdolan avatar jdolan commented on July 29, 2024

@M-Ro I think this is fixed now, if you want to retest.

from quetoo.

M-Ro avatar M-Ro commented on July 29, 2024

@jdolan Confirmed - Spent ~10 minutes playing with bots spamming F11 across a few maps. No crashes.

from quetoo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.