https://bugs.dolphin-emu.org/https://bugs.dolphin-emu.org/favicon.ico?12010-09-03T05:07:37ZDolphin bug trackerEmulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834392010-09-03T05:07:37Zskidau
<ul></ul><p>Would you please turn on Panic Handlers, turn off "MMU speed hack" and turn off "Enable MMU" and then copy and paste the error that Dolphin shows?</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834402010-09-09T04:18:41Zcomwiz.kcomwiz.k@gmail.com
<ul></ul><p>No error occur on r6189 though the Panic Handler option was enabled.<br>
Game screen's just black and no response and 0 fps on titlebar.<br>
There's no exceptioninfo.txt</p>
<a name="Heres-all-records-on-Dolphinlog"></a>
<h1 >Here's all records on Dolphin.log<a href="#Heres-all-records-on-Dolphinlog" class="wiki-anchor">¶</a></h1>
<p>16:11:641 .\Src\NANDContentLoader.cpp:207 E[DIO]: CreateFromDirectory: error opening ./User/Wii/title/00000001/00000002/content/title.tmd<br>
16:11:938 .\Src\VolumeCreator.cpp:111 N[DIO]: SCBW_SYK0.iso does not have the Magic word for a gcm, wiidisc or wad file<br>
Set Log Verbosity to Warning and attempt to load the game again to view the values<br>
16:15:588 .\Src\Boot\Boot.cpp:164 N[BOOT]: Booting H:\Discs - Games/sqr-tloztp.iso<br>
16:15:602 .\Src\Hle\HLE_OS.cpp:52 N[OSREPORT]: 812003d8->81300000| <br>
Apploader Initialized.<br>
16:15:602 .\Src\Hle\HLE_OS.cpp:52 N[OSREPORT]: 812003f4->81300000| This Apploader built Oct 2 2008 17:35:24 for RVL<br>
16:15:895 .\Src\D3DBase.cpp:85 N[Video]: Successfully loaded d3dx11_42.dll.<br>
16:15:990 .\Src\PowerPC\Interpreter\Interpreter_SystemRegisters.cpp:353 N[PowerPC]: Flush Instruction Cache! ICE=0<br>
16:16:014 .\Src\PowerPC\Interpreter\Interpreter_SystemRegisters.cpp:344 N[PowerPC]: Instruction Cache Enable (HID0.ICE) = 1</p>
<a name="1620342-SrcFileMonitorcpp109-NFileMon-3831-kB-AudioresStreamtitle_backast"></a>
<h1 >16:20:342 .\Src\FileMonitor.cpp:109 N[FileMon]: 3,831 kB Audiores/Stream/title_back.ast<a href="#1620342-SrcFileMonitorcpp109-NFileMon-3831-kB-AudioresStreamtitle_backast" class="wiki-anchor">¶</a></h1>
<p>But on r5xxx, 3 error message occur :</p>
<p>WRITE: Invalid address: 4c000074<br>
WRITE: Invalid address: 7cba03ba<br>
WRITE: Invalid address: 7c6802b6</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834412010-09-09T15:31:02Zcomwiz.kcomwiz.k@gmail.com
<ul></ul><p>There are little improvements on r6194.</p>
<p>r6189 does crash at first Town scene(or before that)<br>
But r6194 crash on beginning of the scene after first gamesave.<br>
(r6194 stands longer!)</p>
<p>But MMU Speed Hack is still needed.</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834422010-09-11T02:43:56Zskidau
<ul></ul><p>Are you able to compile your own builds? Can you try updating to r6199 and uncomment these lines in Source\Core\Core\Src\HW\MemmapFunctions.cpp</p>
<p>if ((_Flag == FLAG_OPCODE) && !(MSR & (1 << (31 - 26)))) return _Address;</p>
<p>if (((_Flag == FLAG_READ) || (_Flag == FLAG_WRITE)) && !(MSR & (1 << (31 - 27)))) return _Address;</p>
<p>Then test the game again.</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834432011-01-04T12:18:07Zskidau
<ul></ul><p>Issue 3813 which is a similar report for the Japanese version of this game was found to be caused by a bad dump. Are you sure your ISO is not a bad dump?</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834442011-05-01T14:03:12ZAnonymous
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Invalid</i></li></ul> Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834452011-09-28T05:04:26Zcomwiz.kcomwiz.k@gmail.com
<ul></ul><p>I tested again.</p>
<p>I did uncomment the 'if ~~' codes on r6553 (MemmapFuction.cpp) and build it (on vs2010sp1) But there's nothing changed.<br>
It crashed down on the screen transition (when it get inside/outside a house).<br>
According to the debugger, that was a memory execution violation</p>
<p>I also tested the game with r6115 built on DebugFast profile.<br>
The error message "Self Modifying Code detected" has appeared on playing and then crashed down.</p>
<p>I have no idea whether the ISO image is correct or not.<br>
But I think there's no problem on the image.<br>
It can be run correctly with r4838. (or does r4838 have god's code?)</p>
<p>r6115 (and some previous builds with the ZTP hack) is fastest on Hyrul Field. (about 60~70% of speed)<br>
r6116 ~ r6553 are slightly slower. (55~65%)<br>
r6554 ~ current are slower than above (45~55%)</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834462011-09-28T11:17:33Zskidau
<ul><li><strong>Status</strong> changed from <i>Invalid</i> to <i>Accepted</i></li></ul> Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834472011-09-28T16:41:08Zcomwiz.kcomwiz.k@gmail.com
<ul></ul><p>The RZDL01(ZTP Korean) have another problem on r4839 ~ r6003.<br>
They can't get into Load data screen. (just after intro)</p>
<p>I tested many builds of Dolphin, and I realized that r6004 (and later ones) does not have the problem.<br>
So I applied the diff of r6004 to r5115, then now it can play the game very well<br>
(Also It doesn't crash at all!)</p>
<p>Now I continue to find out rest one of the problem (crash on playing)</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834482011-09-29T09:22:30Zcomwiz.kcomwiz.k@gmail.com
<ul></ul><p>RZDK01 try to run some instructions located on the memory address 0x4******* and 0x7c****** (so, the FakeVMEM(MMU Hack) option has to be enabled.)<br>
It may be caused by broken ISO image.</p>
<p>By the way, the instruction would be swapped to other one by GetOriginalFirstOp(inst) on r5840. And then 'Cleared Code Cache' would be occured at that moment.</p>
<p>But r5841 and laters doesn't use Unlimited JIT cache anymore.<br>
They can't handle the instructions.</p>
<p>Isn't there any solution?</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834492011-10-01T07:18:24Zcomwiz.kcomwiz.k@gmail.com
<ul></ul><p>I solve this problem.</p>
<p>The game tries to modify 0x80000500 (maybe External Interrupt Exception handler? ) using Write_Opcode_JIT().<br>
But FAST_ICACHE can't recognize that modification at that time.</p>
<p>To solve the problem, add Read_Opcode_JIT(u32 _Address) function of old Unlimited JIT version to Memmap.cpp, and modify new Read_Opcode_JIT(u32 _Address) as below.</p>
<p>u32 Read_Opcode_JIT(u32 _Address)<br>
{<br>
static u32 Prevaddr = 0;<br>
static u32 Previnst = 0;<br>
#ifdef FAST_ICACHE </p>
<pre><code>if (bMMU && !bFakeVMEM && (_Address & ADDR_MASK_MEM1))
{
_Address = Memory::TranslateAddress(_Address, FLAG_OPCODE);
if (_Address == 0)
{
return 0;
}
}
u32 inst = 0;
if ( (_Address & 0xFFFFFF00) == 0x80000500 )
inst = Read_Opcode_JIT_OC(_Address); //Old Funciton
else
inst = PowerPC::ppcState.iCache.ReadInstruction(_Address); //FAST_ICACHE
</code></pre>
<p>#else<br>
u32 inst = Memory::ReadUnchecked_U32(_Address);<br>
#endif<br>
return inst;<br>
}</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834502011-10-01T11:24:42Zskidau
<ul></ul><p>comwiz.k, let me know if I have understood you correctly. Please check the PowerPC branch:</p>
<p><a href="http://code.google.com/p/dolphin-emu/source/detail?r=cb2c55cd267d0c2d1a67873493e1d2413f7b4559&name=PowerPC" class="external">http://code.google.com/p/dolphin-emu/source/detail?r=cb2c55cd267d0c2d1a67873493e1d2413f7b4559&name=PowerPC</a></p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834512011-10-01T12:07:15Zcomwiz.kcomwiz.k@gmail.com
<ul></ul><p>That works very well. :)</p>
<p>But I don't know why the operand of the AND (&) is 0x0FFFFF00.<br>
I don't have ever seen the PowerPC stuff or emulators of any computer system before.....:)<br>
I guess.....Exception Handlers seems to be located on the other segments.</p>
<p>Thanks.</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834522011-10-01T12:09:12Zskidau
<ul></ul><p>Yes, it is safer to not specify 0x80000000 because it is mirrored at 0x00000000 and 0xC0000000. The game can reference the same location from any of those addresses.</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834532011-10-16T05:59:31Zskidau
<ul></ul><p>comwiz.k, I have made a change to the ICache code which will invalidate the JIT cache appropriately. Would you please test rc0498ca8314e?</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834542011-10-16T14:23:08Zcomwiz.kcomwiz.k@gmail.com
<ul></ul><p>I built the r18d9a275e70c and tested it.</p>
<p>It crashes down when I select saved data to load. (after the title)</p>
<p>It's so bad for ZTP-korean.</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834552011-10-27T10:54:45Zskidau
<ul></ul><p>Have committed some changes here: re03fd9a942e9</p>
<p>Please test if this game works. Let me know if there are any problems.</p>
Emulator - Emulator Issues #3165: Crash with Zelda : Twilight Princess (Korean)https://bugs.dolphin-emu.org/issues/3165?journal_id=6834562011-11-03T10:03:48Zskidau
<ul><li><strong>Status</strong> changed from <i>Accepted</i> to <i>Fixed</i></li></ul><p>Fixed in r3d2a2abb49df</p>