mupen64plus-user-issues icon indicating copy to clipboard operation
mupen64plus-user-issues copied to clipboard

Segmentation fault using Glide64mk2 in LOZ:MM and the Debug Master Quest [f2] + Pause Crashing

Open richard42 opened this issue 10 years ago • 15 comments

Originally reported on Google Code with ID 551

Describe your system:
 - Ubuntu 12.04 (64-bit):
 - 64-bit AMD Athlon 64x2:
 - Mupen64Plus version: Latest source compiled with default values
 - Plugins used:Glide64mk2

For visual artifacts, give:
 - game name and CRC/MD5 hash:

1)
Goodname: Legend of Zelda, The - Majora's Mask (U) [!]
Core: Name: ZELDA MAJORA'S MASK 
Core: MD5: 2A0A8ACB61538235BC1094D297FB6556
Core: CRC: 5354631c 3a2def0
Core: Imagetype: .z64 (native)
Core: Rom size: 33554432 bytes (or 32 Mb or 256 Megabits)
Core: Version: 144b
Core: Manufacturer: Nintendo
Core: Country: USA

2)
Goodname: Legend of Zelda, The - Ocarina of Time - Master Quest (U) (Debug Version)
Core: Name: THE LEGEND OF ZELDA 
Core: MD5: 110523A9595CA9DEC61402E628878C84
Core: CRC: 917d18f6 69bc5453
Core: Imagetype: .z64 (native)
Core: Rom size: 67108864 bytes (or 64 Mb or 512 Megabits)
Core: Version: 144c
Core: Manufacturer: Nintendo
Core: Country: USA

Describe the problem:

1) In Majora's Mask, Mupen64plus crashes with a segmentation fault error message as
approaching the old Granny's room into the Stock Pot Inn.

2) In LOZ: OOT - Master Quest, Mupen64plus crashes with a segmentation fault as blowing
the inner wall at the beginning of Dodongo's Cavern. Also, the game is very prone to
crashing as trying to open the pause subscreens.


Please provide any additional information below.

Attaching the states to load in order to verify the issue.

Reported by alessandroporcelli91 on 2013-06-01 13:05:28


- _Attachment: [Legend of Zelda, The - Majora's Mask (U) [!].st1](https://storage.googleapis.com/google-code-attachments/mupen64plus/issue-551/comment-0/Legend of Zelda, The - Majora's Mask %28U%29 [!].st1)_ - _Attachment: [Legend of Zelda, The - Ocarina of Time - Master Quest (U) (Debug Version).st1](https://storage.googleapis.com/google-code-attachments/mupen64plus/issue-551/comment-0/Legend of Zelda, The - Ocarina of Time - Master Quest %28U%29 %28Debug Version%29.st1)_

richard42 avatar Aug 14 '15 05:08 richard42

I've just tried it with the build from https://launchpad.net/~sven-eckelmann/+archive/ppa-mupen64plus

1) the room you've mentioned it the one on the first floor (down the chairs), then
2x left and then the first one on the right. Here it didn't crash. when I entered the
room with the granny in the chair.

Did you had some special configuration or some texture packs?

2) I couldn't fine a ROM with this md5. Are you sure it is a good rom? The one i know
as good dump of the Debug version has the md5 8CA71E87DE4CE5E9F6EC916202A623E9

Could you please try the builds from the ppa (please check that you don't accidentally
use the plugins or the core from your other installation; give the full path to --gfx,
--audio, --input, --corelib, --rsp -- or verify with strace that the correct ones are
used -- the right ones are in /usr/lib/x86_64-linux-gnu/mupen64plus/ and use the core
lib /usr/lib/x86_64-linux-gnu/libmupen64plus.so.2.0.0 )

Reported by [email protected] on 2013-06-06 18:44:48

richard42 avatar Aug 14 '15 05:08 richard42

Thanks for replying! First things first, I have no mupen64plus directory under x86_64-linux-gnu.
All plugins and stuff are located in /usr/local/lib/mupen64plus/. The strange thing
is that whenever I change the video plugin in the config file to something different
from Rice, mupen64plus automatically loads glide64mk2....quite odd.

I am using textures packs under Rice, but I did not set glide64mk2 any differently
from how it comes from the source so it does not actually use them. Checked the Majora's
Mask thing once again and I'm almost sure it just crashes after a few seconds, the
game doesn't really care if I approach that room or not...I compiled from Hg following
the wiki page of this project.

 Special configurations: I had set the ScreenUpdateSetting to 2 in order to solve the
flickering of the pause screen in OOT and MM. I'm seriously thinking my glide64mk2
plugin is corrupted. I expect it to have the same md5 of yours if we're running under
the same kernel, what's yours? Mine is ae0679f154a6d5d5d3655afe84d34e84

As of the debug rom, I don't really know. What I know is that the Giant knife to biggoron
sword code provided by Zeth worked, but since that is about RAM addresses I guess even
a corrupted dump could do the job...

Reported by alessandroporcelli91 on 2013-06-06 22:02:31

richard42 avatar Aug 14 '15 05:08 richard42

Ok, installed the ppa version and glide64mk2. Now, it is no longer crashing. Instead
of crashing, graphics layers get lost into nothingness. This is what really happens,
in the other version I had the results were a plain crash but here comes the true stuff.
The flashing heart and the clock don't show just like in Rice, but as you can see lots
of stuff is missing!

Reported by alessandroporcelli91 on 2013-06-06 23:06:27


