You Are Here:

Community: Wiki

This page was last modified on 27 October 2008, at 15:46.

KIS000765 - Issues with MGFetch

From Forum Nokia Wiki




ID KIS000765 Creation date October 18, 2007
Platform S60 3rd Edition Devices All (S60 3rd Edition)
Category Symbian C++ Subcategory Multimedia


Keywords (APIs, classes, methods, functions):

Overview

MGFetch (class used for fetching filenames for Media Gallery content) requires ReadUserData capability. In addition, on the emulator a check against DRM capability is done by default. When trying to use MGFetch in an application built for GCCE UDEB target, a KERN-EXEC 3 panic is raised.

Description

S60 3rd Edition documentation (SDK help) states that MGFetch does not require any capabilities. However, it returns KErrPermissionDenied (-46) error when used. It works only when the application has ReadUserData capability.

MGFetch::RunL() implementation, when run in emulator, checks for DRM capability by default even if none of the media files are DRM protected.

An application using MGFetch::RunL() and built for GCCE UDEB target raises a KERN-EXEC 3 panic when a media file is selected. This issue occurs because UDEB builds contain debugging code that consumes more stack memory.

How to reproduce

Write an application that uses MGFetch::RunL. Run it in the emulator. Check the EPOCWIND.OUT log file and search for the "*PlatSec* ERROR" string.

EPOCWIND.OUT is the log file created by the S60 emulator. It is by default located under the user's temporary directory (usually C:\Documents and Settings\[Username]\Local Settings\Temp in Windows XP).

Solution

Specify ReadUserData capability.

Increase the stack size in the .mmp project definition file:

 EPOCSTACKSIZE 0x5000

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fKIS000313E5fE2dE5fCVideoPlayerUtilityE3aE3aSetE52otationE4cE28E29E5fcrashE5forE5ferroneousE5fbehaviorX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZKnowledgeBaseContentQ qdcZtypeQUqfntypeZKnownIssueQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZKnowledgeBaseContentQ qfnZtypeQUqfntypeZKnownIssueQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZKnowledgeBaseContentQ qrdfZtypeQUqfntypeZKnownIssueQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ
RDF Facets: qfnZuserE5FtagQSxmgfetchX