Critical Error (help)

Help and support regarding PR:BF2 installation and in-game issues
Layzdz
Posts: 4
Joined: 2020-07-29 04:27

Critical Error (help)

Post by Layzdz »

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2020-07-29T14:23:15

Critical Error: An unhandled exception has occured. Details are as follows:

Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.

Further details can be found in the following file:

[url]C:\Program Files (x86)\Project Reality\Project Reality BF2\mods\pr\bin\PRLauncher.log[/url]

Please report this error to the Project Reality Team, and include the log file in your report.

[url=https://www.realitymod.com/forum/forumdisplay.php?f=27]Visit Support Forum[/url]

 > System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.Runtime.InteropServices.COMException: The operation completed successfully. (Exception from HRESULT: 0x80070000)
   at System.Windows.Media.ColorContext.FromRawBytes(Byte[] data, Int32 dataLength, Boolean dontThrowException)
   at System.Windows.Media.ColorContext.FromStream(Stream stm, String filename)
   at System.Windows.Media.ColorContext..ctor(PixelFormat pixelFormat)
   at System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
   at System.Windows.Media.Imaging.BitmapFrameDecode.FinalizeCreation()
   at System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames)
   at System.Windows.Media.Imaging.BitmapDecoder.get_Frames()
   at System.Windows.Media.Imaging.BitmapFrame.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy)
   at System.Windows.Media.ImageSourceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at -.n.InitializeComponent()
   at -.n..ctor()
   at -.f.d.a(Object a, EventArgs b)
   at PRLauncher.WPF.ViewModel.Pages.LoginPageViewModel.n.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Can someone help me? I tried reinstall it 3x but its still the same error
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Re: Critical Error (help)

Post by Mats391 »

What operating system are you using?
Image

Mineral: TIL that Wire-guided missiles actually use wire
Layzdz
Posts: 4
Joined: 2020-07-29 04:27

Re: Critical Error (help)

Post by Layzdz »

i use 64 bit
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Re: Critical Error (help)

Post by Mats391 »

Layzdz wrote:i use 64 bit
Windows XP, 7, 8, 10???
Image

Mineral: TIL that Wire-guided missiles actually use wire
Layzdz
Posts: 4
Joined: 2020-07-29 04:27

Re: Critical Error (help)

Post by Layzdz »

windows 10
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Re: Critical Error (help)

Post by Mats391 »

Weird. Try reinstalling .net Framework 4.6 or 4.7.2. Never seen this error on Win10, only on Win XP
Image

Mineral: TIL that Wire-guided missiles actually use wire
Layzdz
Posts: 4
Joined: 2020-07-29 04:27

Re: Critical Error (help)

Post by Layzdz »

it doesn't work reinstalling .net framework it still has the same error
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Critical Error (help)

Post by AlonTavor »

Open "Color Management" in windows, go to advanced, and set everything to default.
Sd_Reis
Posts: 6
Joined: 2019-06-28 11:46

Re: Critical Error (help)

Post by Sd_Reis »

AlonTavor wrote:Open "Color Management" in windows, go to advanced, and set everything to default.
Mine has the same error.
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Critical Error (help)

Post by AlonTavor »

Go to Color Management -> Advanced and take a screenshot
Sd_Reis
Posts: 6
Joined: 2019-06-28 11:46

Re: Critical Error (help)

Post by Sd_Reis »

AlonTavor wrote:Go to Color Management -> Advanced and take a screenshot
sorry but I didn't understand, is it for me to take a picture of the error ??
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Critical Error (help)

Post by AlonTavor »

in Windows click start, type "Color management", click advanced, take a screenshot and show me
Sd_Reis
Posts: 6
Joined: 2019-06-28 11:46

Re: Critical Error (help)

Post by Sd_Reis »

AlonTavor wrote:in Windows click start, type "Color management", click advanced, take a screenshot and show me
I couldn't put the image anymore put it in #chetd Discord support
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Critical Error (help)

Post by AlonTavor »

I don't see it. use https://imgur.com/
ArteSS
Posts: 1
Joined: 2021-06-05 16:53

???????? ? ???????? ????. (?????? 1.6.)

Post by ArteSS »

Image

??? ??????? ???? ??? ???????? ?????? ?????? ??????.
?????? ??? ?????????? ??? ?????? ?????????
superman118cz
Posts: 1
Joined: 2021-06-06 16:28

Re: Critical Error (help)

Post by superman118cz »

Hello i also got this error after i redownload game 3-4 times.

