What's this panic: ViewSrv 11 ???
| Tue, 2003-07-22 13:41 | |
|
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? : Thanks a lot. Michal |
|






:
Forum posts: 1918
( Developer Library » API Reference » System panic reference)
The ViewServ 11 panic means
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
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
Forum posts: 363
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
Forum posts: 1918
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:
Clever use of Active Objects should help overcome this.
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
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
Forum posts: 363
Happy coding,
Pawel
Forum posts: 1918
It looks like this may cause a problem (even if it theorically correct).
Cheers,
Eric
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
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
Forum posts: 16
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