#1284 switchMode: WRONG mode spam (Linux)

K. York

This only happens with the new --cpu-mode=1 option.

32-bit Ubuntu 12.04 LTS
2.0 GiB RAM
Intel Centrino Duo T2300 @ 1.66 GHz x 2
GeForce Go 7400/PCIe/SSE2

Steps taken:
1. Build from SourceForge source download
2. Run desmume as "desmume --cpu-mode=1"
3. Select a game using the GUI or Recent Files
4. DeSmuMe spams console and crashes
5. Run without --cpu-mode; does not crash

Terminal Output: http://paste.ubuntu.com/5672464/


  • CrazyMax

    CrazyMax - 2013-05-26

    needs savestate before issue

    Last edit: CrazyMax 2013-05-26
  • jamaica

    jamaica - 2013-06-05

    I have similar situation, Linux (Fedora 18), compiled from 0.99 source
    It produced something very similar to this article: http://forums.desmume.org/viewtopic.php?pid=21183
    desmume: arm_jit.cpp:3939: void sync_r15(u32, bool, bool): Assertion `!instr_uses_r15(opcode)' failed.

    So I added "#define NDEBUG" in arm_jit.h and recompiled,
    this time i get almost identical result with the original post: WRONG MODE spamming and segfault.

    1) How do I save (state) in this situation? none of my roms start at all so I dont get any screen or menus

    2) Any other information you need that I can produce?

    Cannot get savestate, since desmume dies before

  • CrazyMax

    CrazyMax - 2013-06-17

    i cant reproduce it on Windows.

  • CrazyMax

    CrazyMax - 2013-08-13
    • labels: JIT --> JIT, Linux port
  • loren

    loren - 2013-08-25

    Reproduced on x86_32 linux but not on x86_64. Diagnosed as calling convention (which explains the OS dependence). Fixed in [r4728].



    Commit: [r4728]

    Last edit: CrazyMax 2013-11-30
  • rogerman

    rogerman - 2015-03-18

    Confirmed fix using r5120, running on the stock 32-bit Lubuntu 14.10.

    Last edit: rogerman 2015-03-18
  • rogerman

    rogerman - 2015-03-18
    • status: open --> open-accepted
    • planned milestone: --> 0.9.11


Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks