PRBF2 1.5.5.2 error 995 ( after PR update )

If you find a bug within PR:BF2 (including PRSP), please report it here.
Post Reply
PRBF2_Tester
Posts: 9
Joined: 2018-10-06 23:47

PRBF2 1.5.5.2 error 995 ( after PR update )

Post by PRBF2_Tester »


After update PRBF2 1.5.3.2.0 to 1.5.5.2 ,
starting PRlauncher and choosing Play ( Online ) Login
Immediate LAUNCH ERROR
995: The I/O operation had aborted because of either
a thread exit or an application request .

Below is " Support " info copied to clipboard from PRLauncher .

Specail Note : The PR Support Info " mis-identifies "
my drives as SSD

PR Support also " mis-identifies "
my 2 GigaByte Pagefile as -6441512960.00 B

My Boot Options
to allow use of 8 GB installed RAM for PAGEfile on Gavotte RAMdisk

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional - ntkl64g PAE"/NoExecute=OptIn /fastdetect /kernel=ntkl64g.exe /hal=hal64g.dll /PAE

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional - No PAE" /fastdetect /NoExecute=OptIn

All other progams operate ( without error ) with this setup

========================= INFO ========================

Code: Select all

System Information
------------------
  Operating System: Microsoft Windows XP Professional (5.1.2600)
   Current Culture: English (United States)
       Motherboard: MSI 770-G45 (MS-7599)
         Processor: AMD Athlon(tm) II X2 245 Processor
          (Physical: 2, Logical: 2)
            Memory: 8.00 GB
      DIMM Modules: DIMM1: 2.00 GB @ 533 MHz
                    DIMM2: 2.00 GB @ 533 MHz
                    DIMM3: 2.00 GB @ 533 MHz
                    DIMM4: 2.00 GB @ 533 MHz
         Page File: -6441512960.00 B
    .NET Framework: Unknown

 ** .NET Framework 4 Client Profile ( Installed )
 ** .NET 4 Framework Extended       ( Installed )

Display Information
-------------------
 Display Device(s): Plug and Play Monitor on NVIDIA GeForce 8400 GS   
                    Plug and Play Monitor on NVIDIA GeForce FX 5200
                    Plug and Play Monitor on NVIDIA GeForce 8400 GS   
                    DELL E153FP on NVIDIA GeForce FX 5200
   Display Mode(s): 1360 x 768 (32 bit) @ 60 Hz
                    1024 x 768 (32 bit) @ 75 Hz
                    1360 x 768 (32 bit) @ 75 Hz
                    1024 x 768 (32 bit) @ 75 Hz
    Driver Version: 6.14.11.7516 (175.16)
    Display Memory: 512.00 MB
     Multisampling: 2, 4, 8
               DPI: 96 (100%)

Audio Information
-----------------
  Primary Playback: HD Audio rear output
 Primary Recording: HD Audio rear input
  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: C:\SIMULATE\ProjectReality_1.5
                    Free: 221.14 GB, Total: 465.76 GB, FS: NTFS, SSD: True
          Mod Path: C:\SIMULATE\ProjectReality_1.5\mods\pr
                    Free: 221.14 GB, Total: 465.76 GB, FS: NTFS, SSD: True
     Profiles Path: C:\Documents and Settings\PRIMARY USER\My Documents\ProjectReality\Profiles
                    Free: 221.14 GB, Total: 465.76 GB, FS: NTFS, SSD: True
    Update DL Path: D:\Simulation\First Person Shooter\Battlefield_2\ProjectReality_1.4\_UPDATE
                    Free: 1.35 TB, Total: 1.82 TB, FS: NTFS, SSD: True
   Update Log Path: D:\Simulation\First Person Shooter\Battlefield_2\ProjectReality_1.4\_UPDATE
                    Free: 1.35 TB, Total: 1.82 TB, FS: NTFS, SSD: True

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

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

      Profile 0002: Black_Ops
              Type: Offline
 Last Used Profile: True
        View Intro: False
        Fullscreen: True
      Display Mode: 1360x768@60Hz
Display Mode Valid: True
   Graphics Scheme: Medium
     Multisampling: Off
             VSync: False
            NoLods: False
   Terrain Quality: Low
   Effects Quality: High
  Geometry Quality: Low
   Texture Quality: Medium
  Lighting Quality: Low
   Dynamic Shadows: Medium
    Dynamic Lights: Medium
 Texture Filtering: Medium
    Audio Provider: Software
    Provider Valid: True
     Audio Quality: Medium
               EAX: True
Last edited by PRBF2_Tester on 2018-10-10 04:02, edited 1 time in total.
PRBF2_Tester
Posts: 9
Joined: 2018-10-06 23:47

Re: PRBF2 1.5.5.2 error 995 ( after PR update )

Post by PRBF2_Tester »

Error 995

'The I/O operation has been aborted
because of either a thread exit or an application request
====================================================
Some Research Results
====================================================

https://stackoverflow.com/questions/496 ... en-aborted

ASIO system error 995: The I/O operation has been aborted


Answer

After creating ClientNetwork object
and when first an asynchronous operation was started
you should run io_service::run method
to process handlers in events loop
then your program runs until there is at least one asynchronous operation to be executed.

At the end of try scope put io_service->run():

ClientNetwork clientNet(*io_service, endpoint);

global_stream_lock.lock();
std::cout << "Listening on: " << endpoint << std::endl;
global_stream_lock.unlock();
io_service->run();

Without this
the destructor of ClientNetwork class is called
and mAcceptor is closed with printing this error message

void ClientNetwork::handleAccept (...)
{ ... std::cout << "Error: " << error << " " << error.message() << std::endl;}


This fixed it, thanks!! I've noticed that my network doesn't let multiple users connect;
should I recall my listen() function at the end of handleAccept?

Sure, when a connection was established
you should call async_accept in handleAccept
to wait for another one.

======================================================

https://social.msdn.microsoft.com/Forum ... etfxnetcom


The sequence is:

--> server listens on some (any) port

--> client creates a thread (ConnectThread)
on which it calls Connect and then BeginReceive

<-- client's ConnectThread dies coz there's nothing to do

<-- ReceiveCallback is getting called
and upon reaching EndReceive fails with SocketException, error 995:
"'The I/O operation has been aborted
because of either a thread exit or an application request
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)'"

<-- I do handle this by catching it and for error 995
I try to initiate async receive again by calling BeginReceive

--> server sends data
(in the above code there's a slight delay
between Accept and Send to simulate this behavior)

<-- ReceiveCallback is getting called because of data available,
EndReceive is happy, everything is just fine,
except the socket's Connected property: it's false!

===============================================================

https://docs.microsoft.com/en-us/dotnet ... em_Object_


Note

All I/O initiated by a given thread is canceled when that thread exits.
A pending asynchronous operation can fail
if the thread exits before the operation completes.

**********************************************************************

I don't know the code used by PRBF2 internet logon ( from home user client )
Is there some difference in Python from Win XP to Win 7 ??

Is there too long of a latency to start receiving data
before the PRBF2 thread " exits " ( comcast IP latency ) ??

All other online tasks ( webpage , downloading , streaming -- YOUTUBE )
work without any error ( on my Win XP SP3 system ) .

The above are some HINTS in the direction of SOLVING the LOGON failure .

I can continue searching ,
but I can't change the CODE for PRBF2
to make the correction .

Thank You for any effort .

Offline functions 100% with no glitches or errors .
User avatar
ALADE3N
PR:BF2 Developer
Posts: 577
Joined: 2016-02-13 17:34
Location: Philippines

Re: PRBF2 1.5.5.2 error 995 ( after PR update )

Post by ALADE3N »

I think you should post this on the Support Forum not on the Bugs forum
Image
PRBF2_Tester
Posts: 9
Joined: 2018-10-06 23:47

Re: PRBF2 1.5.5.2 error 995 ( after PR update )

Post by PRBF2_Tester »

Thank You for the advice .

Have copied first post and submitted for approval in support .

Once the post appears ,
I will copy over the 2nd post on the research done on the problem .
dogface49
Posts: 11
Joined: 2008-01-01 08:52

Re: PRBF2 1.5.5.2 error 995 ( after PR update )

Post by dogface49 »

PRBF2_Tester wrote:Error 995

'The I/O operation has been aborted
because of either a thread exit or an application request
====================================================
Some Research Results
====================================================

https://stackoverflow.com/questions/496 ... en-aborted

ASIO system error 995: The I/O operation has been aborted


Answer

After creating ClientNetwork object
and when first an asynchronous operation was started
you should run io_service::run method
to process handlers in events loop
then your program runs until there is at least one asynchronous operation to be executed.

At the end of try scope put io_service->run():

ClientNetwork clientNet(*io_service, endpoint);

global_stream_lock.lock();
std::cout << "Listening on: " << endpoint << std::endl;
global_stream_lock.unlock();
io_service->run();

Without this
the destructor of ClientNetwork class is called
and mAcceptor is closed with printing this error message

void ClientNetwork::handleAccept (...)
{ ... std::cout << "Error: " << error << " " << error.message() << std::endl;}


