You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.



#1 2013-07-15 12:50:31

papaya_boy
Member
Registered: 2013-07-13
Posts: 11

[Linux] crash with --cpu-mode=1

Hello guys,

without that command --cpu-mode=1 pokemon white edition works fine, but still slow.

If I start Desmume with --cpu-mode=1 the game runs faster. But when I start a Pokemon fight, Desmume always close automatically.

Any ideas how i can use JIT (--cpu-mode=1) without that force close?

Thank you for your help.

Offline

#2 2013-07-15 13:11:50

CrazyMax
Administrator
From: Ukraine
Registered: 2007-10-26
Posts: 121

Re: [Linux] crash with --cpu-mode=1

what messages in console/terminal?

Offline

#3 2013-07-15 13:35:55

papaya_boy
Member
Registered: 2013-07-13
Posts: 11

Re: [Linux] crash with --cpu-mode=1

I get this message:

desmume: arm_jit.cpp:3939: void sync_r15(u32, bool, bool): Assertion `!instr_uses_r15(opcode)' failed.
Aborted


And the whole messages are:


desmume --cpu-mode=1

Slot 2: NONE
Failed to set format: Invalid argument
Microphone init failed.
DeSmuME 0.9.9 svnr0 x64-JIT
Found 1 joysticks
Joystick 0 Xbox Gamepad (userspace driver)
Axes: 4
Buttons: 13
Trackballs: 0
Hats: 1

SoftRast Initialized with cores=1
Already decrypted.

ROM game code: IRAD
ROM crc: 17B8280B
ROM serial: NTR-IRAD-NOE
ROM internal name: POKEMON W

Backup size: 3 Mbit
DEBUG_reset: 004735C0
Backup size: 3 Mbit
CPU mode: JIT
JIT: max block size 100 instruction(s)
DEBUG_reset: 004735C0
Backup size: 3 Mbit
CPU mode: JIT
JIT: max block size 100 instruction(s)
desmume: arm_jit.cpp:3939: void sync_r15(u32, bool, bool): Assertion `!instr_uses_r15(opcode)' failed.
Aborted

Last edited by papaya_boy (2013-07-15 13:37:20)

Offline

#4 2013-07-15 13:46:48

CrazyMax
Administrator
From: Ukraine
Registered: 2007-10-26
Posts: 121

Re: [Linux] crash with --cpu-mode=1

again

desmume: arm_jit.cpp:3939: void sync_r15(u32, bool, bool): Assertion `!instr_uses_r15(opcode)' failed.

it happens only on Linux, i cant fix it because dont have linux with GUI for tests

Offline

#5 2013-07-15 13:56:47

papaya_boy
Member
Registered: 2013-07-13
Posts: 11

Re: [Linux] crash with --cpu-mode=1

Can I give you any informations or something like this that is usefull for you?

Offline

#6 2013-07-15 19:33:51

papaya_boy
Member
Registered: 2013-07-13
Posts: 11

Re: [Linux] crash with --cpu-mode=1

I fixed that error, i don't know specifically what was the solution but i tell you what I've done:

I use MINT, that based on Ubuntu. First I installed the new desmume version with ./configure, make and make install. But these steps are not recommended for Ubuntu.

I installed the package "checkinstall", so you dont use "make install" no more, but "checkinstall" now as the last step.

In this topic they discussed this error as well, and an idea was to add "#define NDEBUG" to  arm_jit.h, so I did that.

http://forums.desmume.org/viewtopic.php?id=9681

I runned ./configure again and I saw that some packages were not installed, so I installed them:

libsoundtouch-dev

libzzip-0-13

libzzip-dev

liblua5.1-0-dev

libagg-dev

libosmesa6-dev was missing as well, but after I installed that i got errors after the "make" command.

With this changes I recompiled desmume 0.9.9 again and I was able to fight against other trainers without a crash. So maybe these tips are usefull for someone of you.

Last edited by papaya_boy (2013-07-15 19:34:56)

Offline

#7 2013-07-16 17:37:28

rogerman
Member
Registered: 2011-06-04
Posts: 380

Re: [Linux] crash with --cpu-mode=1

Just so you know, using "#define NDEBUG" only masks the error; the actual error will still occur internally. This could cause errors to snowball and ultimately result in undefined behavior. In other words, if there are bugs, "#define NDEBUG" won't magically fix the bugs, but it will stop DeSmuME from immediately crashing out when it sees them.

Offline

Board footer

Powered by FluxBB