Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 371126 - Device Management View shows incorrect devices (same device multiple times)
Summary: Device Management View shows incorrect devices (same device multiple times)
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sequoyah (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: TmL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 14:25 EST by Julia Perdigueiro CLA
Modified: 2016-11-08 14:46 EST (History)
3 users (show)

See Also:


Attachments
Update InstanceRegistry.java (3.85 KB, patch)
2012-02-23 11:08 EST, Bruno Tomazela CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julia Perdigueiro CLA 2012-02-09 14:25:05 EST
Build Identifier: 20111219-0300

We're seeing cases in which devices are being shown incorrectly on the Device Management View. They are shown 2, 3 times, and only one is shown as valid, the others are "not available". When this happens, we've noticed that the contents of the sequoyah_devices.xml file are incorrect, showing that device multiple times as well.

The guess is that maybe when changing device properties, it gets replicated instead of updated.

The problem is also described here: http://community.developer.motorola.com/t5/MOTODEV-Studio-for-Android/Two-devices-on-Device-Manager-one-of-them-with-status-quot-Not/td-p/22696

Reproducible: Sometimes
Comment 1 Bruno Tomazela CLA 2012-02-23 11:08:11 EST
Created attachment 211506 [details]
Update InstanceRegistry.java

Change the way InstanceRegistry stores loaded devices.
It was using a List, which allows duplicates, and now it is using a Map, which maps a device name to a device and do not allows duplicated keys.

In order to correct old sequoyah installations, one should update sequoyah with this patch and force the sequoyah devices file to be updated by changing some device properties or creating a new device.