×

Discussion Board

Page 1 of 3 123 LastLast
Results 1 to 15 of 35
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Epoc is constantly crashing

    Hello developers,

    problem: every attempt to run even simple application crashes

    my configuration:
    • OS: Windows Xp SP3, Intel 2XCPU 1.8GHz, 1GB RAM
    • User: working under domain user with Administrator rights
    • Default language: English
    • Java Version: 1.6.0_07
    • Java location: c:\Program Files\Java\jre1.6.0_07\
    • Carbide C/C++ 1.3 Build 024, installed in OEM version in 21 days period
    • Perl version: 5.8.8.822
    • Perl location: d:\work\dev\tool\perl\5.8.8.822
    • 1. SDK: S60_3rd_FP2_SDK_v1.1 (default); installation dir: d:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1
    • 2. SDK: UIQ3.3SDK_BETA; installation dir: d:\work\dev\tool\sdk\symbian\uiq3\UIQ3.3SDK_BETA (unchecked in carbide C++)
    • PATH=D:\work\dev\tool\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;D:\work\dev\tool\perl\5.8.8.822\bin;D:\ORACLE\product\10.2.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Subversion\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Libs\ant\apache-ant\bin;C:\Program Files\Common Files\Symbian\tools;D:\work\dev\tool\gcce\gcc_csl_arm_toolchain\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;D:\work\dev\tool\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;D:\work\dev\tool\perl\5.8.8.822\bin;D:\ORACLE\product\10.2.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Subversion\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Libs\ant\apache-ant\bin;C:\Program Files\Common Files\Symbian\tools;D:\work\dev\tool\gcce\gcc_csl_arm_toolchain\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Console2;C:\Program Files\Windows Sysinternals
    • MWCSym2Includes=D:\work\dev\tool\carbide\x86Build\Symbian_Support\MSL\MSL_C\MSL_Common\Include;D:\work\dev\tool\carbide\x86Build\Symbian_Support\MSL\MSL_C\MSL_Win32\Include;D:\work\dev\tool\carbide\x86Build\Symbian_Support\MSL\MSL_C\MSL_X86;D:\work\dev\tool\carbide\x86Build\Symbian_Support\MSL\MSL_C++\MSL_Common\Include;+D:\work\dev\tool\carbide\x86Build\Symbian_Support\MSL\MSL_Extras\MSL_Common\Include;D:\work\dev\tool\carbide\x86Build\Symbian_Support\MSL\MSL_Extras\MSL_Win32\Include;D:\work\dev\tool\carbide\x86Build\Symbian_Support\Win32-x86 Support\Headers\Win32 SDK
    • MWSym2Libraries=D:\work\dev\tool\carbide\x86Build\Symbian_Support\Win32-x86 Support\Libraries\Win32 SDK;D:\work\dev\tool\carbide\x86Build\Symbian_Support\Runtime\Runtime_x86\Runtime_Win32\Libs
    • MWSym2LibraryFiles=MSL_All_MSE_Symbian_D.lib;gdi32.lib;user32.lib;kernel32.lib;
    • epoc location 1: d:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\winscw\udeb\epoc.exe
    • epoc location 2: c:\Program Files\Common Files\Symbian\tools\epoc.exe
    • tested example: d:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic in command line and Carbide C++ too.
    • images: ,
    • make output: http://pastebin.com/m6bdd12da
    • console contents during appl. startup: http://pastebin.com/m6743afae
    • epoc ini: http://pastebin.com/m34dc39b7


    I'm new to Symbian development so I provided as much info as possible. My assumption is that there is a problem with format of the build product.

    I have also installed these drivers: NokiaN95_8GB_BT.inf for BT, NokiaN95_8GB_IrDA.inf for IRDA, NokiaN95_8GB_MS_BT.inf and S60_SDK_BT_Driver.zip

    There is maybe a software coliding: CSL ARM Toolchain, Nokia Connectivity Cable Driver, Nokia Media Server, Nokia PC/OVI Suite
    Last edited by elviin; 2008-09-04 at 19:37.

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Epoc is constantly crashing

    For the http://i38.tinypic.com/103dd0g.png issue, see http://wiki.forum.nokia.com/index.ph...dition_FP1_SDK

    Disabling the JUSTINTIME will also get you paste the http://i33.tinypic.com/2vsp3kk.png issue, to the point of seeing an application leave or panic within the emulator.

    Edit: on second look I see that JustInTime is not enabled in epoc.ini but please make sure that the setting is off in all epoc*.ini files.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  3. #3
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: Epoc is constantly crashing

    I have disabled JUSTINTIME feature wherever I found it but epoc is still crashing:

    1. D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\epoc.ini
    2. D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\epoc_240x320.ini
    3. D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\epoc_240x320_f.ini
    4. D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\epoc_240x320_keypadoff.ini
    5. D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\epoc_240x320_keypadoff_f.ini
    6. D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\epoc_320x240.ini
    7. D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\epoc_320x240_f.ini
    8. D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\epoc_320x240_keypadoff.ini
    9. D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\epoc_320x240_keypadoff_f.ini


    I have installed everything during yesterday. I have not changed any configuration file except these. Just followed the instructions in the Developers Library.

    The only odd thing is that there is the recommended perl version 5.6XXX but Carbide wants perl58.dll so that is why I have installed perl 5.8. We are already developing in Java and considering to develop in C++ but these problems seem to be showstopper until we find the problem.

    Thank you for your help.

  4. #4
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: Epoc is constantly crashing

    Hello,

    it is 3rd day I'm installing the Symbian C++ development environment. Not all the time I have spent struggling with the epoc crashing, but it's time consuming issue. It gets me down since my employer expects me to be productive:|

    I have exposed my configuration in the first post already. So I can, according to the info I saw in other threads, add some more details.

    • I have added exceptions for Data Execution Prevention feature for all these exe's including HelloWorldBasic.exe:
      Code:
      c:\Program Files\Common Files\Symbian\tools\pepoc.exe
      c:\Program Files\Common Files\Symbian\tools\epoc.exe
      D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\winscw\udeb\epoc.exe
      D:\work\dev\tool\sdk\symbian\uiq3\UIQ3.3SDK_BETA\epoc32\release\winscw\udeb\epoc.exe
      d:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\winscw\udeb\HelloWorldBasic.exe
    • I'm using Carbide C++ and the command line also, to make the scenario simpler. Epoc crashes:
      Code:
      D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group>epoc
    • I have the Windows firewall disabled, no other firewalls installed.
    • I do not have installed any Visual Studio, JIT Debugger.
    • epocwind.out contains these lines at the end:
      Code:
          38.250	STARTER # Launched executable Z:\sys\bin\fbserv.exe [2]
          38.250	STARTER # Starting to launch executable Z:\sys\bin\wserv.exe [2]
          38.375	Thread wserv.exe::Main created @ 0xad29c4 - Win32 Thread ID 0x270
          38.375	STARTER # Setting timeout for component launch
          38.375	STARTER # Waiting for for component start
          38.550	Thread wserv.exe::Wserv Panic SCDV 12
          38.550	FAULT: KERN 0x00000004 (4)
      But the problem is that this letter Z: is already occupied by other mapped directory, as my company requires. That is really interesting since there is no instruction related to the fact you should have mapped a directory with wserv.exe in it.
    • Here is output of the file generated by windows through the runtime of epoc.
    • I have uninstalled all McAfee product. Rebooted.
    • I have disabled Realtek HD Audio device. Rebooted.


    What is the service that should be running from disc Z:? Why HelloWorld application
    Code:
    d:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\winscw\udeb\HelloWorldBasic.exe
    si looking for wserv.exe on Z: when the wserv.exe is in the same directory as the application!?!
    Code:
    d:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\winscw\udeb\wserv.exe
    My understanding is such that epoc follows from some reason a structure of an environment of a developer in a nokia lab or so.

    I'm perfect example for the crashing epoc since I had all the prerequisites for the successful epoc crash (McAfee, Realtec, DEP, firewall). But nothing solved this issue. It's a big disappointment for me especially at the beginning of Symbian programming.
    Last edited by elviin; 2008-09-05 at 10:08.

  5. #5
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: Epoc is constantly crashing

    I have found the reason of crashing wserv.exe. I do not know where the settings are to adjust an emulator disk location but epoc or what tries to execute executables from disk Z: but it should be a directory called "z"

    Directory
    Code:
    d:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\winscw\udeb\z
    contains:

    Code:
    data\
    private\
    resource\
    resource_files_dir\
    rta\
    sys\
    system\
    btdiscgiac.bat
    btdiscliac.bat
    btdiscoff.bat
    btoff.bat
    bton.bat
    But there is no .\z\sys\bin\fbserv.exe or .\z\sys\bin\wserv.exe.

    Where I can set a property of the epoc that is should search for binaries somewhere else not on Z:, not in ./z/ but in a proper location.

  6. #6
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Epoc is constantly crashing

    It seems that you are more unlucky than others, sorry for that. But it could be also that you've jumped into trying to many things/fixes. For example I've never heard of such thing as DEP on Windows XP. Yes, I've looked now in the help and the feature exists, I've just never seen anyone running into problems because of it until Windows Vista showed up with its problems.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  7. #7
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Epoc is constantly crashing

    Quote Originally Posted by elviin View Post
    I have found the reason of crashing wserv.exe. I do not know where the settings are to adjust an emulator disk location but epoc or what tries to execute executables from disk Z: but it should be a directory called "z"

    Directory
    Code:
    d:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\winscw\udeb\z
    contains:

    Code:
    data\
    private\
    resource\
    resource_files_dir\
    rta\
    sys\
    system\
    btdiscgiac.bat
    btdiscliac.bat
    btdiscoff.bat
    btoff.bat
    bton.bat
    But there is no .\z\sys\bin\fbserv.exe or .\z\sys\bin\wserv.exe.

    Where I can set a property of the epoc that is should search for binaries somewhere else not on Z:, not in ./z/ but in a proper location.
    The emulator's "ROM" binaries are located outside the \z foldeer and that is how it should be. They are all in d:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\winscw\udeb, both the SDK ones and the ones you build. The emulator takes care of mapping them to the right location.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  8. #8
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: Epoc is constantly crashing

    I have written here that emulator tries to invoke these binaries from location Z:. But the Z: (though existing) location is a mapped disk with totally unrelated content.

    From the file epocwind.out I can see that the emulator is not taking care about the location of fbserv.exe and wserv.exe.

    I can not help but say that 21 days trial period is for 20 days of solving installation issues and 1 day for programming.

    I'm trying to solve the issue according to this thread.

  9. #9
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Epoc is constantly crashing

    Have you tracked actual calls to Windows' Z:\ drive? I doubt that. The emulator will indeed access the Z drive but that is in the emulated file system, not in the host system.

    Btw, I also have z:\ mapping some exotic network share with obviously no impact in the emulator's behavior.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  10. #10
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: Epoc is constantly crashing

    Quote Originally Posted by ltomuta View Post
    Have you tracked actual calls to Windows' Z:\ drive? I doubt that. The emulator will indeed access the Z drive but that is in the emulated file system, not in the host system.

    Btw, I also have z:\ mapping some exotic network share with obviously no impact in the emulator's behavior.
    Thank you for the assistance. I have found the messages related to Z: in c:\Documents and Settings\vslavik\Local Settings\Temp\epocwind.out. It was from the time I had the Z: location on my computer.

    Now after I have removed the mapped location Z:, the epocwind.out says:
    Code:
    PlatSecEnforcement OFF
    PlatSecDiagnostics ON
    PlatSecProcessIsolation ON
    PlatSecEnforceSysBin ON
    PlatSecDisabledCaps NONE
         0.000	Thread 009d4458 created @ 0x9d4458 - Win32 Thread ID 0x904
         0.000	Thread EKern.exe::Supervisor created @ 0xa83390 - Win32 Thread ID 0xa54
         0.000	Thread EKern.exe::DfcThread0 created @ 0xa83fd8 - Win32 Thread ID 0x854
         0.000	Thread EKern.exe::DfcThread1 created @ 0xa843fc - Win32 Thread ID 0x70c
         0.000	Thread EKern.exe::TimerThread created @ 0xa84cd8 - Win32 Thread ID 0x734
         8.115	Thread EKern.exe::FlashThread created @ 0xa8b824 - Win32 Thread ID 0x56c
         8.170	Thread EKern.exe::MultiMediaCard0 created @ 0xa8c894 - Win32 Thread ID 0x9dc
         8.210	Thread EKern.exe::NandThread created @ 0xa9393c - Win32 Thread ID 0xcec
         8.335	Thread EFile.exe::Main created @ 0xa947f0 - Win32 Thread ID 0xcf4
         8.495	Thread EFile.exe::Local-00a9bfc4 created @ 0xa9c284 - Win32 Thread ID 0xd04
         8.525	Thread EFile.exe::LoaderThread created @ 0xaa2a30 - Win32 Thread ID 0xcb4
         8.525	Thread EFile.exe::StartupThread created @ 0xaa3764 - Win32 Thread ID 0xd08
         8.590	Assertion failed: Kernel must be unlocked 
    Function: Kern::HalFunction(TInt, TInt, TAny*, TAny*)
         8.590	Assertion failed: Do not call in ISR context 
    Function: Kern::HalFunction(TInt, TInt, TAny*, TAny*)
         8.590	Assertion failed: Kernel must be unlocked 
    Function: NKern::LockSystem
         8.590	Assertion failed: Do not call in ISR context 
    Function: NKern::LockSystem
         8.590	Assertion failed: Do not call in ISR context 
    Function: NKern::Lock
         8.590	Assertion failed: Do not call from bare Win32 threads
    Function: NKern::Lock
         8.590	Assertion failed: Do not call in ISR context 
    Function: NKern::Unlock
         8.590	Assertion failed: Do not call from bare Win32 threads
    Function: NKern::Unlock
         8.590	Assertion failed: Do not call in ISR context 
    Function: NKern::Lock
         8.590	Assertion failed: Do not call from bare Win32 threads
    Function: NKern::Lock
         8.590	Assertion failed: Do not call from bare Win32 threads
    Function: NKern::Unlock
         8.595	FAULT: nk_plat.h 0x00000085 (133)
    Nothing more.

    The end of the Procmon (Sysinternals) log:

    Code:
    67024	12:28:37.6304511 PM	epoc.exe	2900	ReadFile	C:\WINDOWS\system32\winmm.dll	SUCCESS	Offset: 41,984, Length: 8,192, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O
    67026	12:28:37.6504143 PM	epoc.exe	2900	RegCloseKey	HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32	SUCCESS	
    67027	12:28:37.6504854 PM	epoc.exe	2900	RegOpenKey	HKLM\Software\Microsoft\Windows NT\CurrentVersion\GRE_Initialize	SUCCESS	Desired Access: Read
    67028	12:28:37.6505137 PM	epoc.exe	2900	RegQueryValue	HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\GRE_Initialize\DisableMetaFiles	NAME NOT FOUND	Length: 20
    67029	12:28:37.6505264 PM	epoc.exe	2900	RegCloseKey	HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\GRE_Initialize	SUCCESS	
    67031	12:28:37.6508673 PM	epoc.exe	2900	Thread Exit		SUCCESS	User Time: 0.0156250, Kernel Time: 0.0000000
    67032	12:28:37.6512444 PM	epoc.exe	2900	Process Exit		SUCCESS	Exit Status: 100, User Time: 0.0781250, Kernel Time: 0.9687500, Private Bytes: 23,277,568, Peak Private Bytes: 23,408,640, Working Set: 28,536,832, Peak Working Set: 28,590,080
    67033	12:28:37.6515681 PM	epoc.exe	2900	CloseFile	D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group	SUCCESS	
    67037	12:28:37.6520658 PM	epoc.exe	2900	CloseFile	D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\winscw\udeb	SUCCESS	
    67046	12:28:37.6525453 PM	epoc.exe	2900	CloseFile	D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\media\mmccrd2a.bin	SUCCESS	
    67048	12:28:37.6529412 PM	epoc.exe	2900	CloseFile	D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\media\mmccrd1a.bin	SUCCESS	
    67050	12:28:37.6532857 PM	epoc.exe	2900	CloseFile	D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\media\mmccrd0a.bin	SUCCESS	
    67052	12:28:37.6538326 PM	epoc.exe	2900	CloseFile	D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\data\media\iramldrv.bin	SUCCESS	
    67053	12:28:37.6540419 PM	epoc.exe	2900	CloseFile	C:\Documents and Settings\vslavik\Local Settings\Temp\epocwind.out	SUCCESS	
    67055	12:28:37.6541446 PM	epoc.exe	2900	CloseFile	C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83	SUCCESS	
    67057	12:28:37.6546460 PM	epoc.exe	2900	CloseFile	D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\winscw\udeb\z\resource\starter_full.rsc	SUCCESS

  11. #11
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: Epoc is constantly crashing

    According Release Notes for S60_3rd_FP2_SDK_v1.1 there should be installed perl 5.6 but Carbnide C++ 1.3 (see below my configuration) requires perl 5.8.

    It is just a guess but also in the release notes I see that the platform should be Windows XP SP2 not as in my case WIndows XP SP3.

    The reason is that I was given an already installed PC with quite hard security policy, which is colliding with the Symbian development requirements (Admin rights, so on).

    I have put all of these issues on my PC in order to meet the requirements
    Code:
    Basic requirements:
    - Microsoft Windows XP Service Pack 2 or Microsoft Windows Vista 
      Business.
    - Minimum 1-GHz Pentium PC; 1024 MB of memory.
    - At least 2 GB of free disk space.
    - Installation/uninstallation and use of the SDK requires local admin 
      rights.
    - Other requirements as necessary by IDE used.
    
    Additional software:
    - Active Perl 5.6.1 build 635 for SDK build tools. Earlier or later 
      versions of Perl may not be fully  compatible with Symbian toolchain. 
      Perl must be installed before using the SDK to build applications.
    - Java(TM) Runtime Environment (JRE) 5.0. 
    - Java(TM) Development Kit (JDK) 1.5.0_10 or later is required.
    - ARM RVCT compiler 2.2 build 593 or later is supported.
      (Version 3.0 is not supported by SDK toolchain.)
    
    Known issues and deficiencies in this SDK version for Windows XP and 
    Windows Vista

    - except the requirement for perl 5.6 (as Carbide requires perl58.dll) and for SP2 as it is impossible to revert changes in the OS from SP3 to SP2 at this state and time.

    In the last post of the epocwind.out part the last line contains:
    Code:
    8.595	FAULT: nk_plat.h 0x00000085 (133)
    My understanding is that it contains a platform check which fails and epoc commits suicide (if not me first).
    Last edited by elviin; 2008-09-05 at 12:40.

  12. #12
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Epoc is constantly crashing

    Quote Originally Posted by elviin View Post
    - except the requirement for perl 5.6 (as Carbide requires perl58.dll) and for SP2 as it is impossible to revert changes in the OS from SP3 to SP2 at this state and time.
    This is news to me however Perl is used only for driving the build system, it has no impact on emulator's behavior.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  13. #13
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: Epoc is constantly crashing

    Quote Originally Posted by ltomuta View Post
    This is news to me however Perl is used only for driving the build system, it has no impact on emulator's behavior.
    I did not make any print screen but Carbide C++ 1.3.0.024 required perl58.dll during the build.

    I tried to load the epoc from HelloWorlsBasic directory, but epoc ends with
    Code:
    8.595	FAULT: nk_plat.h 0x00000085 (133)
    Mu conclusion at this point is that I should use XP SP2 instead of XP SP3, is there anyone else using Win XP SP3?
    Last edited by elviin; 2008-09-05 at 22:37.

  14. #14
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: Epoc is constantly crashing

    I do not know what is exactly the difference between starting epoc from the Start | S60 Developer Tools | 3rd Edition FP2 SDK | v.1.1 | Emulator and from the helloworldbasic example directory, except the location it is started from.

    But I'm right now trying to figure out why there are lines
    Code:
         2.375	STARTER # Launched executable Z:\sys\bin\fbserv.exe [2]
         2.375	STARTER # Starting to launch executable Z:\sys\bin\wserv.exe [2]
         2.485	Thread wserv.exe::Main created @ 0xad291c - Win32 Thread ID 0xb74
         2.485	STARTER # Setting timeout for component launch
         2.485	STARTER # Waiting for for component start
         2.505	Thread wserv.exe::Wserv Panic SCDV 12
         2.510	FAULT: KERN 0x00000004 (4)
    at the and of the epocwind.out file. If I check the location of the virtual Z: in
    Code:
    d:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\winscw\udeb\z\
    I do not see any fbserv.exe or wserv.exe in
    Code:
    ..\epoc32\release\winscw\udeb\z\sys\bin\
    . It looks like I should configure something somewhere that will copy these binaries to the mentioned location
    Code:
    ..epoc32\release\winscw\udeb\z\
    so that epoc does not exit.

  15. #15
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: Epoc is constantly crashing

    After having the SP3 uninstalled the message
    Code:
    8.595	FAULT: nk_plat.h 0x00000085 (133)
    disappeared.

    But the epoc emulator is still crashing.


    My steps to build the HelloWorldBasic application:

    According to the Setting up the CLI environment

    Code:
    C:\Program Files\Console2>cd /d D:\work\dev\tool\carbide\x86Build\env_switch
    
    D:\work\dev\tool\carbide\x86Build\env_switch>env_update.exe
    Nokia x86 Compiler Environment Switcher (C)2005-2007 Nokia, Inc
    Version 2.0 Build 017 - 5 March 2007
    
    To use this utility from the command line please follow this syntax:
    
            env_update [-autoUpdate]
    
    If no arguments are present the menu interface is assumed.
    Passing -autoUpdate will automatically update environment variables without user prompts. Default is to prompt user.
    
    
    This program will attempt to change environment variable reflecting the tools corresponding to your current working directory.
    
    Current working directory is: D:\work\dev\tool\carbide\x86Build\env_switch
    
    Tools will be located at D:\work\dev\tool\carbide\x86Build\Symbian_Tools\Command_Line_Tools
    
    MWCSYM2INCLUDES already reflects tools; not modified
    
    MWSYM2LIBRARIES already reflects tools; not modified
    
    MWSYM2LIBRARYFILES already reflects tools; not modified
    
    PATH already reflects tools; not modified
    
    Press return to exit.
    
    
    
    D:\work\dev\tool\carbide\x86Build\env_switch>set PATH
    Path=D:\work\dev\tool\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;D:\work\dev\tool\perl\5.8.8.822\bin;D:\ORACLE\product\10.2.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Subversion\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Libs\ant\apache-ant\bin;C:\Program Files\Common Files\Symbian\tools;D:\work\dev\tool\gcce\gcc_csl_arm_toolchain\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;D:\work\dev\tool\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;D:\work\dev\tool\perl\5.8.8.822\bin;D:\ORACLE\product\10.2.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Subversion\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Libs\ant\apache-ant\bin;C:\Program Files\Common Files\Symbian\tools;D:\work\dev\tool\gcce\gcc_csl_arm_toolchain\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Console2;C:\Program Files\Windows Sysinternals
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1
    So the command line tools should be available. Then according to Building an application for the emulator from the CLI I do the folowing
    in the helloworldbasic\group directory:

    Code:
    D:\work\dev\tool\carbide\x86Build\env_switch>cd /d D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group
    
    D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group>bldmake bldfiles
    
    D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group>abld build winscw udeb
     <SNIP>
    make -s  -r -f "\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\HELLOWORLDBASIC.WINSCW" LIBRARY
      make -r  -f "\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group\WINSCW.make" RESOURCE CFG=UDEB VERBOSE=-s
    make -s  -C \work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group -f "ICONS_SCALABLE_DC.MK" TO_ROOT=..\..\..\..\..\..\..\..\..\..\.. EPOCBLD=..\..\..\..\..\..\..\..\..\..\..\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group\ICONS_SCALABLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\..\..\..\..\..\..\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group PLATFORM=WINSCW CFG=UDEB RESOURCE
    MifConv version 1.11 build (49, SVG stand-alone).
    Checking: ..\gfx\qgn_menu_helloworldbasic.svg
    Choosing...
    Used from: \work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\tools\SVGTBINENCODE.exe.
    Convert files...
    .
    Loading mif icons...
    <SNIP>
    make -s  -C \work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group -f "ICONS_SCALABLE_DC.MK" TO_ROOT=..\..\..\..\..\..\..\..\..\..\.. EPOCBLD=..\..\..\..\..\..\..\..\..\..\..\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group\ICONS_SCALABLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\..\..\..\..\..\..\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group PLATFORM=WINSCW CFG=UDEB FINAL
    
    D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group>
    Then I delete the file epocwind.out and try to invoke epoc:
    Code:
    D:\work\dev\tool\sdk\symbian\s60\devices\S60_3rd_FP2_SDK_v1.1\S60CppExamples\helloworldbasic\group>epoc
    I'm waiting, epocwind.out is growing... Waiting about 30 seconds, epocwind.out is still growing. Then epoc.exe has encountered a problem and needs to close.

    You can see whole Epocwind.out here. At the end of the file there is written
    Code:
        17.535	Thread fbserv.exe::FbsBgCompressThread created @ 0xad10e8 - Win32 Thread ID 0xfc8
        17.535	STARTER # Launched executable Z:\sys\bin\fbserv.exe [2]
        17.535	STARTER # Starting to launch executable Z:\sys\bin\wserv.exe [2]
        17.895	Thread wserv.exe::Main created @ 0xad2924 - Win32 Thread ID 0x738
        17.895	STARTER # Setting timeout for component launch
        17.895	STARTER # Waiting for for component start
        18.125	Thread wserv.exe::Wserv Panic SCDV 12
        18.125	FAULT: KERN 0x00000004 (4)
    If I check the epoc.ini file it look like this:
    Code:
    configuration epoc_240x320.ini
    configuration epoc_240x320_keypadoff.ini
    configuration epoc_320x240.ini
    configuration epoc_320x240_keypadoff.ini
    configuration epoc_240x320_f.ini
    configuration epoc_240x320_keypadoff_f.ini
    configuration epoc_320x240_f.ini
    configuration epoc_320x240_keypadoff_f.ini
    PlatSecDiagnostics ON
    PlatSecEnforceSysBin ON
    PlatSecProcessIsolation ON
    PlatSecEnforcement OFF
    PlatSecDisabledCaps NONE
    LogToFile 1
    LogToDebugger 1
    JustInTime none
    _EPOC_DRIVE_D \epoc32\winscw\d
    _EPOC_DRIVE_E
    _EPOC_LocDrv_1
    MegabytesOfFreeMemory 32
    MultiMediaCardSize=16000
    patchdata_apserv_dll_KApaLoadDataRecognizersOnDemand 1
    etel_KPriorityClientSid 0x100058B3
    WindowTitle S60 3rd Edition FP2 SDK v1.1
    From the documentation for virtual drives you can read that the Z: location is default one. In the File and Location Guide there is written that

    Symbian OS v9.0 and beyond:

    An application program that would appear in a real phone at
    z:\sys\bin\helloworld.exe; when built for the debug WINSCW target
    would be located in
    epoc32\release\winscw\udeb\z\sys\bin\helloworld.exe.
    Last edited by elviin; 2008-09-06 at 20:39.

Similar Threads

  1. epoc emulator crashing in sdk's text example
    By massaranduba in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-04-28, 10:42
  2. Replies: 4
    Last Post: 2004-04-27, 15:33
  3. Sending MMS reply to "sender" by EPOC via MMSC EAIF
    By aidj in forum General Messaging
    Replies: 1
    Last Post: 2002-11-08, 08:02
  4. sending mms from one epoc emulator to another epoc emulator.
    By aihui_sg in forum General Messaging
    Replies: 1
    Last Post: 2002-10-09, 05:58
  5. Can the EPOC Emulator compose/write a new MMS? Pls. advice
    By ninja_turtle in forum General Messaging
    Replies: 1
    Last Post: 2002-10-01, 08:36

Posting Permissions

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