Bugs in 2.1.0

Is Virtual Radar Server not behaving itself? If so then please report it here.
YSWG
Posts: 18
Joined: Thu Oct 30, 2014 1:56 pm
Location: Wagga Wagga

Re: Bugs in 2.1.0

Post by YSWG » Wed Dec 24, 2014 7:33 am

Had an interesting issue. I was having live flights shown on the map but the report page stopped updating (Row 410). Had no error message box (which normally what happens if there is any issue with VRS) but I've rebooted the program but looking at the VRS log, it looks like the database somehow locked itself? I'm running this on a Windows 7 PC.

Code: Select all

[2014-12-24 04:49:12.565 UTC] [t3] Database writer plugin caught exception on flushing old flights: System.Data.SQLite.SQLiteException: database is locked
database is locked
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at VirtualRadar.Database.SQLiteExecute.<>c__DisplayClass1.<ExecuteNonQuery>b__0()
   at VirtualRadar.Database.SQLiteExecute.CallActionUntilUnlocked(Action action)
   at VirtualRadar.Database.SQLiteExecute.ExecuteNonQuery(IDbCommand command)
   at VirtualRadar.Database.BaseStation.FlightsTable.Update(IDbConnection connection, IDbTransaction transaction, TextWriter log, BaseStationFlight flight)
   at VirtualRadar.Database.BaseStation.Database.UpdateFlight(BaseStationFlight flight)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.FlushFlights(Boolean flushAll)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.Heartbeat_SlowTick(Object sender, EventArgs args)
[2014-12-24 05:00:20.617 UTC] [t15] Database writer plugin caught exception on message processing: System.Data.SQLite.SQLiteException: database is locked
database is locked
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at System.Data.SQLite.SQLiteTransaction.Commit()
   at VirtualRadar.Database.TransactionHelper.EndTransaction()
   at VirtualRadar.Database.BaseStation.Database.EndTransaction()
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.TrackFlight(BaseStationMessage message)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.MessageQueue_MessageReceived(BaseStationMessageEventArgs args)
[2014-12-24 07:17:59.072 UTC] [t3] Program started, version 2.1.0.42181

YSWG
Posts: 18
Joined: Thu Oct 30, 2014 1:56 pm
Location: Wagga Wagga

Re: Bugs in 2.1.0

Post by YSWG » Thu Dec 25, 2014 1:34 am

and its done it again.

Code: Select all

[2014-12-24 21:25:56.457 UTC] [t25] Database writer plugin caught exception on message processing: System.Data.SQLite.SQLiteException: database is locked
database is locked
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at VirtualRadar.Database.SQLiteExecute.<>c__DisplayClass1.<ExecuteNonQuery>b__0()
   at VirtualRadar.Database.SQLiteExecute.CallActionUntilUnlocked(Action action)
   at VirtualRadar.Database.SQLiteExecute.ExecuteNonQuery(IDbCommand command)
   at VirtualRadar.Database.BaseStation.FlightsTable.Update(IDbConnection connection, IDbTransaction transaction, TextWriter log, BaseStationFlight flight)
   at VirtualRadar.Database.BaseStation.Database.UpdateFlight(BaseStationFlight flight)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.TrackFlight(BaseStationMessage message)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.MessageQueue_MessageReceived(BaseStationMessageEventArgs args)
[2014-12-24 21:25:56.683 UTC] [t16] Database writer plugin caught exception on flushing old flights: System.Data.SQLite.SQLiteException: database is locked
database is locked
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at VirtualRadar.Database.SQLiteExecute.<>c__DisplayClass1.<ExecuteNonQuery>b__0()
   at VirtualRadar.Database.SQLiteExecute.CallActionUntilUnlocked(Action action)
   at VirtualRadar.Database.SQLiteExecute.ExecuteNonQuery(IDbCommand command)
   at VirtualRadar.Database.BaseStation.FlightsTable.Update(IDbConnection connection, IDbTransaction transaction, TextWriter log, BaseStationFlight flight)
   at VirtualRadar.Database.BaseStation.Database.UpdateFlight(BaseStationFlight flight)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.FlushFlights(Boolean flushAll)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.Heartbeat_SlowTick(Object sender, EventArgs args)
[2014-12-24 21:26:58.054 UTC] [t6] Database writer plugin caught exception on flushing old flights: System.Data.SQLite.SQLiteException: database is locked
database is locked
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at VirtualRadar.Database.SQLiteExecute.<>c__DisplayClass1.<ExecuteNonQuery>b__0()
   at VirtualRadar.Database.SQLiteExecute.CallActionUntilUnlocked(Action action)
   at VirtualRadar.Database.SQLiteExecute.ExecuteNonQuery(IDbCommand command)
   at VirtualRadar.Database.BaseStation.FlightsTable.Update(IDbConnection connection, IDbTransaction transaction, TextWriter log, BaseStationFlight flight)
   at VirtualRadar.Database.BaseStation.Database.UpdateFlight(BaseStationFlight flight)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.FlushFlights(Boolean flushAll)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.Heartbeat_SlowTick(Object sender, EventArgs args)
[2014-12-24 21:27:40.908 UTC] [t5] Database writer plugin caught exception on flushing old flights: System.Data.SQLite.SQLiteException: database is locked
database is locked
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at VirtualRadar.Database.SQLiteExecute.<>c__DisplayClass1.<ExecuteNonQuery>b__0()
   at VirtualRadar.Database.SQLiteExecute.CallActionUntilUnlocked(Action action)
   at VirtualRadar.Database.SQLiteExecute.ExecuteNonQuery(IDbCommand command)
   at VirtualRadar.Database.BaseStation.FlightsTable.Update(IDbConnection connection, IDbTransaction transaction, TextWriter log, BaseStationFlight flight)
   at VirtualRadar.Database.BaseStation.Database.UpdateFlight(BaseStationFlight flight)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.FlushFlights(Boolean flushAll)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.Heartbeat_SlowTick(Object sender, EventArgs args)
[2014-12-24 21:28:21.403 UTC] [t6] Database writer plugin caught exception on flushing old flights: System.Data.SQLite.SQLiteException: database is locked
database is locked
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at VirtualRadar.Database.SQLiteExecute.<>c__DisplayClass1.<ExecuteNonQuery>b__0()
   at VirtualRadar.Database.SQLiteExecute.CallActionUntilUnlocked(Action action)
   at VirtualRadar.Database.SQLiteExecute.ExecuteNonQuery(IDbCommand command)
   at VirtualRadar.Database.BaseStation.FlightsTable.Update(IDbConnection connection, IDbTransaction transaction, TextWriter log, BaseStationFlight flight)
   at VirtualRadar.Database.BaseStation.Database.UpdateFlight(BaseStationFlight flight)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.FlushFlights(Boolean flushAll)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.Heartbeat_SlowTick(Object sender, EventArgs args)
[2014-12-24 21:29:03.427 UTC] [t3] Database writer plugin caught exception on flushing old flights: System.Data.SQLite.SQLiteException: database is locked
database is locked
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at VirtualRadar.Database.SQLiteExecute.<>c__DisplayClass1.<ExecuteNonQuery>b__0()
   at VirtualRadar.Database.SQLiteExecute.CallActionUntilUnlocked(Action action)
   at VirtualRadar.Database.SQLiteExecute.ExecuteNonQuery(IDbCommand command)
   at VirtualRadar.Database.BaseStation.FlightsTable.Update(IDbConnection connection, IDbTransaction transaction, TextWriter log, BaseStationFlight flight)
   at VirtualRadar.Database.BaseStation.Database.UpdateFlight(BaseStationFlight flight)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.FlushFlights(Boolean flushAll)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.Heartbeat_SlowTick(Object sender, EventArgs args)
this is becoming more frequent, to the point that VRS is useless in recording flights.

Code: Select all

