Crash when logging in

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
Twitchy115
Posts: 10
Joined: 2021-03-14 05:01

Crash when logging in

Post by Twitchy115 »

I receive this log whenever I try logging in to PR

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2021-03-16T14:13:46

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.OverflowException: The image data generated an overflow during processing. ---> System.ArithmeticException: Overflow or underflow in the arithmetic operation.
   --- End of inner exception stack trace ---
   at System.Windows.Media.Imaging.ColorConvertedBitmap.FinalizeCreation()
   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.o.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)
Twitchy115
Posts: 10
Joined: 2021-03-14 05:01

Re: Crash when logging in

Post by Twitchy115 »

Seriously? Not one person can help?
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Crash when logging in

Post by AlonTavor »

Twitchy115
Posts: 10
Joined: 2021-03-14 05:01

Re: Crash when logging in

Post by Twitchy115 »

No luck, still throwing the error when I try to log in
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Re: Crash when logging in

Post by Mats391 »

Please try switching the Device Profile to sRGB IEC61966-2.1 instead of the virtual profile.
Image

Please let us know if this solution works for you and is suitable. We will further investigate how to resolve this issue without changing profile.
Image

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

Re: Crash when logging in

Post by Twitchy115 »

Yup, so far its working. Have gotten past the steam login splash, so so far so good.
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Re: Crash when logging in

Post by Mats391 »

Twitchy115 wrote:Yup, so far its working. Have gotten past the steam login splash, so so far so good.
Glad to hear that! We also found the cause for this issue and will fix it in the next update. Until then you will have to make sure your color profile is set as shown above.
Image

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

Re: Crash when logging in

Post by Twitchy115 »

Will do, thank you for hte help
Post Reply

Return to “PR:BF2 Support”