- _Attachment: bugged.png
![bugged.png](https://storage.googleapis.com/google-code-attachments/mupen64plus/issue-551/comment-4/bugged.png)_

richard42 avatar Aug 14 '15 05:08 richard42

Ok, installed the ppa version and glide64mk2. Now, it is no longer crashing. Instead
of crashing, graphics layers get lost into nothingness. This is what really happens,
in the other version I had the results were a plain crash but here comes the true stuff.
The flashing heart and the clock don't show just like in Rice, but as you can see lots
of stuff is missing!

Reported by alessandroporcelli91 on 2013-06-06 23:06:39


- _Attachment: bugged.png
![bugged.png](https://storage.googleapis.com/google-code-attachments/mupen64plus/issue-551/comment-5/bugged.png)_

richard42 avatar Aug 14 '15 05:08 richard42

Can you please provide a savestate near the problematic situation were the missing world/objects
problem happens.

The md5 sum of the glide64mk2 doesn't really depend on the kernel it is running on.
It depends on the compiler, the compiler flags, the used external resources (static
libs, headers, ...) and the actual source code. But you can find the hash sum of the
plugin inside the deb. And it will also be installed in /var/lib/dpkg/info/mupen64plus-video-glide64mk2:amd64.md5sums
-- this file tells me that I would expect the md5sum (only the .so) 712556283754e4819eee3a90a3a29af4
for the Ubuntu 12.04 build of mupen64plus-video-glide64mk2 version 2.0~rc2.

ScreenUpdateSetting is a Rice setting and has nothing to do with Glide64Mk2.

Please don't use cheats when reporting bugs. When you've used one, please disable cheats,
reset the game and only use a savegame (not a savestate) to go back to the problematic
area (aka. load ingame and go to the area which triggered the problem).

Why do you say "ppa version _AND_ glide64mk2". You should have used the glide64mk2
from the  ppa for this test and not your self compiled one.

Reported by [email protected] on 2013-06-07 07:17:17

richard42 avatar Aug 14 '15 05:08 richard42

Attached. Sorry, I said ppa version and glide64mk2 because it didn't install immediately
among the core library, nothing really important. The md5 matches.

I'll try to describe the best way I can what happens and where: from that very position,
pressing Z to move the camera is enough to cause the issue. Also, entering the old
granny's room causes the issue. Exiting the stock pot inn and entering back from the
main entrance causes the issue aswell.

 Once the issue is triggered, pausing and unpausing solves it. If you try to reproduce
any of the three things after they have already happened in a game session, they won't
happen. Reloading the save state and trying again to trigger the issue does not work,
you have to quit mupen64plus in order to reproduce again. No cheats have been loaded.

The same instance happens in the other savestate, the one of the OOT debug ROM. The
different md5sum there was because of a patch I was using.

Reported by alessandroporcelli91 on 2013-06-09 14:04:13


- _Attachment: [Legend of Zelda, The - Majora's Mask (U) [!].st1](https://storage.googleapis.com/google-code-attachments/mupen64plus/issue-551/comment-7/Legend of Zelda, The - Majora's Mask %28U%29 [!].st1)_

richard42 avatar Aug 14 '15 05:08 richard42

I have real big problems to recreate the problem. Sorry

Maybe someone else here can check it out.

Reported by [email protected] on 2013-06-14 14:11:43

richard42 avatar Aug 14 '15 05:08 richard42

I will wipe out my drive and try with a fresh new install of the OS, maybe it is some
strange installation issue with my machine. At this point I'm fairly convinced this
is my issue and mine alone.

Reported by alessandroporcelli91 on 2013-06-15 00:45:14

richard42 avatar Aug 14 '15 05:08 richard42

This could also be graphics driver related

Reported by [email protected] on 2013-06-15 05:25:04

richard42 avatar Aug 14 '15 05:08 richard42

The Majora's Mask crash is easily reproducible by starting the game and letting the
demo play out. Just after the camera pans past Anju in the inn, mupen crashes.

Windows 7, Radeon HD 6850, most recent versions of everything. Default settings. CRC
matches the OP's.

Occurs on Glide64mk2 but not Rice. It'd be preferable to use Glide for this game because
it handles everything else beautifully.

Reported by CloningDonor on 2013-09-10 07:22:12

richard42 avatar Aug 14 '15 05:08 richard42

to clarify, "most recent version" as in whatever the latest binary release is (2.0,
july 4) because screw compiling things on Windows.

on that note, I compiled the Mercurial version on Ubuntu and it works fine, so this
issue may be already fixed. I might test some more later.

Reported by CloningDonor on 2013-09-13 10:01:15

richard42 avatar Aug 14 '15 05:08 richard42

Please test the mxe builds on windows when you want to *really* test the newest version
on windows. https://bitbucket.org/ecsv/mupen64plus-mxe-daily

Reported by [email protected] on 2013-09-13 10:07:21

richard42 avatar Aug 14 '15 05:08 richard42

Sorry, I should've been more clear to begin with.

It works. I guess this issue can be closed so long as the OP doesn't object. Hope to
see a release soon.

Reported by CloningDonor on 2013-09-14 07:26:15

richard42 avatar Aug 14 '15 05:08 richard42

Just rebuilt mupen64plus on Debian 7 (latest from mercurial repo). The issue persists.
But since not a person managed to reproduce it I may conclude that's my GPU's issue.
It's just very strange though...

Reported by alessandroporcelli91 on 2013-09-18 16:25:05

richard42 avatar Aug 14 '15 05:08 richard42

Could be related to this issue: https://github.com/mupen64plus/mupen64plus-video-glide64mk2/issues/30

Papermanzero avatar Oct 06 '15 11:10 Papermanzero