Application crash after taking memory snapshot

Questions about YourKit .NET Profiler
Post Reply
Nagilo
Posts: 13
Joined: Tue Oct 24, 2006 8:06 am

Application crash after taking memory snapshot

Post by Nagilo »

Hello,

I'm trying to capture a memory snapshot from my profiled application. The profiler tells me that there was an internal error and that the snapshot is not valid. Second try and my application is gone. What can I do? Here's the error from the log-file.

Best regards.

Matthias Heise
AutomationX GmbH



[YourKit Profiler 3.0.5 for .NET]
OS: Windows XP 5.1
CLR: v2.0.50727
Assertion failed: value is NULL: ProfilerCore.cpp, line: 1155
[ 62.371] [ObjectReferences] ExceptionAddress = 7C812A7B
[ 62.374] [ObjectReferences] ExceptionCode = 1
[ 62.377] [ObjectReferences] ExceptionFlags = 0
[ 62.380] [ObjectReferences] ExceptionRecord = 00000000
[ 62.382] [ObjectReferences] NumberParameters = 0
[ 62.388] C [KERNEL32.dll+0x12a7b]
[ 62.393] C [yjpagent.dll+0x2879e]
[ 62.398] C [yjpagent.dll+0x40f53]
[ 62.403] C [yjpagent.dll+0x41305]
[ 62.408] C [yjpagent.dll+0x4155d]
[ 62.413] C [yjpagent.dll+0x4154f]
[ 62.418] C [yjpagent.dll+0x41734]
[ 62.429] C [yjpagent.dll+0x36d3]
[ 62.435] C [mscordbc.dll+0x5f05]
[ 62.443] C [mscorwks.dll+0x2ee085]
[ 62.448] C [mscorwks.dll+0x2d2c67]
[ 62.453] C [mscorwks.dll+0x19a120]
[ 62.458] C [mscorwks.dll+0xf7694]
[ 62.463] C [mscorwks.dll+0xf5f68]
[ 62.469] C [mscorwks.dll+0xfdfa1]
[ 62.474] C [mscorwks.dll+0xfdf4b]
[ 62.478] C [mscorwks.dll+0x2edbb7]
[ 62.483] C [yjpagent.dll+0x460b4]
[ 62.488] C [yjpagent.dll+0x46424]
[ 62.493] C [yjpagent.dll+0x4646e]
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Hello Matthias,

Is this problem reproducible?

What kind of application it is?

Is the problem reproducible with other applications?

Could you please upload the invalid snapshot to our ftp:

ftp://upload.yourkit.com/pub/
empty password


Best regards,
Anton
Nagilo
Posts: 13
Joined: Tue Oct 24, 2006 8:06 am

Post by Nagilo »

Hello,

I would like to upload the files, but I don't get any connection to the FTP server. What user name do I have to use?

The problem is reproducible with the same application but not with others. The application is used as a server running without any GUI but with a NotifyIcon in the tray. It uses several threads.

Thanks

Matthias
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

ftp://upload.yourkit.com/pub/
user: ftp
empty password
Nagilo
Posts: 13
Joined: Tue Oct 24, 2006 8:06 am

Post by Nagilo »

I uploaded two file beginning with AX.Server... to your FTP folder.

Thanks

Matthias
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Thank you.

Could you please try whether the following fixes the problem:

Please download this file
http://www.yourkit.com/download/tmp/200 ... pagent.dll

and write it over
<path to YourKit Profiler 3.0.5 for .NET>\bin\win32\yjpagent.dll

Restarting profiled application, is it possible to capture snapshots?
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Thank you for snapshots. Can you please upload the .NET application which demonstrates the problem. It's very difficult to locate the problem without the application. If necessary we can sign NDA.

Thank you in advance.

Best regards,
Vladimir Kondratyev
YourKit, LLC
http://www.yourkit.com
"Don't get lost in data, get information!"
Nagilo
Posts: 13
Joined: Tue Oct 24, 2006 8:06 am

Post by Nagilo »

Hello,

it's not easy to give you the application, cause it needs full setup and a database. Furthermore I have to check out if I'm allowed to send you the application. I will contact you again tomorrow. The compiled version is suitable or is any source code needed?


Best regards

Dipl.-Inf. Matthias Heise
Software Designer


AutomationX GmbH
Teslastra??e 8
A-8074 Grambach bei Graz / Austria
Tel. +43 / 316 / 4000 - 327
Fax +43 / 316 / 4000 - 39
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

The compiled version is suitable
Yes. Just being able to run that application with the profiler would be enough. Of course, an addition of the source code would be fine, however not critical at all.

Did you have a chance to try the .dll with proposed fix? If not, we'd appreciate if you could do it when you have time.
Nagilo
Posts: 13
Joined: Tue Oct 24, 2006 8:06 am

Post by Nagilo »

Hi again,

unfortunately the profiler does not recognize any application to profile anymore.

Matthias Heise
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Please run "regsvr32 yjpagent.dll" command in console.

Best regards,
Vladimir Kondratyev
YourKit, LLC
http://www.yourkit.com
"Don't get lost in data, get information!"
Nagilo
Posts: 13
Joined: Tue Oct 24, 2006 8:06 am

Post by Nagilo »

Hello,

now the profiler recognized applications but the error is still there. I'll let you know if I can send you our application tomorrow.

Best regards

Matthias Heise
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Please send us all the log file under the USER_HOME/.ynp/log directory to support(at)yourkit.com. New yjpagent.dll logs additional info.

Best regards,
Vladimir Kondratyev
YourKit, LLC
http://www.yourkit.com
"Don't get lost in data, get information!"
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Hello,
but the error is still there
This is not the same error, so we'd appreciate a lot corresponding log.

Best regards,
Anton
Nagilo
Posts: 13
Joined: Tue Oct 24, 2006 8:06 am

Post by Nagilo »

Good morning,

I send you the requested log files to the email address you gave me.

Matthias
Post Reply