GithubHelp home page GithubHelp logo

Comments (3)

zeromus avatar zeromus commented on July 22, 2024

This one option is a drop in the bucket. instead, you should add a method that boots up a desmume library using the provded commandline so that it can parse all options. alternatively, we should have patterns you can use to add an ini option for num_cores which would get read before the commandline, I think

from desmume.

kenzlegouge avatar kenzlegouge commented on July 22, 2024

Thank you very much for your help.

I can maybe set myself more clear. I want to launch multiple instances of DesMuMe and feed it to a learner. For this, I am using py-desmume to interact with DesMuMe (https://github.com/SkyTemple/py-desmume).

Using this minimal code, you can reproduce the error yourself.

import desmume
from desmume.emulator import DeSmuME
emu = DeSmuME()
emu2 = DeSmuME()

Traceback (most recent call last):

Cell In[4], line 1
emu2 = DeSmuME()

File ~\anaconda3\envs\mkds\lib\site-packages\desmume\emulator.py:981 in init
if self.lib.desmume_init() < 0:

OSError: exception: access violation writing 0x0000000000000000

I can launch two emu instances using the .exe file and cmd lines, however not with this method. I suspect there is some clash with cores and memory attribution but I am not sure. Would you have any idea what could cause this ?

I am using windows 11 and Python 3.10.14, if it matters.

Best

from desmume.

zeromus avatar zeromus commented on July 22, 2024

Desmume doesn't support running more than one instance per process. This is engineered into it from the ground up. Your plan will never work. You must use separate processes.

from desmume.

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.