Giter VIP home page Giter VIP logo

Comments (3)

Skurdt avatar Skurdt commented on September 17, 2024 1

Only way to debug this is to make debug builds of cores and step into the c side in a debugger.
The issue is that it's related both to cpu threads and graphics context from what I remember, and it's also not always happening...

_contextDestroy is a function pointer provided by the core, on the frontend side it's basically take it, store it in your own allocated retro_hw_render_callback struct and call on the function pointer without any idea what it's doing ^^

You could ignore the call and see if the core gets unloaded properly. If it is then the core might have called context_destroy itself or it's simply not needed... The easiest way to test the "unload" issues for me was to check if the copied dll (in temp folder) was still present or not. If it's still present, then it means the File.Delete failed and something is still in use somewhere...

from sk.libretro.

kafeijao avatar kafeijao commented on September 17, 2024
=================================================================
        Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
        Managed Stacktrace:
=================================================================
          at <unknown> <0xffffffff>
          at System.Object:wrapper_native_00007FFAE49301A0 <0x00086>
          at SK.Libretro.HardwareRenderHelperWindow:Dispose <0x0003c>
          at SK.Libretro.HardwareRenderHelperWindow:Dispose <0x00022>
          at SK.Libretro.GraphicsHandler:Dispose <0x0004a>
          at SK.Libretro.Wrapper:StopContent <0x0005a>
          at SK.Libretro.Unity.Bridge:LibretroThread <0x00bba>
          at System.Threading.ThreadHelper:ThreadStart_Context <0x000a5>
          at System.Threading.ExecutionContext:RunInternal <0x001dd>
          at System.Threading.ExecutionContext:Run <0x0002a>
          at System.Threading.ExecutionContext:Run <0x0005a>
          at System.Threading.ThreadHelper:ThreadStart <0x00042>
          at System.Object:runtime_invoke_void__this__ <0x000d5>

Yep, I hit this issue c:

Seems to happen when this invoke is called:

Any idea on a workaround/fix?

from sk.libretro.

kafeijao avatar kafeijao commented on September 17, 2024

If I don't call the _contextDestroy the file is still deleted from the temp folder.
I guess we're good, thanks!

from sk.libretro.

Related Issues (18)

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.