Skip to content

Play Movie dialog crashes with OverflowException: "unable to convert from decimal..." when a MAME movie is present #4197

@danylopez123

Description

@danylopez123

Summary

So i've been recording my inputs using a MAME game but then when i try to play it back, throws 7 eceptions in a row then the file wont load.

I'll say this: Done with BizHawk 2.10 with no modified dll files from the folder + with the prereq installer (2.4.8_1) already done.

Repro

  1. Record your inputs in any MAME game then stop
  2. Try loading it from Play Movie
  3. Throws an eception, if you try to close it, it will open 6 more times

Output

[Also im only posting the 1st eception error, if i put the others they might be duplicated and could extend too much this]

System.OverflowException: unable to convert from decimal without loss of precision
   en BizHawk.Common.NumberExtensions.NumberExtensions.ConvertToF64(Decimal m) en /_/src/BizHawk.Common/Extensions/NumberExtensions.cs:línea 75
   en BizHawk.Client.Common.BasicMovieInfo.get_FrameRate() en /_/src/BizHawk.Client.Common/movie/BasicMovieInfo.cs:línea 78
   en BizHawk.Client.Common.BasicMovieInfo.get_TimeLength() en /_/src/BizHawk.Client.Common/movie/BasicMovieInfo.cs:línea 59
   en BizHawk.Client.EmuHawk.PlayMovie.MovieView_QueryItemText(Object sender, RetrieveVirtualItemEventArgs e) en /_/src/BizHawk.Client.EmuHawk/movie/PlayMovie.cs:línea 90
   en System.Windows.Forms.ListView.OnRetrieveVirtualItem(RetrieveVirtualItemEventArgs e)
   en System.Windows.Forms.ListView.ListViewNativeItemCollection.get_Item(Int32 displayIndex)
   en System.Windows.Forms.ListView.ListViewItemCollection.get_Item(Int32 index)
   en BizHawk.Client.EmuHawk.PlayMovie.HighlightMovie(Int32 index) en /_/src/BizHawk.Client.EmuHawk/movie/PlayMovie.cs:línea 250
   en BizHawk.Client.EmuHawk.PlayMovie.PreHighlightMovie() en /_/src/BizHawk.Client.EmuHawk/movie/PlayMovie.cs:línea 211
   en BizHawk.Client.EmuHawk.PlayMovie.PlayMovie_Load(Object sender, EventArgs e) en /_/src/BizHawk.Client.EmuHawk/movie/PlayMovie.cs:línea 79
   en System.Windows.Forms.Form.OnLoad(EventArgs e)
   en System.Windows.Forms.Form.OnCreateControl()
   en System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   en System.Windows.Forms.Control.CreateControl()
   en System.Windows.Forms.Control.WmShowWindow(Message& m)
   en System.Windows.Forms.Control.WndProc(Message& m)
   en System.Windows.Forms.Form.WmShowWindow(Message& m)
   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Host env.

  • BizHawk 2.10 (No DEV build); Win10 Pro 22H2; NVIDIA

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions