Giter VIP home page Giter VIP logo

Comments (4)

mulander avatar mulander commented on July 30, 2024

Instead of the above segfault, some test runs lead to the game being killed with the following on the console. This also happens on level change/load:

fishtank$ openjazz
pthread_mutex_destroy on mutex with waiters!
X Error of failed request:  BadShmSeg (invalid shared segment parameter)
  Major opcode of failed request:  130 (MIT-SHM)
  Minor opcode of failed request:  3 (X_ShmPutImage)
  Segment id in failed request:  0x2c0000f
  Serial number of failed request:  7133
  Current serial number in output stream:  7136

from openjazz.

mulander avatar mulander commented on July 30, 2024

Yesterday I tested the following:

  1. Changing the screen into a global to rule out the variable going out of scope - still crashing
  2. Avoided calling SDL_Flip if either canvas or screen ->refcount dropped to 0 - still crashing
  3. Avoided calling SDL_Flip if either canvas or screen ->pixels was null (0x0) - still crashing

I'm stuck and will need some pointers in further diagnosing this crash.

from openjazz.

mulander avatar mulander commented on July 30, 2024

I reached out to Ryan C. Gordon on twitter while initially hitting my head against this crash. His reply (note he only saw the backtrace by then, I only just linked him this ticket).

I'm not sure; does this only fail on OpenBSD? Likely either a wrong surface size or a bogus palette, it's dying in the loop where it converts from paletted values to RGBA.

from openjazz.

carstene1ns avatar carstene1ns commented on July 30, 2024

Since OJ is now ported to SDL2 and it only happened on OpenBSD so far, I am closing this without solution.

from openjazz.

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.