VS2008 Out of memory exception - exception

every couple hours or so, when compiling my solution (fairly big one), i'm keep getting the following exception:
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: The "ResolveAssemblyReference" task failed unexpectedly.
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: at System.Reflection.AssemblyName.nGetFileInformation(String s)
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: at Microsoft.Build.Shared.AssemblyNameExtension.GetAssemblyNameEx(String path)
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: at Microsoft.Build.Tasks.SystemState.GetAssemblyName(String path)
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: at Microsoft.Build.Tasks.ReferenceTable.NameAssemblyFileReference(Reference reference, String assemblyFileName)
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: at Microsoft.Build.Tasks.ReferenceTable.SetPrimaryFileItem(ITaskItem referenceAssemblyFile)
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: at Microsoft.Build.Tasks.ReferenceTable.SetPrimaryItems(ITaskItem[] referenceAssemblyFiles, ITaskItem[] referenceAssemblyNames, ArrayList exceptions)
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: at Microsoft.Build.Tasks.ReferenceTable.ComputeClosure(DependentAssembly[] remappedAssembliesValue, ITaskItem[] referenceAssemblyFiles, ITaskItem[] referenceAssemblyNames, ArrayList exceptions)
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute(FileExists fileExists, DirectoryExists directoryExists, GetDirectories getDirectories, GetAssemblyName getAssemblyName, GetAssemblyMetadata getAssemblyMetadata, GetRegistrySubKeyNames getRegistrySubKeyNames, GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue, GetLastWriteTime getLastWriteTime)
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute()
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1353,9): error MSB4018: at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)
Done building project "Point.App.csproj" -- FAILED.
Does anyone has any idea how to fix this?
Thanks

The errors that it seems to be giving you though are out of memory exceptions. Memory exceptions don't just come from not having enough memory. You can blow the stack or even have memory that is corrupt or incompatible with the mother board and run into things like this.
Now I am not saying that this is your issue, just something to look at.
How are your projects, DLLs, and other files related?
Debug your code. This means getting rid of all Errors and Warnings.
Un-link files one-by-one until you get to the bottom of the mess. Start with your DLLs, then the Projects, and finally your other files.

Then can you try adding true
to a PropertyGroup in your project file that doesn't have a Condition on it. Do this for all project files that seem to be having the problem.
Then reopen in VS and see if that has avoided the issue.
refer below link :
https://social.msdn.microsoft.com/Forums/vstudio/en-US/cdad1ba3-8c0a-4b3c-8259-83c7f7b5a98b/vs2008-systemoutofmemoryexception-s-just-keep-coming?forum=msbuild

Related

monolog catch Fatal Error: Allowed memory size exhausted

I would like to know how I can make monolog for symfony 4 logging fatal errors:
PHP Fatal error: Allowed memory size of xxxx exhausted
to the main log handler.
In my application these errors are logged in the PHP error_log file.
You can catch fatal error in PHP7, with Throwable exception. https://www.php.net/manual/en/class.throwable.php
This answer can help you https://stackoverflow.com/a/44280053/4939326.

SSIS package failed to load due to error 0xC0011008 "Error loading from XML

