Code Monkey home page Code Monkey logo

Comments (19)

bearbin avatar bearbin commented on May 6, 2024

Yep, it's ravenscroftj's new drowning code - I think it could be fixed with a constraint to player height < 255.

from cuberite.

bearbin avatar bearbin commented on May 6, 2024

Should now be fixed, closing.

from cuberite.

tigerw avatar tigerw commented on May 6, 2024

Not fixed...

from cuberite.

lukeadams avatar lukeadams commented on May 6, 2024

It doesn't fully crash now, but freaks out and throws an error:
"Verification failed: a_Chunk.UnboundedRelGetBlockType(RelX, RelY+1, RelZ, BlockIn), file ..\source\Player.cpp, line 1352".

from cuberite.

madmaxoft avatar madmaxoft commented on May 6, 2024

That's the same "crash". The server fails an assert and therefore commits suicide.

from cuberite.

lukeadams avatar lukeadams commented on May 6, 2024

Ah, ok. Just forked to take a look at it.

from cuberite.

tigerw avatar tigerw commented on May 6, 2024

Is there a programmatic way for the server to call the suicide helpline? Mortality rates in this department will get quite high if the server keeps on doing this.

from cuberite.

tigerw avatar tigerw commented on May 6, 2024

Or when the player goes a little into the void.

from cuberite.

lukeadams avatar lukeadams commented on May 6, 2024

I submitted a patch that should temporarily solve it. It just skips running the offending method if you're outside of the 0-255 block range.

from cuberite.

madmaxoft avatar madmaxoft commented on May 6, 2024

The suicide code is there on purpose, so that the devs will inspect whenever the code is invoked in invalid situations. Because when the code is called, the caller assumes that it will receive the correct block value, it doesn't anticipate that there's no block at those coords, so usually the caller has to be fixed.

from cuberite.

tigerw avatar tigerw commented on May 6, 2024

Okay :)

What does this method do anyway, and what does it do to have to run when there are no blocks?

Tiger

[Apple iPad Mail App]

On 11 Aug 2013, at 10:00 AM, "Mattes D" [email protected] wrote:

The suicide code is there on purpose, so that the devs will inspect whenever the code is invoked in invalid situations. Because when the code is called, the caller assumes that it will receive the correct block value, it doesn't anticipate that there's no block at those coords, so usually the caller has to be fixed.


Reply to this email directly or view it on GitHub.

from cuberite.

madmaxoft avatar madmaxoft commented on May 6, 2024

The patch is okay, mostly, just some cosmetics to fix and it'll be merged.

from cuberite.

bearbin avatar bearbin commented on May 6, 2024

Fixed?

from cuberite.

madmaxoft avatar madmaxoft commented on May 6, 2024

Should be. Please re-test, and close if okay.

from cuberite.

NiLSPACE avatar NiLSPACE commented on May 6, 2024

I still get the error.

from cuberite.

bearbin avatar bearbin commented on May 6, 2024

:(

from cuberite.

madmaxoft avatar madmaxoft commented on May 6, 2024

Can you verify that the error is still relevant to the cPlayer::SetSwimState() function? It might be an altogether different failure.

from cuberite.

madmaxoft avatar madmaxoft commented on May 6, 2024

I'm not getting any crash when above Y=256, so whatever crash you're getting is probably not caused directly by this. Can you provide any more info? stacktrace...

from cuberite.

madmaxoft avatar madmaxoft commented on May 6, 2024

Oh, the crash was very picky, it triggerred only between Y 255 and 256, nowhere else.

from cuberite.

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.