Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
at some point in the near future we're going to have an overhauled genesis savestate system done, so you can take comfort that this will be fixed.
Editor
Joined: 3/31/2010
Posts: 1466
Location: Not playing Puyo Tetris
Beed28, that is a known issue. I thought I had a bug report for it on the tracker.
When TAS does Quake 1, SDA will declare war. The Prince doth arrive he doth please.
Former player
Joined: 11/25/2009
Posts: 77
Nisto wrote:
zeromus wrote:
can you possibly get a savestate (in mednafen) after your last button press before it hangs? it shouldnt take many tries, right? The goal is to get a savestate that's doomed to hang, but before the screen stops fading out.
I was on the verge of giving up after trying to get a save state for nearly an entire hour, but at last I managed!! It felt much harder to reproduce now because making save states directly after loading (confirming) seemed to interfere with the natural order, so to speak. Anyway, I sure hope this will be of some use. Memory Card: Resident Evil 2 (USA) (Disc 1).f671973b24cf4387bc42a59af197f134.0.mcr Save state: Resident Evil 2 (USA) (Disc 1).f671973b24cf4387bc42a59af197f134.mc0
Has this been reported to the Mednafen developers yet? Because I've noticed that if you mash a bunch of buttons within a small window of time after loading my provided save state, it no longer hangs. Maybe this workaround could be helpful for debugging? Also, just for the record, I have no idea if this could be a bug in the game rather than the emulation. But I hope someone can look into it regardless.
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
Yes. It's been logged but it is not considered high priority and isn't being worked on. Sorry.
Experienced player (633)
Joined: 11/23/2013
Posts: 2208
Location: Guatemala
I have an issue with an unlicensed game called Pokémon Adventure, it's for the GBC. The lag counter isn't detecting any lag frames when playing the game, something that doesn't happen in VBA, and the game lags a lot. I'm using the latest BizHawk.
Here, my YouTube channel: http://www.youtube.com/user/dekutony
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
Different emulators have a different sense of what constitutes a lag frame. If there's a difference, we should write it somewhere on the wiki.
Fortranm
He/Him
Editor, Experienced player (781)
Joined: 10/19/2013
Posts: 1116
I tried to run Donkey Kong with fba_libretro.dll. The game runs fine under RetroArch when the content is named dkong.zip, but the entire screen is glitched under Bizhawk. How do I configure the controller? There is no options for Arcade games under config/controllers.
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
1. Looks like there's a bug with donkey kong indeed. Fixed with https://github.com/TASVideos/BizHawk/commit/4766380ecdc43944d812cd12f15ee9a299528873 2. Yes there are. Try harder.
MarbleousDave
He/Him
Player (12)
Joined: 9/12/2009
Posts: 1555
Tetris 2 (Game Boy) has an emulation bug where the controls malfunction.
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
works fine for me. youre going to have to be more specific. This is an exceedingly unlikely bug report.
Lil_Gecko
He/Him
Player (94)
Joined: 4/7/2011
Posts: 520
1) Since no one reported it I think it's an error on my hand but still. When I go to Virtual Pad for Octoshock, if I select somewhere in the upper left corner (0<X<128 and 0<Y<128) everything works fine but then if I move my cursor above any other part (upper right and bottom) I got an error : "Value 192.398024937888 isn't valid for 'Value'.'Value' must be between 'Minimum' and 'Maximum'" However if I enter a number for X and Y manually it works fine as long as I don't put the cursor above said parts. 2) When I open a movie, choose "Read+Write" and go to my last savestate, the movie records as if I was on Disc 1 no matter which Disc I'm currently in. Open and Close Disc Control fixes it. But if I forgot to do it, I record with Disc 1 in the inputs. 3) Would it be possible to make an option for lua scripts like there was on psxjin saying "lua script has gone crazy, would you like to kill it" ? I often forgot to write emu.frameadvance() in the loop (my fault I know) and I have to force-close Bizhawk and restart it instead of being able to stop the script. Thanks !
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
each of these are worth putting on the bug tracker
Skilled player (1707)
Joined: 9/17/2009
Posts: 4952
Location: ̶C̶a̶n̶a̶d̶a̶ "Kanatah"
Not sure if it is just me but on BizHawk 1.11.6 I loaded this watch file
SystemID GBA
0328E0	w	h	0	Combined WRAM	
032928	w	h	0	Combined WRAM	
032970	w	h	0	Combined WRAM	
0329B8	w	h	0	Combined WRAM	
032A00	w	h	0	Combined WRAM	
0	S	_	1		
01E610	w	h	0	Combined WRAM	
01E658	w	h	0	Combined WRAM	
01E6A0	w	h	0	Combined WRAM	
then pressed control R to reset the core. It then crashed and gave me this error:
System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at BizHawk.Client.Common.WatchList.<>c__DisplayClass4.<RefreshDomains>b__3(Watch watch)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList`1 list, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
   at BizHawk.Client.Common.WatchList.RefreshDomains(IMemoryDomains core)
   at BizHawk.Client.EmuHawk.RamWatch.Restart()
   at BizHawk.Client.EmuHawk.ToolManager.Restart()
   at BizHawk.Client.EmuHawk.MainForm.LoadRom(String path, LoadRomArgs args)
   at BizHawk.Client.EmuHawk.MainForm.RebootCore()
   at BizHawk.Client.EmuHawk.MainForm.CheckHotkey(String trigger)
   at BizHawk.Client.EmuHawk.MainForm.<ProcessInput>b__1d(Boolean current, String trigger)
   at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
   at BizHawk.Client.EmuHawk.MainForm.ProcessInput()
   at BizHawk.Client.EmuHawk.MainForm.ProgramRunLoop()
   at BizHawk.Client.EmuHawk.Program.SubMain(String[] args)
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at BizHawk.Client.Common.WatchList.<>c__DisplayClass4.<RefreshDomains>b__3(Watch watch)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<---
I narrowed it down, and it seems to do this whenever I use a separator for the watch file. This is the mgba core, if it's relevant.
keylie
He/Him
Editor, Emulator Coder, Expert player (2829)
Joined: 3/17/2013
Posts: 391
utf8 literals are messed up in lua on recent versions of Bizhawk. I tested the following script in Bizhawk 1.7.2, 1.11.1, 1.11.4 and 1.11.6, written inside a utf8 encoded text file:
local ff = assert(io.open("test.txt", "wb"))
a = "び"
print(a)
ff:write(a, "\n")
ff:close()
In the three most recent versions, '?' is printed on the console and in the file. In version 1.7.2, 'び' is printed on the console and 'び' in the text file.
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
keylie
He/Him
Editor, Emulator Coder, Expert player (2829)
Joined: 3/17/2013
Posts: 391
Thanks! That was fast.
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
I cursed loudly and opened the source code so I could curse more specifically. But then I realized it was a regression so it should be easy to fix, and since I had the source already open, I should just do that, and save my cursing for the next problem involving japanese text which isn't a regression.
Experienced player (601)
Joined: 10/23/2004
Posts: 706
I tried using event.onloadstate in the N64 core of 1.11.6 and although the function description says "Fires after a state is loaded." However, when using the function to read the value of a memory address, I'm receiving the last value for the memory address before the state was loaded.
Current Project: - Mario Kart 64
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
what kind of memory address? Does this condition last only one frame or persist longer? Can you easily verify on another core? The code is not very complicated, it clearly loads before calling the event.
Experienced player (601)
Joined: 10/23/2004
Posts: 706
It's a float and persists indefinitely. I'll try to upload a simplified script example.
Current Project: - Mario Kart 64
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
check to make sure the memory isnt completely frozen in the hex editor. The only way I can think of that an indefinitely persisting frozen memory can happen is by the memorydomain getting the pointer switched without it knowing which would make the whole memory domain pointing to non-updated stale stuff.
JorWat25
He/Him
Player (18)
Joined: 1/15/2015
Posts: 79
Location: United Kingdom
Really minor problem I have, but whenever I open up Ram Watch, it's always on top of the main window, and the only way to get it to go under is to unselect 'Floating Window', then reselect it. 'Always On Top' remains unselected throughout the whole thing. Is this a bug?
ehw
Other
Joined: 4/22/2016
Posts: 6
Here's a bug I seem to be getting with one of the latest commits (55bd2194705c7a1dfa46a5eb30bffc78054fbff7 I think). I don't know the precise commit that caused this problem, but it seems to have been sometime after the commit that fixed the Genesis CDL crashing bug. When I go to open up the Hex Editor while running a Megadrive game, Bizhawk crashes with the following message: MOD EDIT: http://pastebin.com/ec0X4fc0 please pastebin long error messages in the future, thank you. <3 samsara Upon clicking Continue, this error message appears.
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: addr
   at BizHawk.Emulation.Common.MemoryDomainIntPtrSwap16.PeekByte(Int64 addr)
   at BizHawk.Client.EmuHawk.HexEditor.MakeValue(Int32 dataSize, Int64 address)
   at BizHawk.Client.EmuHawk.HexEditor.GenerateMemoryViewString(Boolean forWindow)
   at BizHawk.Client.EmuHawk.HexEditor.UpdateValues()
   at BizHawk.Client.EmuHawk.ToolManager.UpdateAfter()
   at BizHawk.Client.EmuHawk.ToolManager.UpdateToolsAfter(Boolean fromLua)
   at BizHawk.Client.EmuHawk.MainForm.StepRunLoop_Core(Boolean force)
   at BizHawk.Client.EmuHawk.MainForm.ProgramRunLoop()
   at BizHawk.Client.EmuHawk.Program.SubMain(String[] args)
Does anyone else have this problem? This seems to occur regardless if CDL is enabled or not.
ehw
Other
Joined: 4/22/2016
Posts: 6
Ack, sorry for the double post. Couldn't edit the previous one because samsara got to it (sorry about that). But it looks like commit https://github.com/TASVideos/BizHawk/commit/111648cf98fe533bbd7a8d5d14afe475bc40878f might be culprit. The feature works fine before this commit.
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
fixed.