I am trying to execute a ssis package in VS 2015, if i execute with protection level "EncryptSensitiveWithPassword". I will get the error, but if i change the protection level to "Do not save sensitive data", the package could execute successfully. Could someone help me? I have tried change the "Run64BitRuntime to false", it is not working. Thank you~~~
The error msg detail beblow:
Exception deserializing the package "The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when CPackage::LoadFromXML fails.
". (Microsoft Visual Studio)
Program Location:
at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.LaunchVsDebugger(IVsDebugger iVsDebugger, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.ValidateAndRunDebugger(Int32 flags, IOutputWindow outputWindow, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DtsPackagesFolderProjectFeature.ExecuteTaskOrPackage(ProjectItem prjItem, String taskPath)
===================================
The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when CPackage::LoadFromXML fails.
Program Location:
at Microsoft.SqlServer.Dts.Runtime.Wrapper.Sql2012.IDTSProject100.GetPackageByName(String bstrPackageStreamName)
at Microsoft.DataTransformationServices.Project.DebugEngine.InterfaceWrappers.Sql2012IDTSProject100Wrapper.GetPackageByName(String bstrPackageStreamName)
at Microsoft.DataTransformationServices.Project.DebugEngine.DtsProgramNode.CreateRuntimePackageInternal(IDtsHost& host, Process& process, Package& dtsPackage)

Error Message not generated

1 - Build flex on Windows 7 64 bits, and when error is thrown, i can get both the error code and error Message
2015/06/15 16:47:26:192 [ERROR] MyClass Error: Error #3013: File or directory is in use.
at flash.filesystem::FileStream/open()
at MyClass/openCsv()
...
2 - Build flex on Windows 2008 R2 64 Bits, and when error is thrown, i can get only the error code, but not the error message
2015/06/15 17:15:17:215 [ERROR] MyClass Error: Error #3013
at MyClass/openCsv()
...
Thanks for your help :)
This issue was not due to the operating system
The response is : We can get the error message only in debug mode, but not in production mode
Also, you can take a look to the previous answers:
Get Full Exception Error with Flex

MySQL fatal error during information_schema query (software caused connection abort)

I'm using MySQL server (5.6) database extensively through its .NET connector (6.8.3). All tables are created with MyISAM engine for performance reasons. I have only one process with one thread accessing the DB sequentially, so there is no need for transactions and concurrency.
Please note: this is unlikely to be a timeout configuration issue, because my query is trivial. I did read all timeout related questions (links below). Of course, I may be wrong, but saying just "increase the net_write_timeout parameter" without explaining why exactly it can be relevant here is not an answer.
Some of my tables are created dynamically during program execution so I'm using create on first use idiom, with the following method to check whether the table exists:
private bool TableExists(Space baseSpace, Space extendedSpace)
{
var tableName = GenerateTableName(baseSpace, extendedSpace);
var sqlConnection = this.connectionPool.Take();
this.existsCommand.Connection = sqlConnection;
this.existsCommand.Parameters["#tableName"].Value = tableName.Trim('`');
var result = existsCommand.ExecuteScalar() as long?;
this.connectionPool.Putback(sqlConnection);
return result == 1;
}
The query inside the existsCommand is as follows (broken into two lines here for readability):
SELECT COUNT(*) FROM information_schema.tables
WHERE table_schema = 'my_schema' AND table_name = #tableName
The value of this.existsCommand.Parameters["#tableName"].Value variable contains the correct name of the table, that already exists in this case ("sample_matches_A_to_A_x").
The this.connectionPool.Take() method returns the first MySqlConnection object from my collection of available connections that meets the following predicate:
private bool IsAvailable(MySqlConnection connection)
{
return connection != null
&& connection.State == System.Data.ConnectionState.Open;
}
Usually this works correctly, for a number of hours and then suddenly an exception occurs on this line:
var result = existsCommand.ExecuteScalar() as long?;
With the following contents:
Fatal error encountered during command execution
Stack trace:
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()
at implementation.SampleMatchesMySqlTable.TableExists(Space baseSpace, Space extendedSpace) in C:...\SampleMatchesMySqlTable.cs:line 168
Inner exception:
Unable to write data to the transport connection: Software caused connection abort.
Inner exception:
Software caused connection abort.
with ErrorCode equal to 10053 and SocketErrorCode being System.Net.Sockets.SocketError.ConnectionAborted
Stack trace of the innermost exception:
at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
I've reviewed the following possible duplicates and unfortunately they don't seem relevant here, except one:
SHOW TABLES encountered Fatal error encountered during command execution
Unfortunately, it doesn't provide enough information to decide whether it is an exact duplicate nor it's answered.
There relate to timeout problems. My query is small, returns only one integer, and searches for a table in a meta-table containing something like 20 other tables.
Fatal error encountered during command execution. in C# when i use Insert Into
https://stackoverflow.com/questions/7895178/fatal-error-in-mysql
MySQL Exception - Fatal Error Encountered During Data Read
Fatal error encountered during data read
Fatal error causing timeout -mysql
ADO.Net Entity framework, Fatal error encountered during data read
Different error regarding reading the resultset:
Fatal error encountered during command execution
Syntax errors and connection string issues:
Mysql Fatal error encountered during command execution
fatal error encountered during execution... during update
Fatal error encountered during command execution
fatal error encountered during command execution during update
fatal error encountered during command execution c# mysql
Fatal error encountered during command execution with a mySQL INSERT
I have Fatal error encountered during command execution
MySql exception was unhandled - Fatal error encountered during command execution
https://stackoverflow.com/questions/24098561/mysql-fatal-error-encountered-during-command-execution-in-c-sharp
Fatal Error Encounter During Command Execution MySQL VB
"Fatal error encountered during command execution." mysql-connector .net
"Fatal error encountered during command execution."
C#, MySQL - fatal error encountered during command execution- Checked other solutions, something I am Missing
Creating a view:
"fatal error encountered during command execution" when trying to add a view from MySQL DB
Reading CSV files:
Fatal error encountered during command execution while importing from csv to mysql
MySQL fatal error encountered during command execution - looping through all csv files in folder for load data local infile
I ended up modifying the IsAvailable method as follows:
private bool IsAvailable(MySqlConnection connection)
{
var result = false;
try
{
if (connection != null)
{
result = connection.Ping();
}
}
catch (Exception e)
{
Console.WriteLine("Ping exception: " + e.Message);
}
return result && connection.State == System.Data.ConnectionState.Open;
}
The .Ping call seems to be better in verifying connection's state then its properties, although it's very poorly documented. From some other sources I've read in the meantime:
an alternative is to run a simple query like SELECT 1 FROM DUAL instead of calling Ping.
Also, there seems that sometimes a DataReader, even though it was disposed (everything is implemented with the using statement), is still attached to the connection for some brief period of time. Because of this I've modified the condition to this:
if (connection != null && connection.State == ConnectionState.Open)
The State property has the Executing value as long as a DataReader is attached to it, so additionally verifying if it's Open at the beginning works fine here.

fatal error LNK1561: entry point must be defined in "jpeg_read"

I working on "jpegtbx_1.4",But for compile jpeg_read gives the following error: LINK : fatal error LNK1561: entry point must be defined C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'jpeg_read.c' failed. Who knows why this error occurs?