Error in windows events journal

Got a problem with Viscosity or need help? Ask here!

halaster

Posts: 4
Joined: Sun Oct 08, 2017 6:21 pm

Post by halaster » Sun Oct 08, 2017 7:07 pm
Hello.
First of all, thanks for your software, it's very good.
But after last updated (to version 1.7.5 (1530)) my windows 7 (x64 ultimate) events journal started to log some errors.
First one:
Code: Select all
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
	<System>
  		<Provider Name="ViscosityService" /> 
	  	<EventID Qualifiers="0">1992</EventID> 
  		<Level>2</Level> 
	  	<Task>0</Task> 
  		<Keywords>0x80000000000000</Keywords> 
	  	<TimeCreated SystemTime="2017-10-07T22:58:32.000000000Z" /> 
  		<EventRecordID>21282</EventRecordID> 
	  	<Channel>Application</Channel> 
	  	<Computer>f-pc</Computer> 
  		<Security /> 
	  </System>
	<EventData>
  		<Data>Failed to write RevertConfig. The process cannot access the file 'C:\Program Files\Viscosity\Resources\RevertConfig.txt' because it is being used by another process.</Data> 
	</EventData>
</Event>
Second one:
Code: Select all
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
	<System>
  		<Provider Name="ViscosityService" /> 
  		<EventID Qualifiers="0">1992</EventID> 
  		<Level>2</Level> 
 		 <Task>0</Task> 
 		 <Keywords>0x80000000000000</Keywords> 
  		<TimeCreated SystemTime="2017-10-06T07:03:07.000000000Z" /> 
  		<EventRecordID>21249</EventRecordID> 
 		 <Channel>Application</Channel> 
  		<Computer>f-pc</Computer> 
  		<Security /> 
  	</System>
  	<EventData>
  		<Data>Failed to read RevertConfig. The process cannot access the file 'C:\Program Files\Viscosity\Resources\RevertConfig.txt' because it is being used by another process.</Data> 
  	</EventData>
</Event>
Errors with write RevertConfig are logging more often than errors with read RevertConfig.
Yesterday i have 4 write errors and 0 read ones.
I did not notice any dependencies why and when this errors take place.
So please, can u fix this errors?

And there is another bug from another update but long long ago.
When i open Viscosity client UI after i restart my computer or after i close Viscosity from tray, main window of program doesn't save its position and i have to move it to more comfortable place again and again.
Can u fix this bug too?

Thanks.

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Mon Oct 09, 2017 1:51 pm
Hi halaster,

Those errors can be ignored as long as you are not encountering scenarios where DNS is failing to revert after you disconnect Viscosity. That error logging was added to diagnose that issue, out of interest are you running any AV software which may be checking files every time they are changed? We'll look at a way to silence these errors but they shouldn't be completely ignored, if something is locking or monitoring files every time they are changed that could be a sign of a system performance problem.

We'll look at remembering the Preferences window location between restarts, thanks for the suggestion.

Regards,
Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

halaster

Posts: 4
Joined: Sun Oct 08, 2017 6:21 pm

Post by halaster » Mon Oct 09, 2017 8:48 pm
Hello.
I am using Bitdefender Total Security 2017. It has firewall, which has next settings.
It only allows to connect to some IP addresses of my VPN provider. And with VPN connection i use VPN DNS servers.
When i cancel VPN connection firewall blocks all traffic, and my main LAN adapter's DNS configuration goes back to Google DNS servers. I am not sure what exactly happens with DNS, because when i ping some internet site with no VPN connection, IP address can be resolved, but pings are blocked. I understand that IP address can be taken from cache, but i tried to ping some internet sites, which i had never visit before. And IP address can be resolved in this cases too.
So just in case there is configuration of RevertConfig.txt (with active VPN connection)
Code: Select all
<?xml version="1.0"?>
<ArrayOfReversionConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ReversionConfig>
    <GUID>{A11DADA5-CD80-42E6-AFBD-BD11D544663A}</GUID>
    <IPv4 />
    <IPv6 />
    <NBT />
  </ReversionConfig>
  <ReversionConfig>
    <GUID>{80BF04CB-0EBF-4EB9-BA55-D379ECD57B2A}</GUID>
    <IPv4>8.8.8.8,8.8.4.4</IPv4>
    <IPv6 />
    <NBT />
  </ReversionConfig>
</ArrayOfReversionConfig>
And i don't use any software that can change DNS configuration of my main LAN adapter.
I don't know if all of this information can be helpful.
Thanks.

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Tue Oct 10, 2017 10:11 am
Hi halaster,

When disconnected, Viscosity's DNS shuts down, and it wouldn't be immune to your firewall rules anyway, you will need to consult Bitdefender about why DNS resolution is still working.

If possible, please exclude or whitelist the RevertConfig file from BitDefender, this will most likely stop those errors appearing in your Event Viewer.

Regards,
Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

halaster

Posts: 4
Joined: Sun Oct 08, 2017 6:21 pm

Post by halaster » Sat Oct 28, 2017 7:16 am
Hello.
So i did what u said about AV settings. Bit AV is not a problem.
So I logged handles to file RevertConfig.txt with program Procmon when i had another error in windows events journal.
Here is link to this file: https://ufile.io/mb1ef
And this is another log from windows events journal:
Code: Select all
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
	<System>
		<Provider Name="ViscosityService" /> 
  		<EventID Qualifiers="0">1992</EventID> 
 		 <Level>2</Level> 
  		<Task>0</Task> 
  		<Keywords>0x80000000000000</Keywords> 
  		<TimeCreated SystemTime="2017-10-27T19:32:31.000000000Z" /> 
 		 <EventRecordID>22858</EventRecordID> 
  		<Channel>Application</Channel> 
 		<Computer>f-pc</Computer> 
  		<Security /> 
  	</System>
  	<EventData>
  		<Data>Failed to write RevertConfig. The process cannot access the file 'C:\Program Files\Viscosity\Resources\RevertConfig.txt' because it is being used by another process.</Data> 
  	</EventData>
</Event>
So what happened when this error was logged. I was surfing some information in browser. Then i manually disable VPN connection in Viscosity client. Checked windows events journal and found an error (text above). Before i disabled VPN connection I had run Procmon program. So in attached log file from Procmon all entries starts from moment, when i disabled VPN connection.

I have noticed that this errors are usually take place when my browser is running and I disable VPN connection to change server. When my browser is not running this errors are very rare.
I hope you understand me, because my english is not perfect.

P.S.
you will need to consult Bitdefender about why DNS resolution is still working
Yea, i checked some options in Firewall and fixed this.

halaster

Posts: 4
Joined: Sun Oct 08, 2017 6:21 pm

Post by halaster » Sat Oct 28, 2017 7:54 am
Oh i forgot to add log file from Procmon, when i disabled VPN connection just like in post before, but without running browser and there was no error in windows events journal.
Here is link: https://ufile.io/db11f
If you try to compare 2 log files there is a difference in line 27 and further.
In file from post above there is sequence of operations (lines 26,27,28): "CreateFile", "QueryOpen", "CreateFile". May be this two "CreateFile" operations without closing file cause this error?

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Mon Oct 30, 2017 8:10 am
Hi halastar,

Thanks for the information, we shall take a look.

Regards,
Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
7 posts Page 1 of 1