What's this panic: ViewSrv 11 ???

Login to reply to this topic.
Tue, 2003-07-22 13:41
Joined: 2003-07-22
Forum posts: 6
Hi,
my direct-screen-access app is running nice, but after several seconds (usually 15 on device, various on WINS), I get this panic: ViewSrv 11.

I'm desperate - can't find this panic in docs (that's one part of question - where do I find extensive listing of all panics).
When running in debugger, when panic occurs, my game code is not anywhere on the calling stack, so I assume it's not a result of direct function call.

Any clue?  Huh:
Thanks a lot.
Michal

Tue, 2003-07-22 17:03
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 1918
What's this panic: ViewSrv 11 ???
The list of panics is described in the Developer Library
( Developer Library » API Reference » System panic reference)

The ViewServ 11 panic means

Quote
Window already active.

An attempt was made to reactivate an active window. The request is sent by the client-side method RWindowBase::Activate().

On the server side, this panic is raised by CWsClientWindow::Activate() in response to an EWsWinOpActivate request.

Cheers,
Eric

Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Tue, 2003-07-22 17:14
Anonymous (not verified)
Forum posts: 2018
What's this panic: ViewSrv 11 ???
Thanks, but...

1. in the docs, there's mention of Window server panics and WSERV category, by the mentioned panic is called ViewSrv. Is this the same?

2. I checked my code, and I call CWsClientWindow::Activate() just once at creation time, and never again. If the panic code is really what you say, it doesn't make sense to me - app is running 15 seconds fine, and suddenly, after exactly same time, the error occurs.

Thanks,
Michal
Wed, 2003-07-23 16:42
Joined: 2003-05-27
Forum posts: 363
What's this panic: ViewSrv 11 ???
Hi there,

You are either blocking something in your program - a callback method like the ViewActivated or you are not responding to such a method because you have a long-running active object. The 15 seconds you are seeing is the timeout after the view server will kill your thread by panicking when it notices your program is not responsive to the view server requests.

Happy coding,
Pawel
Wed, 2003-07-23 16:47
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 1918
What's this panic: ViewSrv 11 ???
Sorry, I read your question too quickly. You're right, this panic is not documented in the SDL.

As far as I can remembern this correspond to a kind of time out event in the View Server. Here is a quote from a post in Forum Nokia:

Quote
As far as I am aware the View Server monitors applications for activity/inactivity, if it thinks the application is in some kind of infinite loop state it will close it.
Clever use of Active Objects should help overcome this.

Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Thu, 2003-07-24 15:12
Anonymous (not verified)
Forum posts: 2018
What's this panic: ViewSrv 11 ???
Thanks. I've a full-screen app (using direct screen access), and in CAknAppUi::ConstructL I set up a CPeriodic timer. In each Tick, I draw to screen.
I've no idea how my app could be blocking, when it only updates periodically during active object tick.

My app is doing basically this:
- in exported NewApplication func, create class derived from CAknApplication
- in its CreateDocumentL, create class derived from CEikDocument
- in its CreateAppUiL method, create class derived from CAknAppUi
- in its ConstructL, init graphics (DSA) and start timer
- in timer's callback, draw to screen

Is there some callback I should install and process? Or another class I need to register?

Thanks,
Michal
Thu, 2003-07-24 15:29
Joined: 2003-05-27
Forum posts: 363
What's this panic: ViewSrv 11 ???
So does this mean you do not have a default view in your app? The View Server tries to activate this, so this could be your problem.

Happy coding,
Pawel
Thu, 2003-07-24 16:13
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 1918
What's this panic: ViewSrv 11 ???
Maybe you should not start the timer in the ConstructL but a later stage.
It looks like this may cause a problem (even if it theorically correct).

Cheers,
Eric

Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Fri, 2003-07-25 11:35
Anonymous (not verified)
Forum posts: 2018
What's this panic: ViewSrv 11 ???
I got it work!
I made my app class inherit from CAknViewAppUi, and created class inherited from CAknView. Then using CAknViewAppUi::AddViewL and CAknViewAppUi::SetDefaultViewL.

If I could find description of the ViewSrv panic code, I could have sorted this earlier, shame it's missing in docs.

Thanks for assistance!
Michal
Tue, 2005-02-22 22:23
Joined: 2004-05-29
Forum posts: 16
What's this panic: ViewSrv 11 ???
the strange thing is that I get this panic on the device (N-Gage) when I use EPriorityStandard onwards
My app is only stable with priority low,but this is slow.

on emulator I don´t get this panic.

I guess the rendering process takes longer on the device, so my app can´t respond the window server.

NeoStrider

  • Login to reply to this topic.