[2014-12-25 01:56:59.719 UTC] [t17] Database writer plugin caught exception on message processing: System.Data.SQLite.SQLiteException: database is locked
database is locked
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at System.Data.SQLite.SQLiteTransaction.Commit()
   at VirtualRadar.Database.TransactionHelper.EndTransaction()
   at VirtualRadar.Database.BaseStation.Database.EndTransaction()
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.TrackFlight(BaseStationMessage message)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.MessageQueue_MessageReceived(BaseStationMessageEventArgs args)

agw
Posts: 2241
Joined: Fri Feb 17, 2012 3:20 am

Re: Bugs in 2.1.0

Post by agw » Sun Dec 28, 2014 1:07 pm

VRS and the database writer plugin all share the same connection to BaseStation, and the code that manages that connection should be forcing the different parts of VRS to queue up if they try to perform simultaneous reads and writes. I did mess with that code in 2.1 so it's entirely possible that I stuffed something up :) However, I've not seen the problem on my install of 2.1 yet.

The first thing to rule out is whether anything else is reading or writing BaseStation.sqb while VRS is trying to write to it. There is a command-line tool called Handle that can show which programs have a file open: http://technet.microsoft.com/en-us/sysi ... 96655.aspx

If you could install that (from memory I think it just unpacks into a folder, it's not really an installer) and then from the command line do handle basestation.sqb and see what it says. It should show that VirtualRadar.exe has a handle open on the file, the interesting thing would be whether anything else has the file open. You don't need to run Handle as an administrator although if you do then you get to see the handles for all processes rather than just the ones that are running under your user.

YSWG
Posts: 18
Joined: Thu Oct 30, 2014 1:56 pm
Location: Wagga Wagga

Re: Bugs in 2.1.0

Post by YSWG » Mon Dec 29, 2014 12:43 pm

So far so good, VRS has behaved itself after the hissy fit on Xmas Eve and Day. Though I have noticed that after suffering from something overloading my circuit, after restarting the system, VRS was slow starting up and would need to be "killed" and restated (VRS, not the computer). The issue is very random but noticed it happened as soon as the memory usage hit 75% (thanks to svhost.exe, which seemed to be hogging most of the memory [the system running VRS has been checked for viruses and trojans and was all clear])

This is the error I got on starting VRS.

Code: Select all

[2014-12-28 00:59:45.325 UTC] [t6] Exception caught during data download: System.IO.IOException: The process cannot access the file 'C:\Users\blank\AppData\Local\VirtualRadar\StandingData.sqb' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.Delete(String path)
   at VirtualRadar.Database.StandingData.StandingDataUpdater.DefaultProvider.MoveFile(String temporaryFileName, String liveFileName)
   at VirtualRadar.Database.StandingData.StandingDataUpdater.Update()
   at VirtualRadar.Database.StandingData.BackgroundDataDownloader.Heartbeat_SlowTick(Object sender, EventArgs args

Code: Select all

Handle v4.0
Copyright (C) 1997-2014 Mark Russinovich
Sysinternals - www.sysinternals.com

VirtualRadar.exe   pid: 4684   type: File           42C: C:\vrs\BaseStation.sqb
VirtualRadar.exe   pid: 4684   type: File           8FC: C:\vrs\BaseStation.sqb

agw
Posts: 2241
Joined: Fri Feb 17, 2012 3:20 am

Re: Bugs in 2.1.0

Post by agw » Fri Jan 02, 2015 12:31 am

svchost is a process that runs services - if you install Process Explorer from Microsoft (http://technet.microsoft.com/en-gb/sysi ... 96653.aspx) then you can use that to see which service is hogging the memory. You'll need to run it as administrator. You'll need to do a bit of detective work to work from the svchost process that's hogging memory to the actual service that's the culprit. Sometimes the service is pretty obvious from the name of the process that the service host is running, other times it can help to switch on the lower pane view (View | Show Lower Pane) and then show DLLs in the lower pane (View | Lower Pane View | DLLs).

The exception you hit is saying that the routes update failed because the routes file, StandingData.sqb, was open when it tried to overwrite it. Unfortunately the handle report is for BaseStation.sqb so it doesn't show whether VRS had the file open at the same time that it was overwriting it. It shouldn't be open, all of the code should be locking on an internal object (not a SQLite lock) when it tries to access StandingData.sqb. The update process acquires the internal lock before it closes the file and doesn't release it until it's finished replacing it with the new version.

You could try forcing the program to download StandingData.sqb again by going into %LOCALAPPDATA%\VirtualRadar and then deleting FlightNumberCoverage.csv. That file is just two lines of text, it holds the checksums for the currently downloaded files. If it is missing then the next time the program checks to see if any files need downloading it'll download everything. You can force it to check for a download by either restarting the program or just doing Tools | Download Data.

If you get the exception then running

Code: Select all

handle StandingData.sqb
should show you which processes are accessing the file.

YSWG
Posts: 18
Joined: Thu Oct 30, 2014 1:56 pm
Location: Wagga Wagga

Re: Bugs in 2.1.0

Post by YSWG » Mon Jan 05, 2015 4:35 am

Code: Select all

C:\Users\Blank\cmdfiles\Handle>handle StandingData.sqb

Handle v4.0
Copyright (C) 1997-2014 Mark Russinovich
Sysinternals - www.sysinternals.com

No matching handles found.
I now have a different issue, causes the web side of VRS to fail. Not sure why it was saying it was out of memory and space, it has 3GB free of space and only 40% memory usage. The out of space warning seems to have been lost in the log file. :(

Code: Select all

[2015-01-05 04:21:33.341 UTC] [t1] Value cannot be null.
Parameter name: hdc
   at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits)
   at System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height)
   at System.Drawing.BufferedGraphicsContext.AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
   at System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
   at System.Drawing.BufferedGraphicsContext.Allocate(IntPtr targetDC, Rectangle targetRectangle)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.SplitContainer.WndProc(Message& msg)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

[2015-01-05 04:21:33.377 UTC] [t1] Out of memory.
   at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
   at System.Drawing.Image.FromFile(String filename)
   at VirtualRadar.Library.ParallelAccessImageFileManager.LoadFromFile(String fileName)
   at VirtualRadar.WebSite.ImagePage.CreateLogoImage(String logo, String folder)
   at VirtualRadar.WebSite.ImagePage.BuildInitialImage(ImageRequest imageRequest, RequestReceivedEventArgs args, Image& stockImage, Image& tempImage)
   at VirtualRadar.WebSite.ImagePage.DoHandleRequest(IWebServer server, RequestReceivedEventArgs args)
   at VirtualRadar.WebSite.Page.HandleRequest(Object sender, RequestReceivedEventArgs args)
   at VirtualRadar.WebSite.WebSite.RequestContent(RequestReceivedEventArgs args)
   at VirtualRadar.WebSite.WebSite.Server_RequestReceived(Object sender, RequestReceivedEventArgs args)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at VirtualRadar.WebServer.WebServer.OnRequestReceived(RequestReceivedEventArgs args)
   at VirtualRadar.WebServer.WebServer.GetContextHandler(IAsyncResult asyncResult)
I've rebooted VRS.

YSWG
Posts: 18
Joined: Thu Oct 30, 2014 1:56 pm
Location: Wagga Wagga

Re: Bugs in 2.1.0

Post by YSWG » Fri Jan 09, 2015 7:16 am

Ceased updating the reports again. I've only had this issue since updating it. :(

Code: Select all

[2015-01-09 01:09:50.056 UTC] [t18] Database writer plugin caught exception on message processing: System.Data.SQLite.SQLiteException: database is locked
database is locked
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at System.Data.SQLite.SQLiteTransaction.Commit()
   at VirtualRadar.Database.TransactionHelper.EndTransaction()
   at VirtualRadar.Database.BaseStation.Database.EndTransaction()
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.TrackFlight(BaseStationMessage message)
   at VirtualRadar.Plugin.BaseStationDatabaseWriter.Plugin.MessageQueue_MessageReceived(BaseStationMessageEventArgs args)

agw
Posts: 2241
Joined: Fri Feb 17, 2012 3:20 am

Re: Bugs in 2.1.0

Post by agw » Sat Jan 10, 2015 2:26 pm

When it stops updating the reports with the "Database is locked" message that's the time when running "handle BaseStation.sqb" would be useful - it should tell me everything that's accessing the file. Basically when you get the "Database writer plugin caught exception on message processing: System.Data.SQLite.SQLiteException: database is locked" message in the log could you:

1. Run handle basestation.sqb
2. Take a look at the log and wait to see if there is a lock message that is dated after your run of handle basestation.sqb
3. Then restart VRS or do whatever you're doing to get things going again

Regarding the out of memory exception - there was a problem a while ago whereby if there was a problem writing to BaseStation.sqb then the queue of things to write to BaseStation.sqb would keep growing until it exhausted memory so it's possible that the two problems may be related.

Just to check - did you ever run one of the preview versions of 2.1 or is this a straight upgrade from 2.0.2 to 2.1.0, you never ran any of the betas for 2.1?

YSWG
Posts: 18
Joined: Thu Oct 30, 2014 1:56 pm
Location: Wagga Wagga

Re: Bugs in 2.1.0

Post by YSWG » Thu Jan 29, 2015 11:21 am

Negative, just used the final release versions. So far it has stabilised with those errors.

This morning it seems the image end had issues with multiple errors (so much so that I had to kill it since I got error after error)

Code: Select all

[2015-01-28 22:30:49.626 UTC] [t1] Value cannot be null.
Parameter name: hdc
   at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits)
   at System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height)
   at System.Drawing.BufferedGraphicsContext.AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
   at System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
   at System.Drawing.BufferedGraphicsContext.Allocate(IntPtr targetDC, Rectangle targetRectangle)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.SplitContainer.WndProc(Message& msg)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

