Discussion:
AOS Crash in AX 2009
(too old to reply)
Mike Frank
2009-04-28 13:30:03 UTC
Permalink
Hi Amar Nalla,

glad to hear, that someone is taking care of this problem. Sorry, that
it took me a while to answer.

As to your questions:

1. We are using the new impersonated Batch framework, and BC.Net called
through a WebService but no EP.

2. There was no heavy login activity at the time of the crash (ca. 11:00
am). Most of our users logging in the morning. We have about 35 to 40
users (with the Windows client) online at a time.

3. No specific pattern was discernible yet. We had the AOS crashing
three times now (we upgraded to 2009 from 3.0 on 2008/12/27) and I'm
only the last time sure, that the crash was caused by a deadlock,
because I had this message in eventlog.
I could not run SQL profiler, because I had to have it running all the
time and this is our production environment.

Some remarks on system setup:
We run two AOS. All regular users log onto AOS1. AOS2 runs only batch
jobs (AOS1 is not activated as batch server).
The WebService and with it the BC runs on AOS2 but connects to AOS1.

Hope this is any help to you.

Mike
Hi Steffen and Mike,
We made changes to avoid such crashes due to a deadlock, so I would like to
get more details on the cause of the crash.
Are you using BC.Net or EP or Batch? Are there lot of sessions logging in at
the same time? Is there a specific pattern that triggers the crash? Will you
be able to launch SQL Profier and trace the statements during the crash? I
can give more details on what to look for when this crash happens.
Thank you,
Amar Nalla [MSFT]
This posting is provided "AS IS" and confers no rights or warranties.
The problem lies definitely in the kernel. In my case the deadlock was in
SysClientSessions which is used for client session handling. But even if
the
deadlock was in a regular app table, this should never cause the AOS to
crash.
I thought also about reporting the problem to MS, but since my experience
with German AX Support is not so good (to be polite), I wanted to try the
newsgroup first. Since you have reported it, I can spare myself the
trouble.
Mike
I've dived into the issue each time my superiors hear about this problem,
and
each time I have to tell them that I can't really get to the heart of the
problem, as I supect that the problem lies in the kernel. I have already
requested support from MS but it is slow and cumbersome.
If you find a solution to the problem, pls let me know.
BTW. What is your setup? I have a appl. server, an aos on Server2008 and
a
sql 2005 on server 2008.
Thank you, at least I know now, that I'm not alone :-(
AX 2009 is indeed very unstable (and slow). Client crashes are
frequent.
Though AOS crashes are worst for me, because that involves every user.
And, with this kind of stuff you are pretty much stuck. If there is a
bug in
the application (and there are lots of them) you can at least have a
look at
the code and possibly fix it.
I've had this crash for the first time today aswell - IMHO AX2009 is
too
unstable - I have users crashing and AOS deadlocks as this one at
least 5+ pr
month
Three consecutive messages in EventLog
Object Server 01: Dialog issued for client-less session 2: Cannot
select a
0, 0.
Deadlock, where one or more users have simultaneously locked the
whole table
or part of it.
Object Server 01: Unexpected situation
More Information: Session Allocation Failed: Session is already
allocated.
Faulting application ax32serv.exe, version 5.0.1000.52, stamp
490c41df,
faulting module kernel32.dll, version 5.2.3790.4062, stamp
462646d5, debug?
0, fault address 0x0000bee7.
This was in our production environment.
Anyone seen this? AX 2009 is very unstable. We had never any AOS
crashes in
3.0.
And, why should a deadlock cause the server to crash?
As for the client-less session. Batch processing is not enabled for
this
server, but only for the second AOS, which has no regular user
sessions.
This second server was shutdown about 10 to 20 minutes before the
crash, but
that should never cause the first AOS to crash!
Mike
Amar Nalla [MSFT]
2009-04-30 17:04:23 UTC
Permalink
Hi Mike,
I have couple of questions.
1. Which database backend version are you using?
2. Which AOS is crashing? The regular users one (AOS1) or the batch one
(AOS2)?
3. You mention that out of 3 crashes, only once you saw a deadlock. Is that
correct? Can we assume that the other 2 crashes might not be related?

I will do some investigation locally here, to see if there is any scenario
in which a deadlock might trigger a crash. We fixed some issues in Ax 2009,
and I have not heard of this problem from our support team or SE team so I
will do some code analysis as we don't have a system that has this issue.
If you notice some pattern that you think will help me in debugging then you
should send me an e-mail at (***@.microsoft.com).