This fixed it, thanks!! I've noticed that my network doesn't let multiple users connect;
should I recall my listen() function at the end of handleAccept?

Sure, when a connection was established
you should call async_accept in handleAccept
to wait for another one.

======================================================

https://social.msdn.microsoft.com/Forum ... etfxnetcom


The sequence is:

--> server listens on some (any) port

--> client creates a thread (ConnectThread)
on which it calls Connect and then BeginReceive

<-- client's ConnectThread dies coz there's nothing to do

<-- ReceiveCallback is getting called
and upon reaching EndReceive fails with SocketException, error 995:
"'The I/O operation has been aborted
because of either a thread exit or an application request
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)'"

<-- I do handle this by catching it and for error 995
I try to initiate async receive again by calling BeginReceive

--> server sends data
(in the above code there's a slight delay
between Accept and Send to simulate this behavior)

<-- ReceiveCallback is getting called because of data available,
EndReceive is happy, everything is just fine,
except the socket's Connected property: it's false!

===============================================================

https://docs.microsoft.com/en-us/dotnet ... em_Object_


Note

All I/O initiated by a given thread is canceled when that thread exits.
A pending asynchronous operation can fail
if the thread exits before the operation completes.

**********************************************************************

I don't know the code used by PRBF2 internet logon ( from home user client )
Is there some difference in Python from Win XP to Win 7 ??

Is there too long of a latency to start receiving data
before the PRBF2 thread " exits " ( comcast IP latency ) ??

All other online tasks ( webpage , downloading , streaming -- YOUTUBE )
work without any error ( on my Win XP SP3 system ) .

The above are some HINTS in the direction of SOLVING the LOGON failure .

I can continue searching ,
but I can't change the CODE for PRBF2
to make the correction .

Thank You for any effort .

Offline functions 100% with no glitches or errors .


i have the same problem after the update. i also run xp sp3. i am not a computer programer. did you find a solution to the problem??
PRBF2_Tester
Posts: 9
Joined: 2018-10-06 23:47

Re: PRBF2 1.5.5.2 error 995 ( after PR update )

Post by PRBF2_Tester »

No solution on home computer ( yet ) .

I have copied my first post ( this thread )
over to support section ( for approval )
as suggested by other poster in this thread .

If it shows up in support section ,
I will copy over my 2nd post
of the results from Google
about the error 995 ( in Windows XP ) .

I will spend more time ( in the coming days )
to find more results for error 995 .

Many results suggest to contact the application
creator ( in this case meaning Project Reality coders ) .
Arab
PR:BF2 Developer
Posts: 2898
Joined: 2012-05-18 03:37

Re: PRBF2 1.5.5.2 error 995 ( after PR update )

Post by Arab »

This may come off as rude, but maybe upgrade to Windows 7?
Last edited by Arab on 2018-10-15 07:05, edited 1 time in total.
Image
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: PRBF2 1.5.5.2 error 995 ( after PR update )

Post by Mats391 »

This is a known issue for some WinXp users and we cant figure out what is causing it. Right now your only option is to upgrade to Windows 7 or 10.
Image

Mineral: TIL that Wire-guided missiles actually use wire
PRBF2_Tester
Posts: 9
Joined: 2018-10-06 23:47

Re: PRBF2 1.5.5.2 error 995 ( after PR update )

Post by PRBF2_Tester »

Unable to Move from Win XP SP3
currently ( security hardened ) with incoming / outgoing Firewalls
and other measures put in place
after virutnet ( Botnet ) infection and " autorun.inf " infection removal .

Homebuilt computer
( unable to purchase new gaming computer )
I believe I will lose the functionality of the many
Combatsim / Flightsim / Dinosaur sim mods , etc. currently installed
if upgrading to Win 7 , 8 , 10 .

I inquired at local ' Staples ' store about purchase of Win 7 .

They said , they were NOT allowed to sell Win 7 ( Win 8 ) since Windows 10 came out .

They said the restriction was from merchant agreement with Microsoft .

I have been through upgrades , such as Firefox -- where the upgrade DISABLES addons
for which there are no UPgraded replacements .

I can see where Microsoft would DISABLE older ( but still useful ) programs
during an upgrade to Windows 7 / 8 / 10 .

This computer is NOT used for Social Networks .

The hardware has been upgraded " to the max " to run 3D computer simulations
as noted above .

As long as the Project Reality BF2 updates will still run " offline "
( as they do right now -- I will be very happy with all Your efforts ) .

When I click ' check for updates ' the message is --
I have the most current update .

I noted there was a Sysinternals " ProcDump " available ,
and I downloaded it .

I note during the failed attempts to logon , there is a ( .dmp ) file created .

