Skip to content

Crash when opening xml file on MacOS via Crossover #72

Description

@artemsmikh

Hi Kromtec!
Despite having other legends viewers which run natively on MacOS, I'm still trying to use LegendsViewer any time I play DF. Its interface and features are still much better than in anything else.

Unfortunately, when the M1 Macs came around, it became no longer possible to install Windows as a virtual machine via VirtualBOX or run it natively via Bootcamp. The only possibility is to use emulating software like Wine (or, a more user-friendly alternative, Crossover).

So, this might be not your problem, since it's MacOS, but just in case...

When I load any xml file, after loading all the events, etc, at the final step it crashes witn this error:

Screenshot 2022-12-20 at 5 23 14 PM

The full stacktrace is here:

See the end of this message for details on invoking \njust-in-time (JIT) debugging instead of this dialog box.\n\n************** Exception Text **************\nSystem.IO.DirectoryNotFoundException: Could not find a part of the path "C:\var\folders\cd\q6fy12c9799bcjz70xlv0c8m0000gn\T\tmp321813f5.tmp".
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool,System.IO.FileOptions)
  at System.IO.Path.GetTempFileName () [0x00072] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at LegendsViewer.Controls.HTML.HtmlPrinter.BitmapToHtml (System.Drawing.Bitmap image) [0x0009a] in <73f9ffada081438082e627ca4c7d69f0>:0 
  at LegendsViewer.Controls.HTML.WorldStatsPrinter.PrintMap () [0x0011c] in <73f9ffada081438082e627ca4c7d69f0>:0 
  at LegendsViewer.Controls.HTML.WorldStatsPrinter.PrintWorldInfo () [0x00059] in <73f9ffada081438082e627ca4c7d69f0>:0 
  at LegendsViewer.Controls.HTML.WorldStatsPrinter.Print () [0x00011] in <73f9ffada081438082e627ca4c7d69f0>:0 
  at LegendsViewer.Controls.HTML.HtmlPrinter.GetHtmlPage () [0x0010d] in <73f9ffada081438082e627ca4c7d69f0>:0 
  at LegendsViewer.Controls.HTML.HtmlControl.GetControl () [0x0007e] in <73f9ffada081438082e627ca4c7d69f0>:0 
  at LegendsViewer.Controls.DwarfTabPage.LoadPageControl () [0x00022] in <73f9ffada081438082e627ca4c7d69f0>:0 
  at LegendsViewer.Controls.DwarfTabPage..ctor (LegendsViewer.Controls.PageControl pageControl) [0x00023] in <73f9ffada081438082e627ca4c7d69f0>:0 
  at (wrapper remoting-invoke-with-check) LegendsViewer.Controls.DwarfTabPage..ctor(LegendsViewer.Controls.PageControl)
  at LegendsViewer.Controls.DwarfTabControl.Navigate (LegendsViewer.Controls.HTML.ControlOption controlOption, System.Object navigateObject) [0x0007c] in <73f9ffada081438082e627ca4c7d69f0>:0 
  at (wrapper remoting-invoke-with-check) LegendsViewer.Controls.DwarfTabControl.Navigate(LegendsViewer.Controls.HTML.ControlOption,object)
  at LegendsViewer.FrmLegendsViewer.AfterLoad (LegendsViewer.Legends.World loadedWorld) [0x000bb] in <73f9ffada081438082e627ca4c7d69f0>:0 
  at LegendsViewer.FrmLegendsViewer.<.ctor>b__15_0 (System.Object sender, LegendsViewer.Controls.EventArgs`1[T] args) [0x00007] in <73f9ffada081438082e627ca4c7d69f0>:0 
  at LegendsViewer.FileLoader.BackgroundWorkerOnRunWorkerCompleted (System.Object sender, System.ComponentModel.RunWorkerCompletedEventArgs e) [0x0007a] in <73f9ffada081438082e627ca4c7d69f0>:0 
  at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted (System.ComponentModel.RunWorkerCompletedEventArgs e) [0x0000a] in <55ce033b43204763a015d41564e2639e>:0 
  at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted (System.Object arg) [0x0000e] in <55ce033b43204763a015d41564e2639e>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 

\n************** Loaded Assemblies **************\nmscorlib\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-7.2.0/lib/mono/4.5/mscorlib.dll\n----------------------------------------\nLegendsViewer\n    Assembly Version: 1.20.8.375\n    Win32 Version: 1.20.08.375\n    CodeBase: file:///C:/LegendsViewer/LegendsViewer.exe\n----------------------------------------\nSystem.Core\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-7.2.0/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll\n----------------------------------------\nSystem.Windows.Forms\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-7.2.0/lib/mono/gac/System.Windows.Forms/4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\n----------------------------------------\nSystem\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-7.2.0/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll\n----------------------------------------\nSystem.Drawing\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-7.2.0/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\n----------------------------------------\nAccessibility\n    Assembly Version: 4.0.0.0\n    Win32 Version: \n    CodeBase: file:///Z:/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-7.2.0/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll\n----------------------------------------\nSystem.Configuration\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-7.2.0/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll\n----------------------------------------\nObjectListView\n    Assembly Version: 2.9.1.1072\n    Win32 Version: 2.9.1.0\n    CodeBase: file:///C:/LegendsViewer/ObjectListView.dll\n----------------------------------------\nMono.Security\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.0.0.0\n    CodeBase: file:///Z:/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-7.2.0/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll\n----------------------------------------\nSevenZipSharp\n    Assembly Version: 0.64.3890.29348\n    Win32 Version: 0.64.3890.29348\n    CodeBase: file:///C:/LegendsViewer/SevenZipSharp.dll\n----------------------------------------\nI18N\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.0.0.0\n    CodeBase: file:///Z:/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-7.2.0/lib/mono/gac/I18N/4.0.0.0__0738eb9f132ed756/I18N.dll\n----------------------------------------\nI18N.West\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.0.0.0\n    CodeBase: file:///Z:/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-7.2.0/lib/mono/gac/I18N.West/4.0.0.0__0738eb9f132ed756/I18N.West.dll\n----------------------------------------\nSystem.Windows.Forms.DataVisualization\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.0.0.0\n    CodeBase: file:///Z:/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-7.2.0/lib/mono/gac/System.Windows.Forms.DataVisualization/4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll\n----------------------------------------\nCommonMark\n    Assembly Version: 0.1.0.0\n    Win32 Version: 0.1.0.0\n    CodeBase: file:///C:/LegendsViewer/CommonMark.dll\n----------------------------------------\nSystem.Xml\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-7.2.0/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll\n----------------------------------------\nJdenticon\n    Assembly Version: 2.2.1.0\n    Win32 Version: 2.2.1.0\n    CodeBase: file:///C:/LegendsViewer/Jdenticon.dll\n----------------------------------------\nJdenticon.Gdi\n    Assembly Version: 2.2.1.0\n    Win32 Version: 2.2.1.0\n    CodeBase: file:///C:/LegendsViewer/Jdenticon.Gdi.dll\n----------------------------------------\n\n************** JIT Debugging **************\n

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions