Empty StackTrace NHibernate Profiler .4048 on Win 10 Creators Fall Update.

303 views
Skip to first unread message

Alexei Velesnitski

unread,
Nov 15, 2017, 3:04:45 AM11/15/17
to nhprof
Hello,
Thank you for awesome product. 

After update to Win 10 Creators Fall Update using NHibernate Profiler .4048 most web requests show empty stacktrace in my MVC app.
Application_Start however shows stacktrace. Sql, Alerts and Tables tab in all sessions - work.
Please check attached screenshots:
with working stacktrace and not working:





NHibernate Profiler .4048 works for all other Win 10(NOT updated to Creators Fall) machines with the same codebase. (Updated 1 box this morning to Win 10 CFU and seeing no stacktrace for web requests)
Can you please advice.

Marcin Kasperski

unread,
Nov 16, 2017, 1:07:04 AM11/16/17
to nhprof
I'm having exactly the same problem - no stack trace on queries originating from asp.net mvc controller actions. Queries that fire before mvc kicks in (owin middleware in our case, for user auth) capture stack trace properly.
I do have Win10FCU and .net 4.7.1 runtime; the app is targeting 4.6.2 and referencing NHib 4.1.1. Both of my machines have the same config and both exhibit the same problem.
The only recent change was the upgrade to .net 4.7.1 via Win10FCU, so I'd suspect something in the new runtime causes this.

If there's a way to help diagnose this problem, let me know. This is a dealbreaker for me atm, and will be for the rest of the team, once they upgrade.

Oren Eini (Ayende Rahien)

unread,
Nov 17, 2017, 2:12:03 AM11/17/17
to nhprof
Can you provide us with the exact version numbers and a File > Save output from the profiler we can inspect?
Are you running CoreCLR or .NET 4.6.x?
Are you using the latest appender dll on your application size?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+unsubscribe@googlegroups.com.
To post to this group, send email to nhp...@googlegroups.com.
Visit this group at https://groups.google.com/group/nhprof.
For more options, visit https://groups.google.com/d/optout.

Alexei Velesnitski

unread,
Nov 20, 2017, 7:34:51 AM11/20/17
to nhprof
Hi,
NHibernate 5.0 (nuget, same problem on previous 4.x.x)
NHibernateProfiler 4.0.4048 (nuget)

NHProfiler Build 4048 executable (same problem with old v3.0-Build-3105)
.NET 4.6.2
HibernatingRhinos.Profiler.Appender.dll 4.0.4048.0

Have private info in the output, is there any other way to inspect?
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+un...@googlegroups.com.

Fitzchak Yitzchaki

unread,
Nov 20, 2017, 7:38:14 AM11/20/17
to nhp...@googlegroups.com
Hello,

Support for NHibernate 5 is coming soon.

Best Regards,

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Fitzchak Yitzchaki l Senior Software Engineer Mobile:+972-58-345-9538

To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+unsubscribe@googlegroups.com.

Marcin Kasperski

unread,
Nov 20, 2017, 7:42:11 AM11/20/17
to nhprof
Thanks for the reply,

Our application is compiled against full .net 4.6.2. My machines are both up to date with Win10 FCU, which ships with .net 4.7.1 runtime.
We're using NHProf client 4.0.4048 (latest). The appender is also 4.0.4048 (via nuget); the net46 artifacts of the appender are being referenced.
We're on NHibernate 4.1.1, with which we had no problems before.
My collegues have not yet updated to .net 4.7.1 runtime, and while using the same versions of the NHProf client and appender, they do not have any problems seeing the stack trace.

I've also tried with client version .4047 with no luck, and appender versions .4047 and .4046 also with no luck.

I'll pass the 'Save file' output in private message shortly.

Thanks!
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+un...@googlegroups.com.

Alexei Velesnitski

unread,
Nov 20, 2017, 8:45:45 AM11/20/17
to nhprof
Thanks for the reply,
but it seems that missing stacktrace is more likely Win 10 FCU problem than NHibernate 5.0.
I can confirm same profiler behavior with 
 <package id="NHibernate" version="4.1.1.4000" targetFramework="net462" />

Fitzchak Yitzchaki

unread,
Nov 21, 2017, 4:51:49 AM11/21/17
to nhp...@googlegroups.com
Yes, you are right.
It seems that when updated to .NET 4.7.1 they had a breaking change in this class:

Previously the ctor had another parameter, as can be seen here:

Best Regards,

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Fitzchak Yitzchaki l Senior Software Engineer Mobile:+972-58-345-9538


To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+unsubscribe@googlegroups.com.

Fitzchak Yitzchaki

unread,
Nov 21, 2017, 6:13:42 AM11/21/17
to nhp...@googlegroups.com
A new build would be created soon, which has support for .NET 4.7.1.

Please update the appedner.dll.

Best Regards,

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Fitzchak Yitzchaki l Senior Software Engineer Mobile:+972-58-345-9538


Marcin Kasperski

unread,
Nov 21, 2017, 6:56:53 AM11/21/17
to nhprof
I can confirm the new build resolves the issue, I can see stack traces from all calls and it takes me back to VS to proper file and line when double-clicked.
Thanks for prompt action! :)

Fitzchak Yitzchaki

unread,
Nov 21, 2017, 7:37:02 AM11/21/17
to nhp...@googlegroups.com
Great!

Best Regards,

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Fitzchak Yitzchaki l Senior Software Engineer Mobile:+972-58-345-9538


To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+unsubscribe@googlegroups.com.
Message has been deleted

Alexei Velesnitski

unread,
Nov 23, 2017, 6:19:15 AM11/23/17
to nhprof
Updated NHProfiler Appender to .4049 and WORKS now even for  
NH 5.0.1 and targetFramework="net471" 

<s>Still not working for .build 4049 & NH 5.0 and targetFramework="net462" 
Looking forward to update that supports NH 5.0 and targetFramework="net471"</s>

Thank you!

Fitzchak Yitzchaki

unread,
Nov 23, 2017, 6:22:24 AM11/23/17
to nhp...@googlegroups.com
Hello,

net462 should be supported.

You can create a sample app that fails using NHibernate 4 and I'll try it.

Support for NHibernate 5 is coming soon.

Best Regards,

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Fitzchak Yitzchaki l Senior Software Engineer Mobile:+972-58-345-9538


To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+unsubscribe@googlegroups.com.

Alexei Velesnitski

unread,
Nov 23, 2017, 6:49:58 AM11/23/17
to nhprof
<s></s> tag means that this text is invalid :)

.4049 works for NH 5.0 and targetFramework="net462" 
and
for NH 5.0 and targetFramework="net471" 

Fitzchak Yitzchaki

unread,
Nov 23, 2017, 7:21:19 AM11/23/17
to nhp...@googlegroups.com
Great!

Best Regards,

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Fitzchak Yitzchaki l Senior Software Engineer Mobile:+972-58-345-9538


To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+unsubscribe@googlegroups.com.

Fitzchak Yitzchaki

unread,
Nov 24, 2017, 3:03:57 AM11/24/17
to nhp...@googlegroups.com

Best Regards,

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Fitzchak Yitzchaki l Senior Software Engineer Mobile:+972-58-345-9538


Reply all
Reply to author
Forward
0 new messages