Thank you,
Amar Nalla
This posting is provided "AS IS" and confers no rights or warranties.
Post by Mike Frank
Hi Amar Nalla,
glad to hear, that someone is taking care of this problem. Sorry, that it
took me a while to answer.
1. We are using the new impersonated Batch framework, and BC.Net called
through a WebService but no EP.
2. There was no heavy login activity at the time of the crash (ca. 11:00
am). Most of our users logging in the morning. We have about 35 to 40
users (with the Windows client) online at a time.
3. No specific pattern was discernible yet. We had the AOS crashing three
times now (we upgraded to 2009 from 3.0 on 2008/12/27) and I'm only the
last time sure, that the crash was caused by a deadlock, because I had
this message in eventlog.
I could not run SQL profiler, because I had to have it running all the
time and this is our production environment.
We run two AOS. All regular users log onto AOS1. AOS2 runs only batch jobs
(AOS1 is not activated as batch server).
The WebService and with it the BC runs on AOS2 but connects to AOS1.
Hope this is any help to you.
Mike
Hi Steffen and Mike,
We made changes to avoid such crashes due to a deadlock, so I would like
to get more details on the cause of the crash.
Are you using BC.Net or EP or Batch? Are there lot of sessions logging in
at the same time? Is there a specific pattern that triggers the crash?
Will you be able to launch SQL Profier and trace the statements during
the crash? I can give more details on what to look for when this crash
happens.
Thank you,
Amar Nalla [MSFT]
This posting is provided "AS IS" and confers no rights or warranties.
The problem lies definitely in the kernel. In my case the deadlock was in
SysClientSessions which is used for client session handling. But even if
the
deadlock was in a regular app table, this should never cause the AOS to
crash.
I thought also about reporting the problem to MS, but since my experience
with German AX Support is not so good (to be polite), I wanted to try the
newsgroup first. Since you have reported it, I can spare myself the
trouble.
Mike
I've dived into the issue each time my superiors hear about this
problem, and
each time I have to tell them that I can't really get to the heart of the
problem, as I supect that the problem lies in the kernel. I have already
requested support from MS but it is slow and cumbersome.
If you find a solution to the problem, pls let me know.
BTW. What is your setup? I have a appl. server, an aos on Server2008
and a
sql 2005 on server 2008.
Thank you, at least I know now, that I'm not alone :-(
AX 2009 is indeed very unstable (and slow). Client crashes are
frequent.
Though AOS crashes are worst for me, because that involves every user.
And, with this kind of stuff you are pretty much stuck. If there is a
bug in
the application (and there are lots of them) you can at least have a
look at
the code and possibly fix it.
I've had this crash for the first time today aswell - IMHO AX2009 is
too
unstable - I have users crashing and AOS deadlocks as this one at
least 5+ pr
month
Three consecutive messages in EventLog
Object Server 01: Dialog issued for client-less session 2: Cannot
select a
record in Current client sessions (SysClientSessions). SessionId: 0,
0.
Deadlock, where one or more users have simultaneously locked the
whole table
or part of it.
Object Server 01: Unexpected situation
More Information: Session Allocation Failed: Session is already
allocated.
Faulting application ax32serv.exe, version 5.0.1000.52, stamp
490c41df,
faulting module kernel32.dll, version 5.2.3790.4062, stamp 462646d5,
debug?
0, fault address 0x0000bee7.
This was in our production environment.
Anyone seen this? AX 2009 is very unstable. We had never any AOS
crashes in
3.0.
And, why should a deadlock cause the server to crash?
As for the client-less session. Batch processing is not enabled for
this
server, but only for the second AOS, which has no regular user
sessions.
This second server was shutdown about 10 to 20 minutes before the
crash, but
that should never cause the first AOS to crash!
Mike
Mike Frank
2009-05-05 06:33:28 UTC
Permalink
Hi,
Post by Amar Nalla [MSFT]
1. Which database backend version are you using?
SQL Server
Post by Amar Nalla [MSFT]
2. Which AOS is crashing? The regular users one (AOS1) or the batch one
(AOS2)?
AOS1 is crashing
Post by Amar Nalla [MSFT]
3. You mention that out of 3 crashes, only once you saw a deadlock. Is that
correct? Can we assume that the other 2 crashes might not be related?
I can't be sure about this. The first crash was just a few days after go
live on 2009. I had so many problems then, that I just restarted the AOS
and prayed that it would not happen again.

