Page 1 of 1

Game constantly crashing

Posted: 2018-02-26 15:22
by TheSunGod
Hello, after the latest patch (being released this weekend, i believe) the game keeps closing each time i start it, before i even see the main menu screen (after i see the short video with PR logo though), there is no bug or crash report, nothing, the only thing that pops up is the very well-known window "PRBF2 has closed, cleaning resources".
I've tried reinstalling and redownloading the game several times, as well as wiping profile files in the documents folder, nothing helped.
Here's the Support info from the launcher, if that may help.

Code: Select all

System Information
------------------
  Operating System: Microsoft Windows 7 Ultimate  (6.1.7601)
      Architecture: 64-bit
   Current Culture: Polish (Poland)
       Motherboard: MSI Z77A-G45 (MS-7752)
         Processor: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (Physical: 4, Logical: 8)
            Memory: 16,00 GB
      DIMM Modules: ChannelA-DIMM0: 4,00 GB @ 1333 MHz
                    ChannelA-DIMM1: 4,00 GB @ 1333 MHz
                    ChannelB-DIMM0: 4,00 GB @ 1333 MHz
                    ChannelB-DIMM1: 4,00 GB @ 1333 MHz
         Page File: 15,94 GB
    .NET Framework: 4.6, Runtime: 4.0.30319.42000

Display Information
-------------------
 Display Device(s): Rodzajowy monitor PnP on NVIDIA GeForce GTX 1060 6GB
   Display Mode(s): 1920 x 1080 (32 bit) @ 60 Hz
    Driver Version: 22.21.13.8205 (382.05)
    Display Memory: 4,00 GB
     Multisampling: 2, 4, 8
               DPI: 96 (100%)

