Languages

Menu
Sites
Language
Emulator not starting at all

Hi,

Hoping someone out there can help me.  I have a fairly recent install of the Tizen SDK running on an up-to-date Ubuntu 14.04.

I can start the emulator-manager from the menu, I can even create an emulator image within the manager.  However, when I press the "play" button (or double-click the emulator image) NOTHING happens.  I don't get any error messages, nothing which isn't very helpful.

I have tried running the emulator-manager from command-line, copied and pasted the output of the command when I press play into a terminal.  I even got past the stage where I had to change my LD_LIBRARY_PATH so that all libraries are included as well.  When I click enter, again, nothing, it just exits out and straight away and does not show any error messages whatsoever.

I have the latest Nvidia drivers as well, but I think that's unrelated to this problem as I tried going back to an older driver and it still did not make any difference.  Toggling the CPU VT support does not make any difference either.

Any help on this matter will be greatly appreciated!

Responses

21 Replies
Alex Ashirov

Hi,

What is a screen resolution of your Emulator? I noticed that the Emulator manager creates 720x1280 screens by default on my Ubuntu (it’s 480x800 on my Win 7 PC). This 720x1280 emulator works unstable and crashes frequently. Obviously you need 480x800 screen to emulate Z1 device. If you have the same issue then you can select 480x800 manually from the Emulator manager.

Adeel Kazmi

Hi Alex,

Thanks for the prompt reply.  Unfortunately, I've tried both resolutions as well without any success.

Alex Ashirov

Hi,

Strange. I have not faced any problems on my Ubuntu 14.04. You can also try to switch GPU off from the Emulator manager.

Adeel Kazmi

Hi Alex, I'm afraid that doesn't do anything either.  Is there any log files I can check to get more of an idea about what's happening?

Alex Ashirov

Hi,

You can check the following:

\tizen-sdk-data\emulator\vms\ emulator-manager.log

and IDE log:

workspace\.metadata\.log

Adeel Kazmi

Hi Alex,

Thanks for that!

Looking at the emulator log, I get the following when I press the play button:

[2015.3.12 15:44:56][INFO][Launcher.getLaunchCommand] Starting Emulator Command :
[2015.3.12 15:44:56][INFO][Launcher.getLaunchCommand] /home/SERILOCAL/adeel.kazmi/tizen-sdk/tools/emulator/bin/emulator-x86 "--skin-args" "width=480" "height=800" "skin.path=/home/SERILOCAL/adeel.kazmi/tizen-sdk/platforms/mobile-2.3/emulator-resources/skins/mobile-general-3btn" "--qemu-args" "-drive" "file=/home/SERILOCAL/adeel.kazmi/tizen-sdk-data/emulator/vms/m-0312-1/emulimg-m-0312-1.x86,if=virtio,index=1" "-boot" "c" "-append" "console=ttyS0 video=LVDS-1:480x800-32@60 dpi=2330 ip=10.0.2.16::10.0.2.2:255.255.255.0::eth0:none vm_name=m-0312-1" "-serial" "file:/home/SERILOCAL/adeel.kazmi/tizen-sdk-data/emulator/vms/m-0312-1/logs/emulator.klog" "-m" "512" "-M" "maru-x86-machine" "-net" "nic,model=virtio,macaddr=C8:60:00:C5:A4:54" "-soundhw" "all" "-usb" "-vga" "none" "-enable-vigs" "-L" "/home/SERILOCAL/adeel.kazmi/tizen-sdk/tools/emulator/data/bios" "-kernel" "/home/SERILOCAL/adeel.kazmi/tizen-sdk/tools/emulator/data/kernel/bzImage.x86" "-net" "user,dhcpstart=10.0.2.16" "-rtc" "base=utc" "-drive" "file=/home/SERILOCAL/adeel.kazmi/tizen-sdk-data/emulator/vms/m-0312-1/swap-m-0312-1.img,if=virtio,index=2" "-vigs-backend" "sw" "-device" "virtio-esm-pci" "-device" "virtio-keyboard-pci" "-device" "virtio-evdi-pci" "-device" "maru-brightness" "-device" "virtio-vmodem-pci" "-device" "virtio-hwkey-pci" "-device" "codec-pci" "-device" "virtio-touchscreen-pci,max_point=10" "-device" "virtio-sensor-pci" "-device" "virtio-jack-pci"
[2015.3.12 15:44:56][INFO][Launcher.launch] LD_LIBRARY_PATH=/home/SERILOCAL/adeel.kazmi/tizen-sdk/tools/emulator/bin:/home/SERILOCAL/adeel.kazmi/tizen-sdk/tools/emulator/remote/lib:
[2015.3.12 15:44:56][INFO][Launcher.launch] GL_VERSION: 2
[2015.3.12 15:44:56][WARNING][MonitoringEmulator.run] Emulator has been terminated. Exit value: 0(0)
[2015.3.12 15:44:56][WARNING][VMSocket.sendMessage] Connect to ECS(port:26103) Fail. Connection refused
[2015.3.12 15:44:56][WARNING][VMSocket.sendMessage] Connect to ECS(port:26113) Fail. Connection refused
[2015.3.12 15:44:56][WARNING][VMSocket.sendMessage] Connect to ECS(port:26123) Fail. Connection refused
[2015.3.12 15:44:56][WARNING][VMSocket.sendMessage] Connect to ECS(port:26133) Fail. Connection refused
[2015.3.12 15:44:56][WARNING][VMSocket.sendMessage] Connect to ECS(port:26143) Fail. Connection refused
[2015.3.12 15:44:56][WARNING][VMSocket.sendMessage] Connect to ECS(port:26153) Fail. Connection refused
[2015.3.12 15:44:56][WARNING][VMSocket.sendMessage] Connect to ECS(port:26163) Fail. Connection refused
[2015.3.12 15:44:56][WARNING][VMSocket.sendMessage] Connect to ECS(port:26173) Fail. Connection refused
[2015.3.12 15:44:56][WARNING][VMSocket.sendMessage] Connect to ECS(port:26183) Fail. Connection refused
[2015.3.12 15:44:56][WARNING][VMSocket.sendMessage] Connect to ECS(port:26193) Fail. Connection refused
[2015.3.12 15:44:56][INFO][Launcher.sendRemoteLog] Launcher log : start