Only the third time I did really investigate the issue.
Post by Amar Nalla [MSFT]
I will do some investigation locally here, to see if there is any scenario
in which a deadlock might trigger a crash. We fixed some issues in Ax 2009,
and I have not heard of this problem from our support team or SE team so I
will do some code analysis as we don't have a system that has this issue.
If you notice some pattern that you think will help me in debugging then you
Thank you. I'm wondering though, why there is no reaction from support
since Steffen reported here, that he was in contact with them. I
suppose, that is because they are afraid of escalating an error report
and instead try to convince the client, that it's not an issue :-( That
is why some people just give up reporting errors.

Mike
Rhod
2009-08-25 08:57:03 UTC
Permalink
We are also experiencing this problem. There seems to be no particular reason
for this.
Regards
Rhod Singer
Three consecutive messages in EventLog
Object Server 01: Dialog issued for client-less session 2: Cannot select a
record in Current client sessions (SysClientSessions). SessionId: 0, 0.
Deadlock, where one or more users have simultaneously locked the whole table
or part of it.
Object Server 01: Unexpected situation
More Information: Session Allocation Failed: Session is already allocated.
Faulting application ax32serv.exe, version 5.0.1000.52, stamp 490c41df,
faulting module kernel32.dll, version 5.2.3790.4062, stamp 462646d5, debug?
0, fault address 0x0000bee7.
This was in our production environment.
Anyone seen this? AX 2009 is very unstable. We had never any AOS crashes in
3.0.
And, why should a deadlock cause the server to crash?
As for the client-less session. Batch processing is not enabled for this
server, but only for the second AOS, which has no regular user sessions.
This second server was shutdown about 10 to 20 minutes before the crash, but
that should never cause the first AOS to crash!
Mike
Kanchamas C.
2010-03-25 10:18:01 UTC
Permalink
This post might be inappropriate. Click to display it.
AXDVR
2010-05-05 01:43:01 UTC
Permalink
Facing exactly the same issues as listed by Mike Frank, would appreciate if
any one knows the solution and the underlying problem for the crashes.

For me it is happening exactly in the morning of everyday when nobody is
logging into the application.

Hope the issue is solved for the other posters...
Three consecutive messages in EventLog
Object Server 01: Dialog issued for client-less session 2: Cannot select a
record in Current client sessions (SysClientSessions). SessionId: 0, 0.
Deadlock, where one or more users have simultaneously locked the whole table
or part of it.
Object Server 01: Unexpected situation
More Information: Session Allocation Failed: Session is already allocated.
Faulting application ax32serv.exe, version 5.0.1000.52, stamp 490c41df,
faulting module kernel32.dll, version 5.2.3790.4062, stamp 462646d5, debug?
0, fault address 0x0000bee7.
This was in our production environment.
Anyone seen this? AX 2009 is very unstable. We had never any AOS crashes in
3.0.
And, why should a deadlock cause the server to crash?
As for the client-less session. Batch processing is not enabled for this
server, but only for the second AOS, which has no regular user sessions.
This second server was shutdown about 10 to 20 minutes before the crash, but
that should never cause the first AOS to crash!
Mike
Mike Dole
2010-09-03 07:51:03 UTC
Permalink
Pretty much had the same issue, eventviewer showed:
Object Server 01: Dialog issued for client-less session 4: [Microsoft][SQL
Native Client]Invalid cursor position

Seemed like every time one of my batch jobs ran, the AOS crashed.
Recompiled the AOT and it has been stable after that...

Regards,

Mike Dole
Post by AXDVR
Facing exactly the same issues as listed by Mike Frank, would appreciate if
any one knows the solution and the underlying problem for the crashes.
For me it is happening exactly in the morning of everyday when nobody is
logging into the application.
Hope the issue is solved for the other posters...
Three consecutive messages in EventLog
Object Server 01: Dialog issued for client-less session 2: Cannot select a
record in Current client sessions (SysClientSessions). SessionId: 0, 0.
Deadlock, where one or more users have simultaneously locked the whole table
or part of it.
Object Server 01: Unexpected situation
More Information: Session Allocation Failed: Session is already allocated.
Faulting application ax32serv.exe, version 5.0.1000.52, stamp 490c41df,
faulting module kernel32.dll, version 5.2.3790.4062, stamp 462646d5, debug?
0, fault address 0x0000bee7.
This was in our production environment.
Anyone seen this? AX 2009 is very unstable. We had never any AOS crashes in
3.0.
And, why should a deadlock cause the server to crash?
As for the client-less session. Batch processing is not enabled for this
server, but only for the second AOS, which has no regular user sessions.
This second server was shutdown about 10 to 20 minutes before the crash, but
that should never cause the first AOS to crash!
Mike
Loading...