here log:

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2021-06-06T18:09:13

Critical Error: An unhandled exception has occured. Details are as follows:

Zadání hodnoty v System.Windows.Baml2006.TypeConverterMarkupExtension vyvolalo výjimku.

Further details can be found in the following file:

[url]C:\Program Files (x86)\Project Reality\Project Reality BF2\mods\pr\bin\PRLauncher.log[/url]

Please report this error to the Project Reality Team, and include the log file in your report.

[url=https://www.realitymod.com/forum/forumdisplay.php?f=27]Visit Support Forum[/url]

 > System.Windows.Markup.XamlParseException: Zadání hodnoty v System.Windows.Baml2006.TypeConverterMarkupExtension vyvolalo výjimku. ---> System.OverflowException: Data zobrazení b?hem zpracování p?etekla. ---> System.ArithmeticException: P?ete?ení nebo podte?ení v aritmetické operaci.
   --- Konec trasování zásobníku pro vnit?ní výjimku ---
   v System.Windows.Media.Imaging.ColorConvertedBitmap.FinalizeCreation()
   v System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
   v System.Windows.Media.Imaging.BitmapFrameDecode.FinalizeCreation()
   v System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames)
   v System.Windows.Media.Imaging.BitmapDecoder.get_Frames()
   v System.Windows.Media.Imaging.BitmapFrame.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy)
   v System.Windows.Media.ImageSourceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   v MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
   --- Konec trasování zásobníku pro vnit?ní výjimku ---
   v System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   v System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   v System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   v System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   v -.p.InitializeComponent()
   v -.p..ctor()
   v -.f.d.a(Object a, EventArgs b)
   v PRLauncher.WPF.ViewModel.Pages.LoginPageViewModel.OnOffline(Object a)
   v Reality.Utils.WPF.RelayCommand.Execute(Object )
   v MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   v System.Windows.Documents.Hyperlink.OnClick()
   v System.Windows.Documents.Hyperlink.DoUserInitiatedNavigation(Object sender)
   v System.Windows.Documents.Hyperlink.OnMouseLeftButtonUp(Object sender, MouseButtonEventArgs e)
   v System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   v System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   v System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   v System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   v System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   v System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   v System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   v System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   v System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   v System.Windows.ContentElement.RaiseTrustedEvent(RoutedEventArgs args)
   v System.Windows.Input.InputManager.ProcessStagingArea()
   v System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   v System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   v System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   v System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   v System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   v MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   v MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   v System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   v System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 >> System.OverflowException: Data zobrazení b?hem zpracování p?etekla. ---> System.ArithmeticException: P?ete?ení nebo podte?ení v aritmetické operaci.
   --- Konec trasování zásobníku pro vnit?ní výjimku ---
   v System.Windows.Media.Imaging.ColorConvertedBitmap.FinalizeCreation()
   v System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
   v System.Windows.Media.Imaging.BitmapFrameDecode.FinalizeCreation()
   v System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames)
   v System.Windows.Media.Imaging.BitmapDecoder.get_Frames()
   v System.Windows.Media.Imaging.BitmapFrame.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy)
   v System.Windows.Media.ImageSourceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   v MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
 >>> System.ArithmeticException: P?ete?ení nebo podte?ení v aritmetické operaci.
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Critical Error (help)

Post by AlonTavor »

Go to Color management in Windows, click advanced, and take a screenshot.
Twitchy115
Posts: 10
Joined: 2021-03-14 05:01

Re: Critical Error (help)

Post by Twitchy115 »

User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Re: Critical Error (help)

Post by Mats391 »

Please get the program proc dump (see here). Then use it like this

Code: Select all

procdump.exe -ma -e 1 -f "TypeConverter" -w PRLauncher.exe
and launch PR. With that command procdump will wait for a process called PRLauncher.exe and then monitor it for exceptions that include TypeConverter. It should create a .dmp file next to the procdump.exe once you crash. We need that file to further investigate the issue
Image

Mineral: TIL that Wire-guided missiles actually use wire
Twitchy115
Posts: 10
Joined: 2021-03-14 05:01

Re: Critical Error (help)

Post by Twitchy115 »

Are you sure I need this program? I'm not crashing to desktop, it just throws an unhandled exception.

Also, following the instructions given, the prodump program just launches, closes, then does nothing. Doesn't close PR, doesn't create a dump file, nada.
Last edited by Twitchy115 on 2021-09-05 18:29, edited 2 times in total.
Post Reply

Return to “PR:BF2 Support”