New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.NullReferenceException in FirebirdSql.Data.Common.Extensions.TryGetTarget [DNET684] #637
Comments
Modified by: @cincuranet |
Commented by: @cincuranet Can you replicate it (i.e. under some stress)? |
Modified by: @cincuranetstatus: Open [ 1 ] => In Progress [ 3 ] |
Commented by: André Ziegler (andre.ziegler) I'll try to repro it tomorrow. I did a long term run on parsing ETL files (generated by xperf/WPR.exe) and storing my interesting data in a database because parsing the ETL files is slow. |
Commented by: André Ziegler (andre.ziegler) ok, I repeated the same long term run and today it works and I haven't seen a crash. |
Commented by: Hennadii Zabula (zabulus) Jiri, it's all same old problem when managed objects is used on a finalizer path. |
Commented by: @cincuranet I know. But I need to replicate it to fix the root cause. Band aiding doesn't help. |
Commented by: Kraus Matthias (xnet) I think we ran in the same issue, our error handling show the following informations. Error: (callProcedure) Object reference not set to an instance of an object. - at FirebirdSql.Data.Common.Extensions.TryGetTarget[T](WeakReference weakReference, T& target) in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\Common\Extensions.cs:line 75 |
Commented by: André Ziegler (andre.ziegler) after removing the EF cache package I no longer see the issue: |
Modified by: @cincuranet |
Modified by: @cincuranetstatus: In Progress [ 3 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: vNext - Finalizers [ 10807 ] |
Submitted by: André Ziegler (andre.ziegler)
Relate to DNET582
Is related to DNET698
While testing my app I got a crash and analyzing the dmp shows a System.NullReferenceException in FirebirdSql.Data.Common.Extensions.TryGetTarget:
PROBLEM_CLASSES:
CLR_EXCEPTION
Tid [0x2]
Frame [0x00]
FINALIZER
Tid [0x2348]
Frame [0x0b]: clr!FastCallFinalize
Failure Bucketing
BUGCHECK_STR: CLR_EXCEPTION_FINALIZER_System.NullReferenceException
DEFAULT_BUCKET_ID: CLR_EXCEPTION_FINALIZER_System.NullReferenceException
STACK_TEXT:
049ff1bc 51f20f89 firebirdsql_data_firebirdclient_ni!FirebirdSql.Data.Common.Extensions.TryGetTarget[[System.__Canon,_mscorlib]]+0x25
049ff1d4 51f3faee firebirdsql_data_firebirdclient_ni!FirebirdSql.Data.FirebirdClient.FbConnectionInternal.RemovePreparedCommand+0x6e
049ff20c 51f41751 firebirdsql_data_firebirdclient_ni!FirebirdSql.Data.FirebirdClient.FbCommand.Release+0x4d
049ff21c 51f409fc firebirdsql_data_firebirdclient_ni!FirebirdSql.Data.FirebirdClient.FbCommand.Dispose+0x50
FAILURE_IMAGE_NAME: FirebirdSql.Data.FirebirdClient.ni.dll
FAILURE_FUNCTION_NAME: FirebirdSql.Data.Common.Extensions.TryGetTarget[[System.__Canon,_mscorlib]]
BUCKET_ID_FUNCTION_STR: FirebirdSql.Data.Common.Extensions.TryGetTarget[[System.__Canon,_mscorlib]]
FAILURE_SYMBOL_NAME: FirebirdSql.Data.FirebirdClient.ni.dll!FirebirdSql.Data.Common.Extensions.TryGetTarget[[System.__Canon,_mscorlib]]
FAILURE_BUCKET_ID: CLR_EXCEPTION_FINALIZER_System.NullReferenceException_80004003_FirebirdSql.Data.FirebirdClient.ni.dll!FirebirdSql.Data.Common.Extensions.TryGetTarget[[System.__Canon,_mscorlib]]
The text was updated successfully, but these errors were encountered: