Emulator instances created in the IDE do not seem to be properly registered

Bug #1580775 reported by Pat McGowan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu SDK IDE
Confirmed
High
Benjamin Zeller

Bug Description

I created an emulator in the IDE using custom and ubuntu-touch/stable/ubuntu. The instance was properly created and I can see it in .local/share/ubuntu-emulator.
I ran it from the IDE and it ran a very old version of an emulator. Similarly I ran it from the command line with ubuntu-emulator run name and it ran the same old image. Only once I created an instance with the sudo ubuntu-emulator create --channel ubuntu-touch/stable/ubuntu command and run that instance did it work properly.

Revision history for this message
Zoltan Balogh (bzoltan) wrote :

I am not sure what has happened there.

The IDE discovers all emulators under the ~/.local/share/ubuntu-emulator and shows all of them in the UI. It could be that a re-discover (with that circular arrow button next to the new emulator button) could have forced the UI to see all emulators.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

To clarify I see all the emulators with the current information related to them. But when I run the new instance I created I clearly get an older instance (i.e it doesn't present the OOBE so its not the first run, and mouse doesn't work and cannot access it etc)

I also see that it has an old kit associated with it but I never assigned it a kit.

We must store some configuration data about the devices somewhere, I suspect that got stored incorrectly.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

This device file shows two emulators named Stable and stable-x86
But I now have 2 called stable-x86 and stable-test after deleting all the others.
I suspect we are keying off a partial match on id or something, which is why when I created and ran stable-x86 it instead ran the old stable which did not work.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

My actual config on the screen

Revision history for this message
Zoltan Balogh (bzoltan) wrote :

Yes, it is obvious from teh devices.xml that QtCreator does look up for the device with a weak regular expression.

I will check that part of the code in the QtC. It could be an upstream bug.

Changed in ubuntu-sdk-ide:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Benjamin Zeller (zeller-benjamin)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.