[2015-01-28 22:30:53.144 UTC] [t18] Exception thrown on background thread
   at VirtualRadar.WinForms.MainView.BubbleExceptionToGui(Exception ex)
   at VirtualRadar.Program.BackgroundThread_ExceptionCaught(Object sender, EventArgs`1 args)
   at VirtualRadar.WebServer.WebServer.OnExceptionCaught(EventArgs`1 args)
   at VirtualRadar.WebServer.WebServer.GetContextHandler(IAsyncResult asyncResult)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.ListenerAsyncResult.WaitCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
-- INNER EXCEPTION --
Exception {System.ArgumentException: Parameter is not valid.} caught during request for {/VirtualRadar/images/iPhoneSplash.png} - see inner exception for details
No stack trace
-- INNER EXCEPTION --
Parameter is not valid.
   at System.Drawing.Image.Clone()
   at VirtualRadar.WebSite.ImagePage.CreateIPhoneSplash(String webSiteAddress, Boolean isIPad, List`1 pathParts)
   at VirtualRadar.WebSite.ImagePage.BuildInitialImage(ImageRequest imageRequest, RequestReceivedEventArgs args, Image& stockImage, Image& tempImage)
   at VirtualRadar.WebSite.ImagePage.DoHandleRequest(IWebServer server, RequestReceivedEventArgs args)
   at VirtualRadar.WebSite.Page.HandleRequest(Object sender, RequestReceivedEventArgs args)
   at VirtualRadar.WebSite.WebSite.RequestContent(RequestReceivedEventArgs args)
   at VirtualRadar.WebSite.WebSite.Server_RequestReceived(Object sender, RequestReceivedEventArgs args)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at VirtualRadar.WebServer.WebServer.OnRequestReceived(RequestReceivedEventArgs args)
   at VirtualRadar.WebServer.WebServer.GetContextHandler(IAsyncResult asyncResult)
ERRORCapture.JPG
ERRORCapture.JPG (64.5 KiB) Viewed 4104 times
ERRORCapture1.JPG
ERRORCapture1.JPG (83.27 KiB) Viewed 4104 times

agw
Posts: 2241
Joined: Fri Feb 17, 2012 3:20 am

Re: Bugs in 2.1.0

Post by agw » Tue Feb 03, 2015 12:41 am

The exceptions are saying that it's run out of memory. Did you have any other exceptions from before those ones? Or were they repeated so many times that it ended up filling the log?

Locked