I believe the ProcDump is supposed to process the .dmp file
to create a ' report ' .

I will attempt to process a .dmp file -- from the failed attempt to logon ,
maybe there will be some Clues or Answers in the report created .

Thank You for Your Magnificient " Work of Art " -- PR BF2 .
SPROUT00
Posts: 1
Joined: 2018-12-02 22:00

Re: PRBF2 1.5.5.2 error 995 ( after PR update )

Post by SPROUT00 »

Hi, I too am running xp sp3. I may have to upgrade os but ive been playing for so many years it seems strange my set up all os a sudden died. If you find a solution please post.
PRBF2_Tester
Posts: 9
Joined: 2018-10-06 23:47

Re: PRBF2 1.5.5.2 error 995 ( after PR update )

Post by PRBF2_Tester »

[ January 24th , 2019 ]

After some additional research concerning the "error 995" logon problem ,

the additional information I need ( that I cannot seem to find ) is :

Has a change been made in the latest version of PR BF2
that it now only works on " .NET 4.5 " .

I found this link https://weblog.west-wind.com/posts/2012/Mar/13/NET-45-is-an-inplace-replacement-for-NET-40
discussing the .NET update which excludes Win XP .

Additional info request :
1) Does anyone successfuly run PR BF2 1.5 on Win XP ?

2) Does no-one run PR BF2 on Win XP ?

3) Does at leasts ONE person run PR BF2 on Win XP ?

It seems if the current Poject Reality 1.5 is NOT compiled
to run under .NET 4.0 ( but only .NET 4.5 )
then this could be the reason for the failure to go online with Win XP .

Here is the UN-explained line in my

System Information
------------------

--->>> .NET Framework: Unknown <<<---

** .NET Framework 4 Client Profile ( Installed )
** .NET 4 Framework Extended ( Installed )

The ** values are what I added to the info posted .

PR BF2 1.5 FAILED to Identify my version of the .NET framework installed .

Perhaps that data not being transmitted when trying to go online
is what terminates the connection with an "error 995 " .

Here is one more link that I found

https://www.daniweb.com/programming/software-development/threads/313275/the-i-o-operation-has-been-operated-exception-tcp-server

( stating )

"The error code was 995
which I fixed by adding a WaitOne() call
to the result gotten from the BeginReceive function"
Last edited by PRBF2_Tester on 2019-01-25 05:03, edited 1 time in total.
User avatar
WeeGeez
Posts: 842
Joined: 2007-10-08 21:30

Re: PRBF2 1.5.5.2 error 995 ( after PR update )

Post by WeeGeez »

PRBF2_Tester wrote: "The error code was 995
which I fixed by adding a WaitOne() call
to the result gotten from the BeginReceive function"
Curious

Either way be patient last I heard mats & co is working on re-working "socket magic" ..
Image
Cheap computer build / fast track upgrade for slow computer for PR > Guide
PRBF2_Tester
Posts: 9
Joined: 2018-10-06 23:47

Re: PRBF2 1.5.5.2 error 995 ( after PR update )

Post by PRBF2_Tester »

FINAL Thoughts that Windows XP ' WILL NOT ' be able
to be a usable operating system ( to logon and play online )
any longer with PR BF2 --
Windows XP cannot update dotNET.Framework above 4.0 .

Since the further production of PR_BF2 is being done on
operating systems of at least Windows 7 ,8 or 10 --
the dotNET.Framework continuing updates for those systems
is moving upward beyond dotNET 4.0 .

I suspect with time
( when microsoft wants to phase out support for Windows 7 and 8 )
the same problem will occur with those OS(s)
that has made Windows XP unable to logon to play PR_BF2 .

Without a workaround for the " sockets " part of the OS
( to go online ) further dotNET.Framework updates
for Windows 10 will probably disable access
for Windows 7 and Windows 8 users
to join online gameplay .

==============================================
Again , a big THANKS to the ' hard-working ' authors
of Project Reality and their continuing work .
==============================================

I have been branching out to experience other combat sims
( that are playable on Windows XP ) --
The Arma 2 series , and the CoD series ,
Insurgency Modern Infantry Combat
Full Spectrum Warrior
Close Combat-First to Fight
Hidden and Dangerous 2
Just Cause
Battlestations Midway
Dangerous Waters
Enigma Rising Tide
CounterStrike Condition Zero
The Carnivores 2 + mods , and the Jurassic Park + mods

With other research , I don't really have time to spend
with anything on the above list .

We need more hours in a day to accomplish more - - -

This will be my final post on this Titled error 995 .

Have Fun online .

Goodbye .
Post Reply

Return to “PR:BF2 Bugs”