Code Monkey home page Code Monkey logo

Comments (9)

sergystepanov avatar sergystepanov commented on July 17, 2024 1

It's just mGBA not ported properly for Libretro API, more precise their custom mem deallocator.
I have nothing against Libretro, speaking of GO/CGO I meant that it's not quite on the level of performance and dev-friendliness with other FFI providing languages like Rust or Crystal. Not sure about screen capture or Wayland like display client/servers but yeah, I'm pretty sure that the first we should describe the worker as a high-level interface for coordinator and user-agent, then one can write it whatever way he wants: Libretro-nanoarch-like, bare metal os, or screen-capture, and so on.

from cloud-game.

giongto35 avatar giongto35 commented on July 17, 2024

Thank you for reporting that. I will take a look at it :D

from cloud-game.

giongto35 avatar giongto35 commented on July 17, 2024

It indeed crashes with ludo also. Seem like problem with libretro. Will try to work around and recover from libretro error.

from cloud-game.

giongto35 avatar giongto35 commented on July 17, 2024

unable to fix..

from cloud-game.

sergystepanov avatar sergystepanov commented on July 17, 2024

🤕 I'll look.

from cloud-game.

giongto35 avatar giongto35 commented on July 17, 2024

it's problem with libretro, it crashed with retroarch as well. I think it's libretro limitation. I think I will just remove this game.

from cloud-game.

sergystepanov avatar sergystepanov commented on July 17, 2024

Retroarch can unload this game with mGBA. I will try to look at their code, maybe there is something interesting and will read about handling unexpected app terminations in C but handle it from CGO is quite a challenge and possible is impossible. (:
(the more I look at CGO the more I begin to think that using it for libretro bridge is a mistake)

from cloud-game.

giongto35 avatar giongto35 commented on July 17, 2024

Maybe the Libretro ported in CGO has problem. I remember I got issue with https://github.com/libretro/ludo, https://github.com/libretro/go-nanoarch
And I'm having plan to move away libretro, so we have more flexibility. Running a game entity separately and capture the screen is enough. Communication between the game and the app uses Inter-Process Communication. Do you think it should be the way to go?

from cloud-game.

sergystepanov avatar sergystepanov commented on July 17, 2024

This is mGBA problem with the Libretro API. During core unload call they are dereferencing a null pointer. Must be fixed on their side. No idea how to handle this through CGO.

from cloud-game.

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.