Any ideas or suggestions?

Alex Ashirov

Hi,

I hope you have already installed packages required by Prerequisites for the Tizen SDK:

https://developer.tizen.org/downloads/sdk/installing-sdk/prerequisites-tizen-sdk

sudo apt-get install libudev-dev libwebkitgtk-1.0-0 libpython2.7 make findutils rpm2cpio cpio

sudo apt-get install libsdl1.2debian

Also, you can try to install Tizen Standalone Emulator as described here:

https://wiki.tizen.org/wiki/Tizen_Standalone_Emulator

Adeel Kazmi

Hi Alex,

I do have all the dependencies, but some progress at last, although not the complete solution.

I copied the command in the log and ran it as root.  The emulator starts when I do this.  However, it doesn't seem to work as a normal user.

Do you have any idea what permissions I need or what I should clean to ensure I can run it as a normal user?

 

Alex Ashirov

Hi,

I have only 2 ideas:

1. Please make sure that you didn’t run the install manager as root when you installed the SDK. You should run it as a normal user.

2. Are you able to run the Emulator from the Emulator manager now?

Adeel Kazmi

Hi,

1. I installed as a normal user.  I've got a feeling there is some crud in my HOME folder, but I have no idea what files to delete as I don't want to break the rest of my environment.  I'll try backing up a few things and see if it makes any difference.  I've deleted the tizen-sdk* folders and reinstalled, with no success.

2. Unfortunately not, I have to use sudo on the command line to run the emulator.

Thanks for your continued suggestions :)

Adeel Kazmi

OK, done some more digging and it seems that I have to delete ~/.config/dbus and then everything starts working again.  This seems to get corrupted every now and then and I have to keep deleting this directory for the emulator to start working again!

A bit annoying and I hope it can be fixed, but hey, that's how I got it working.

I can now launch it from the emulator-manager as well, just need to delete the aforementioned folder every so often!

Adeel Kazmi

Apologies, I meant I had to delete the ~/.config/dconf folder for this to work.

Alex Ashirov

Hi,

Actually, I have not faced such issue, but I think you can try the following to fix the issue:

A.

1. Close the IDE, Emulator etc

2. Remove ~/.config/dconf folder

3. Remove workspace/.metadata folder

4. Start the IDE again

If A doesn’t work then try B:

B.

1. Close the IDE, Emulator etc

2. Uninstall the SDK

3. Remove ~/.config/dconf folder

4. Remove workspace/.metadata folder

5. Remove ~/tizen-sdk and ~/tizen-sdk-data folders.

6. Reinstall the SDK

Adeel Kazmi

Hi Alex,

Thanks for the advice.  All I had to do in the end was reset dconf using:

dconf reset -f /

This reset more than I wanted, but now the emulator works everytime.  I am using gnome by the way which is unorthodox but I'm guessing it's not that different from Unity.

Many Thanks,
Adeel

Alex Ashirov

Hi,

Good news!

There should be no any problems with gnome. I use the SDK on laptop with Linux Mint Mate (which is almost gnome) without any problems.

Alex Dem

Hi,
Usually it is enough use common prerequisites: https://developer.tizen.org/downloads/sdk/installing-sdk/prerequisites-tizen-sdk
Also, maybe , check that linux, sdk, java are with the same bit version (32 or 64 bit).
I have Tizen SDK which was installed on VM (ubuntu 13.04 image 32bit without KVM support) - emulator works ok (but very slowly).
Try to look logs as it is proposed by Alexander above.
Alexey.

Adeel Kazmi

Hi Alexey, Thanks for your reply, but it seemed that there is some corruption in the ~/.config/dconf folder which I need to keep deleting for the emulator to work.

pradeep ramaiah

Keep the backup of project.

Un-install the Tizen SDK  and delete the tizen-sdk and tizen-sdk-data.

restart the machine

Install the tizen SDK and try again

Adeel Kazmi

Thanks for your reply Pradeep but I'm afraid still no luck.  I am lost as to what's going wrong now, I've tried several different things.

pradeep ramaiah

Hi,

I had the same issue, I resolved the same way. It takes maximum 2 hours.

Mitul Varmora

Where is this ~/.config/dconf folder located ?, I am unable to find on Windows 10.