Audio Information
-----------------
  Primary Playback: G?o?niki (2 — Logitech G930 Gam
 Primary Recording: Mikrofon (2 — Logitech G930 Gam
  Open AL Renderer: Software
               EAX: True
           EAX 1.0: False
           EAX 2.0: True
           EAX 3.0: False
           EAX 4.0: False
           EAX 5.0: False
             X-RAM: False

Disk Information
----------------
      Install Path: D:\Gry\PRBF2
                    Free: 121,64 GB, Total: 736,20 GB, FS: NTFS, SSD: False
          Mod Path: D:\Gry\PRBF2\mods\pr
                    Free: 121,64 GB, Total: 736,20 GB, FS: NTFS, SSD: False
     Profiles Path: C:\Users\Marcell\Documents\ProjectReality\Profiles
                    Free: 23,92 GB, Total: 195,21 GB, FS: NTFS, SSD: False
    Update DL Path: C:\Users\Marcell\AppData\Local\Project Reality\Project Reality BF2\Downloads
                    Free: 23,92 GB, Total: 195,21 GB, FS: NTFS, SSD: False
   Update Log Path: C:\Users\Marcell\AppData\Local\Project Reality\Project Reality BF2\UpdateLogs
                    Free: 23,92 GB, Total: 195,21 GB, FS: NTFS, SSD: False

Game Information
----------------
    Installed Mods: pr
       Current Mod: pr
           Version: Standalone - 1.0
        PR Version: 1.5.3.1
          Language: english
   Debug Available: False
     Large Address: True
Supported Hardware: None

Profile Information
-------------------
      Profile 0001: TheSunGod
              Type: Online
 Last Used Profile: True
        View Intro: True
        Fullscreen: True
      Display Mode: 1920x1080@60Hz
Display Mode Valid: True
   Graphics Scheme: Custom
     Multisampling: Off
             VSync: False
            NoLods: False
   Terrain Quality: Low
   Effects Quality: High
  Geometry Quality: High
   Texture Quality: High
  Lighting Quality: High
   Dynamic Shadows: High
    Dynamic Lights: High
 Texture Filtering: High
    Audio Provider: Software
    Provider Valid: True
     Audio Quality: Medium
               EAX: True

Re: Game constantly crashing

Posted: 2018-02-26 16:59
by AlonTavor
Run as windowed and you might get an error message.

Re: Game constantly crashing

Posted: 2018-02-26 21:59
by TheSunGod
Indeed. This popped up:
Image

Re: Game constantly crashing

Posted: 2018-02-27 07:51
by AlonTavor
Why would you have a "localhost" entry in your hosts file on windows 7?!

https://www.realitymod.com/forum/f27-pr ... y-url.html

Re: Game constantly crashing

Posted: 2018-02-27 08:36
by anantdeathhawk
Updated to 1.5.3.2

Game crashes after intro video.

From Bin>PR.log:

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2018-02-27T13:59:00

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

String reference not set to an instance of a String.
Parameter name: s

Further details can be found in the following file:

[url]D:\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/f27-pr-bf2-support]Visit Support Forum[/url]

 > System.ArgumentNullException: String reference not set to an instance of a String.
Parameter name: s
   at System.Text.Encoding.GetBytes(String s)
   at Reality.Utils.Extensions.ToMD5(String )
   at Reality.BF2.GameSpy.LoginServer.CreateLoginResponse(SocketState , Dictionary`2 )
   at Reality.BF2.GameSpy.LoginServer.(SocketState , String , Dictionary`2 )
   at Reality.BF2.GameSpy.LoginServer.(SocketState , String )
   at Reality.BF2.GameSpy.LoginServer.(IAsyncResult )
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.ContextAwareResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
Thanks!

Re: Game constantly crashing

Posted: 2018-02-27 13:16
by TheSunGod
Funny shit, my hosts file was completely empty, apart from a line "127.0.0.1 localhost". I followed the steps to reset the file and it worked, game is working again. Thank you!
PS I have no idea what happened, i did nothing with the file. I played PR before and it was just fine, then after the patch (1.5.3 i believe) it just refused to work

Re: Game constantly crashing

Posted: 2018-02-27 15:18
by AlonTavor
anantdeathhawk wrote:Updated to 1.5.3.2

Game crashes after intro video.
Thanks!
This is iirelevant, make a new thread.



@TheSunGod

We changed some stuff.
In short, this is a fake error message from BF2. It crashes the game because it thinks you might be changing the master-server address through the hosts file.
I did really rough hack around the check in assembly, only made it stop after checking the first line. Didn't put extra time in it because we didn't think there would be a need, assembly of compiled software is not something that is designed for humans to edit.

There really wasn't a need for a proper fix unless something messed with your file improperly - you don't need a localhost entry in Windows 7 and above. We're surprised so many people actually have that issue.

Re: Game constantly crashing

Posted: 2018-02-27 18:52
by Mats391
anantdeathhawk wrote:Updated to 1.5.3.2

Game crashes after intro video.

From Bin>PR.log:

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2018-02-27T13:59:00

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

String reference not set to an instance of a String.
Parameter name: s

Further details can be found in the following file:

[url]D:\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/f27-pr-bf2-support]Visit Support Forum[/url]

 > System.ArgumentNullException: String reference not set to an instance of a String.
Parameter name: s
   at System.Text.Encoding.GetBytes(String s)
   at Reality.Utils.Extensions.ToMD5(String )
   at Reality.BF2.GameSpy.LoginServer.CreateLoginResponse(SocketState , Dictionary`2 )
   at Reality.BF2.GameSpy.LoginServer.(SocketState , String , Dictionary`2 )
   at Reality.BF2.GameSpy.LoginServer.(SocketState , String )
   at Reality.BF2.GameSpy.LoginServer.(IAsyncResult )
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.ContextAwareResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
Thanks!
Try playing with saved password. I guess I did not really fix it last patch :o ops:

Re: Game constantly crashing

Posted: 2018-02-27 23:26
by TheSunGod
@AlonTavor
So i guess its an error that you guys will not try to fix then? Doesnt seem like there's a need for that as repairing this on your own by any of the players is not really an issue.
That would be kinda helpful though, otherwise you will have to respond to maaaany more threads like this one :)
Anyway, thank you for your help, guess you can close the thread now :D

Re: Game constantly crashing

Posted: 2018-02-28 08:18
by AlonTavor
Will probably fix it next, its just like 30 minutes of really boring mindless work.

Assembly is cancer.

Re: Game constantly crashing

Posted: 2018-02-28 10:51
by TheSunGod
That's why i'll never try to be a software developer xd