×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    84

    Emulator crashes with Garden

    I'm trying to build an application in Carbide, but it crashes the emulator.

    Having spent most of the day trying to work this out, I'm running out of ideas...

    The application runs fine from Qt Creator, and compiles without error in Carbide -- but it even crashes the emulator if I remove all code from main.cpp (other than running exec() on the Qapplication object) and then rebuild.

    I'm using Qt 4.5.0-garden with Carbide 2.0 on Windows XP SP3, for 3rd edition, FP2.

    I can import and run QtS60HelloWorld and other examples in the emulator without it crashing.

    The QMAKESPEC system environment variable is symbian-abld -- is that correct? I've checked the system PATH variable and Qt version from Windows > Preferences in Carbide, and this is 4.5.0-garden. I've tried re-importing and running clean. Can I get output from the emulator (if there is any)?

    Thanks

    Sam Dutton

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Emulator crashes with Garden

    Emulator is crashing or your application is crashing?? check logs in epocwind.out file to know the reason of emulator crash.

  3. #3
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    84

    Re: Emulator crashes with Garden

    Thanks for your reply.

    Emulator is crashing or your application is crashing??
    This is exactly what I thought. But (excuse my ignorance) if I remove all the code from main.cpp (including includes) other than QApplication exec() call, and clean and rebuild, why would the application crash?

    Excerpt from start and end of epocwind.out below. I'm new to S60, so this output doesn't mean much to me.

    Sam

    ..............

    PlatSecEnforcement OFF
    PlatSecDiagnostics ON
    PlatSecProcessIsolation ON
    PlatSecEnforceSysBin ON
    PlatSecDisabledCaps NONE
    0.000 Thread 03914458 created @ 0x3914458 - Win32 Thread ID 0x1364
    0.000 Thread EKern.exe::Supervisor created @ 0x47d3390 - Win32 Thread ID 0x133c
    0.000 Thread EKern.exe::DfcThread0 created @ 0x47d3fd8 - Win32 Thread ID 0x1378
    0.000 Thread EKern.exe::DfcThread1 created @ 0x47d43fc - Win32 Thread ID 0x137c
    0.000 Thread EKern.exe::TimerThread created @ 0x47d4cd8 - Win32 Thread ID 0x924
    0.200 Thread EKern.exe::FlashThread created @ 0x47db824 - Win32 Thread ID 0x398
    0.215 Thread EKern.exe::MultiMediaCard0 created @ 0x47dc894 - Win32 Thread ID 0x1038
    0.220 Thread EKern.exe::NandThread created @ 0x47e393c - Win32 Thread ID 0xac4
    0.230 Thread EFile.exe::Main created @ 0x47e47f0 - Win32 Thread ID 0x1458
    0.240 Thread EFile.exe::Local-047ebfc4 created @ 0x47ec284 - Win32 Thread ID 0x14d4
    0.250 Thread EFile.exe::LoaderThread created @ 0x47f2a30 - Win32 Thread ID 0x14e0
    0.250 Thread EFile.exe::StartupThread created @ 0x47f3764 - Win32 Thread ID 0x1454
    0.445 Thread E32STRT.EXE::Main created @ 0x47f6b34 - Win32 Thread ID 0x1350
    0.540 Thread EFile.exe::Local-047f6e14 created @ 0x47f70d4 - Win32 Thread ID 0x1544
    0.540 Thread EFile.exe::Local-047f73bc created @ 0x47f767c - Win32 Thread ID 0x1558
    0.635 Thread EFile.exe::InitCompleteThread created @ 0x47f8a80 - Win32 Thread ID 0x142c
    0.765 Assertion failed: Kernel must be unlocked
    Function: Kern::HalFunction(TInt, TInt, TAny*, TAny*)
    0.765 Assertion failed: Do not call in ISR context
    Function: Kern::HalFunction(TInt, TInt, TAny*, TAny*)
    0.765 Assertion failed: Kernel must be unlocked
    Function: NKern::LockSystem
    0.765 Assertion failed: Do not call in ISR context
    Function: NKern::LockSystem
    0.765 Assertion failed: Do not call in ISR context
    Function: NKern::Lock
    0.765 Assertion failed: Do not call from bare Win32 threads
    Function: NKern::Lock
    0.765 Assertion failed: Kernel must be locked exactly once
    Function: NFastMutex::Wait
    0.765 Assertion failed: Do not call in ISR context
    Function: NKern::Unlock
    0.765 Assertion failed: Do not call from bare Win32 threads
    Function: NKern::Unlock
    0.765 Assertion failed: Do not call in ISR context
    Function: NKern::Lock
    0.765 Assertion failed: Do not call from bare Win32 threads
    Function: NKern::Lock
    0.765 Assertion failed: Do not call in ISR context
    Function: NKern::Unlock
    0.765 Assertion failed: Do not call from bare Win32 threads
    Function: NKern::Unlock

    .
    .
    .

    123.730 [DOSSERVER] RDosServer::Connect()-CreateSession err: 0
    123.730 RDosSharedData::Open(RDosServer& aServer)
    123.730 [DOSSERVER] CDosSession::ServiceL()
    123.730 [DOSSERVER] CDosSession::DispatchMessageL()
    123.730 [DOSSERVER] EDosCreateSharedDataSubSession
    123.730 CDosSession::DispatchMessageL() calling CDosSharedDataBase::NewL(0xd6301c4)
    123.730 CDosSession::DispatchMessageL() iSDCounter = 1
    123.730 [DOSSERVER] CDosSharedDataBase* CDosSharedDataBase::NewL(0xd6301c4)
    123.730 [DOSSERVER] CDosSharedDataBase* CDosSharedDataBase::NewL(0xd6301c4)
    123.730 [DOSSERVER] CDosSharedDataBase::ConstructL(0xd6301c4)
    123.730 [DOSSERVER] dosService created, continuing...
    123.730 [DOSSERVER] CDosSession::SetupSubSessionL()
    123.730 [DOSSERVER] CDosSession::SetupSubSessionL() - aService valid
    123.730 [DOSSERVER] CDosSession::SetupSubSessionL() completed
    123.785 [<SRSF>] [Error!] CVCommandManager::ParseAllFilesFromDirectoryL(const TDesC16 &) CVCommandManager::ParseAllFilesFromDirectoryL - GetDir returns [-12] [F:Vcommandmanager.cpp][L:175][TId:217]
    123.785 [<SRSF>] [Error!] CVCommandManager::ParseAllFilesFromDirectoryL(const TDesC16 &) CVCommandManager::ParseAllFilesFromDirectoryL - GetDir returns [-12] [F:Vcommandmanager.cpp][L:175][TId:217]
    123.785 [<SRSF>] [Error!] CVCommandManager::ParseAllFilesFromDirectoryL(const TDesC16 &) CVCommandManager::ParseAllFilesFromDirectoryL - GetDir returns [-12] [F:Vcommandmanager.cpp][L:175][TId:217]
    123.785 [<SRSF>] [Error!] CVCommandManager::ParseAllFilesFromDirectoryL(const TDesC16 &) CVCommandManager::ParseAllFilesFromDirectoryL - GetDir returns [-12] [F:Vcommandmanager.cpp][L:175][TId:217]
    123.785 [<SRSF>] [Error!] CVCommandManager::ParseAllFilesFromDirectoryL(const TDesC16 &) CVCommandManager::ParseAllFilesFromDirectoryL - GetDir returns [-12] [F:Vcommandmanager.cpp][L:175][TId:217]
    123.785 [<SRSF>] [Error!] CVCommandManager::ParseAllFilesFromDirectoryL(const TDesC16 &) CVCommandManager::ParseAllFilesFromDirectoryL - GetDir returns [-12] [F:Vcommandmanager.cpp][L:175][TId:217]
    124.090 Thread vcommandmanager::MMFControllerProxyServer- created @ 0x48ba328 - Win32 Thread ID 0x1514
    124.140 TeUtl: ECN.HandleCallBack.<
    124.140 TeUtl: ECN.DoHandleCallBack.<
    124.140 TeUtl: ECN.DoHandleCallBack.>
    124.140 TeUtl: ECN.HandleCallBack.>
    124.140 CDRMClock::TimeChanged
    124.140 CDRMClock::TimeChanged ok
    124.385 [<SRSF>] [Error!] CVCommandManager::ParseAllFilesFromDirectoryL(const TDesC16 &) CVCommandManager::ParseAllFilesFromDirectoryL - GetDir returns [-12] [F:Vcommandmanager.cpp][L:175][TId:217]
    124.395 Thread vcommandmanager::MMFControllerProxyServer- created @ 0x48b9ac4 - Win32 Thread ID 0x112c
    124.435 TeUtl: ECN.HandleCallBack.<
    124.435 TeUtl: ECN.DoHandleCallBack.<
    124.435 TeUtl: ECN.DoHandleCallBack.>
    124.435 TeUtl: ECN.HandleCallBack.>
    124.435 CDRMClock::TimeChanged
    124.435 CDRMClock::TimeChanged ok
    124.440 [<SRSF>] [Error!] CContextProvider::CreateVCommandContextLC() CContextProvider::CreateVCommandContextLC SaveContext call failed [F:Contextprovider.cpp][L:99][TId:217]
    124.440 Thread vcommandmanager::VCManagerThread Killed -39
    124.440 TeUtl: ECN.HandleCallBack.<
    124.445 TeUtl: ECN.DoHandleCallBack.<
    124.445 TeUtl: ECN.DoHandleCallBack.>
    124.445 TeUtl: ECN.HandleCallBack.>
    124.445 CDRMClock::TimeChanged
    124.445 CDRMClock::TimeChanged ok
    124.700 Thread F1.exe::Main Panic E32USER-CBase 69
    Last edited by samdutton; 2009-07-07 at 14:59. Reason: Disabled smilies

  4. #4
    Registered User
    Join Date
    Feb 2007
    Location
    Tampere
    Posts
    370

    Re: Emulator crashes with Garden

    Hi,

    You could probably try two things -
    a) Clean your code. Then call epoc from command prompt, this will verify that your emulator works fine.
    b) build some sample Qt example provided alongwith the installation, and see if it works - this will ensure your environment for Qt works fine alongside s60.

    Regards
    Regards

    - MVP
    "Dare To Dream" - A.P.J.Kalam

  5. #5
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Emulator crashes with Garden

    What your application exactly do? Are you using cleanup stack (symbian) in your application?

  6. #6
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    84

    Re: Emulator crashes with Garden

    What your application exactly do?
    The application is fairly straightforward. It gets some XML via HTTP, parses the XML and displays the result in QWidgets in a QMainWindow. I know it's failing at runtime, but (for what it's worth) it compiles without warnings and runs OK when compiled as a desktop app in Qt Creator.

    The application uses a couple of QWidget subclasses, with associated controller classes derived from QObject. There are also utility classes for dealing with XML, etc. Signals and slots are used .

    Are you using cleanup stack (symbian) in your application?
    Sorry -- not sure I understand what this means.

    Project file contents below. I've tried (on different PCs) Qt 4.5.0-garden and 4.5.2-tower, but the emulator (i.e. the application, I guess) still crashes.

    Sam

    ......................................

    TEMPLATE = app
    TARGET = myApp
    QT += core \
    gui \
    xml \
    network
    HEADERS += carview.h \
    carviewcontroller.h \
    error.h \
    fileutilities.h \
    globaldata.h \
    httputilities.h \
    maincontroller.h \
    mainwindow.h \
    teamview.h \
    teamviewcontroller.h \
    view.h \
    viewcontroller.h \
    xmlutilities.h \
    myApp.h
    SOURCES += carview.cpp \
    carviewcontroller.cpp \
    error.cpp \
    fileutilities.cpp \
    globaldata.cpp \
    httputilities.cpp \
    maincontroller.cpp \
    mainwindow.cpp \
    teamview.cpp \
    teamviewcontroller.cpp \
    view.cpp \
    viewcontroller.cpp \
    xmlutilities.cpp \
    myApp_reg.rss \
    main.cpp \
    myApp.cpp
    RESOURCES +=
    symbian:TARGET.UID3 = 0xE841C292
    Last edited by samdutton; 2009-07-07 at 10:14. Reason: Error in project file listing

  7. #7
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    84

    Re: Emulator crashes with Garden

    a) Clean your code. Then call epoc from command prompt, this will verify that your emulator works fine.
    b) build some sample Qt example provided alongwith the installation, and see if it works - this will ensure your environment for Qt works fine alongside s60.
    Thanks for the suggestions.

    Here's what I tried...

    1. Removed all extraneous code and includes from main.cpp, so it looks like this:

    #include <QtGui/QApplication>
    #include <QMainWindow>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    QMainWindow w;
    w.show();
    return a.exec();
    }
    2. Ran Project > Clean... The projects builds without errors or warnings.

    3. Ran the emulator from epoc.exe. Worked fine, e.g. opening a URL.

    4. Ran the application -- the emulator crashes.

    Why would the application crash if there's nothing in main.cpp except for the code above -- or am I missing something obvious?

    Sam

  8. #8
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Emulator crashes with Garden

    Hmm, really wired situation. just to know, what are you doing in a class that is derived from QMainWindow?? if possible past some relevant code.
    Last edited by savaj; 2009-07-07 at 14:51.

  9. #9
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    84

    Re: Emulator crashes with Garden

    what are you doing in a class that is derived from QMainWindow??
    Not much. Just a layout method and an instance method.

    I've just noticed that the Carbide compiler needs a patch, so I'll try that.

    Sam

  10. #10
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: Emulator crashes with Garden

    124.700 Thread F1.exe::Main Panic E32USER-CBase 69
    IIRC, this panic means you're using the cleanup stack before you've created it. However, in Qt for S60, Open C and/or the qt_main.lib(?) that you link all apps with creates this for you. So I'd suggest you either need to install the updated version of the Open C plugin, to your SDK (it's a beta release provided with Tower), or you've got a dirty build environment from an earlier release.

    Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×