Skip to content
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

Closed
firebird-automations opened this issue Jun 12, 2016 · 12 comments

Comments

@firebird-automations
Copy link

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]

String \[System\.NullReferenceException\]
Failure Bucketing
Data Bucketing

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]]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Link: This issue relate to DNET582 [ DNET582 ]

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Can you replicate it (i.e. under some stress)?

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

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.

@firebird-automations
Copy link
Author

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.

@firebird-automations
Copy link
Author

Commented by: Hennadii Zabula (zabulus)

Jiri, it's all same old problem when managed objects is used on a finalizer path.

@firebird-automations
Copy link
Author

Commented by: @cincuranet

I know. But I need to replicate it to fix the root cause. Band aiding doesn't help.

@firebird-automations
Copy link
Author

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
at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.TransactionCompleted() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbConnectionInternal.cs:line 281
at FirebirdSql.Data.FirebirdClient.FbTransaction.CompleteTransaction() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbTransaction.cs:line 305
at FirebirdSql.Data.FirebirdClient.FbTransaction.Commit() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbTransaction.cs:line 143
at FirebirdSql.Data.FirebirdClient.FbCommand.CommitImplicitTransaction() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbCommand.cs:line 745
at FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteNonQuery() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbCommand.cs:line 499
at SIMON.SQLDBHandling.callProcedure(BlockingCollection`1 stackList) in c:\_dev\SiMon3\SiMon_DLL\SQLDBHandling.vb:line 8314

@firebird-automations
Copy link
Author

Commented by: André Ziegler (andre.ziegler)

after removing the EF cache package I no longer see the issue:

https://www.nuget.org/packages/EntityFramework.Cache

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Link: This issue is related to DNET698 [ DNET698 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: In Progress [ 3 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: vNext - Finalizers [ 10807 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Fix Version: vNext [ 10804 ]

Fix Version: vNext - Finalizers [ 10807 ] =>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants