Ticket #171 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

OWD crashes after installing a node with two GPP's

Reported by: balister Assigned to: cdietric
Priority: major Milestone: 0.7.0
Component: tools Version: 0.6.2
Keywords: Cc:

Description

I created a node containing two GPP's. After installing the node, I restarted wd.py and received this crash:

[ossie@localhost wavedev]$ python wd.py 
/sdr/tools/WaveDev/wavedev/MainFrame.py:382: DeprecationWarning: Use `SetInitialSize`
  self.resourceBox.SetBestFittingSize(wx.Size(175, 365))
/sdr/tools/WaveDev/wavedev/MainFrame.py:417: DeprecationWarning: Use `SetInitialSize`
  self.compBox.SetBestFittingSize(wx.Size(399, 200))
/sdr/tools/WaveDev/wavedev/ComponentFrame.py:239: DeprecationWarning: Use `SetInitialSize`
  self.PortBox.SetBestFittingSize(wx.Size(312, 185))
/sdr/tools/WaveDev/wavedev/ComponentFrame.py:270: DeprecationWarning: Use `SetInitialSize`
  self.deviceChoice.SetBestFittingSize(wx.Size(136, 28))
/sdr/tools/WaveDev/wavedev/ComponentFrame.py:306: DeprecationWarning: Use `SetInitialSize`
  self.propList.SetBestFittingSize(wx.Size(312, 160))
/sdr/tools/WaveDev/wavedev/ComponentFrame.py:320: DeprecationWarning: Use `SetInitialSize`
  self.templateChoice.SetBestFittingSize(wx.Size(136, 28))
Traceback (most recent call last):
  File "wd.py", line 52, in <module>
    main()
  File "wd.py", line 48, in main
    application = BoaApp(0)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7757, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7354, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "wd.py", line 42, in OnInit
    self.main = MainFrame.create(None)
  File "/sdr/tools/WaveDev/wavedev/MainFrame.py", line 39, in create
    return Frame1(parent)
  File "/sdr/tools/WaveDev/wavedev/MainFrame.py", line 472, in __init__
    self.loadResources()
  File "/sdr/tools/WaveDev/wavedev/MainFrame.py", line 1508, in loadResources
    tmpNode = importNode.getNode(nodePath,nodeName,self)
  File "/sdr/tools/WaveDev/wavedev/importNode.py", line 101, in getNode
    doc_spd = xml.dom.minidom.parse(pathSPD)
  File "/usr/lib/python2.5/site-packages/_xmlplus/dom/minidom.py", line 1915, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py", line 924, in parse
    fp = open(file, 'rb')
IOError: [Errno 21] Is a directory

Change History

04/08/08 10:51:21 changed by DrewCormier

OWD is looking at a directory where it wants to look at a file. Post relevant contents of /sdr/nodes

04/08/08 13:19:29 changed by balister

[ossie@localhost nodes]$ ls -lR
.:
total 24
drwxrwxr-x 2 ossie ossie 4096 2007-12-17 00:49 default_GPP_node
drwxr-xr-x 2 root  root  4096 2008-01-20 17:31 default_GPP_sound_node
drwxrwxr-x 2 ossie ossie 4096 2008-04-04 08:07 Two-GPP

./default_GPP_node:
total 32
-rw-r--r-- 1 ossie ossie 1096 2007-12-17 00:49 DeviceManager.dcd.xml
-rw-r--r-- 1 ossie ossie  216 2007-12-17 00:49 DeviceManager.prf.xml
-rw-r--r-- 1 ossie ossie  744 2007-12-17 00:49 DeviceManager.scd.xml
-rw-r--r-- 1 ossie ossie  692 2007-12-17 00:49 DeviceManager.spd.xml

./default_GPP_sound_node:
total 32
-rw-r--r-- 1 root root 1631 2008-01-20 17:31 DeviceManager.dcd.xml
-rw-r--r-- 1 root root  216 2008-01-20 17:31 DeviceManager.prf.xml
-rw-r--r-- 1 root root  744 2008-01-20 17:31 DeviceManager.scd.xml
-rw-r--r-- 1 root root  691 2008-01-20 17:31 DeviceManager.spd.xml

./Two-GPP:
total 32
-rw-r--r-- 1 ossie ossie 1403 2008-04-04 08:07 DeviceManager.dcd.xml
-rw-r--r-- 1 ossie ossie  216 2008-04-04 08:07 DeviceManager.prf.xml
-rw-r--r-- 1 ossie ossie  744 2008-04-04 08:07 DeviceManager.scd.xml
-rw-r--r-- 1 ossie ossie  691 2008-04-04 08:07 DeviceManager.spd.xml
[ossie@localhost nodes]$ 

04/08/08 13:45:31 changed by DrewCormier

Everything looks in order there. In importNode.py, before line 101, add:

print pathSPD

to see what it's choking on.

04/08/08 13:49:25 changed by balister

Drew, I do not have time to debug your problems. Please make some effort at actually using OWD and ALF for some tasks.

04/08/08 14:17:14 changed by DrewCormier

First, these are not my problems. I am responsible for what my advisers tell me to do, not you.

The error you are getting is implying that it's user error. I'm trying to help you out.

04/08/08 14:35:46 changed by balister

Drew, sorry to bother you. Could you please ask the person responsible for maintaining OWD to look into this?

04/14/08 12:34:03 changed by DrewCormier

  • status changed from new to closed.
  • resolution set to fixed.

04/16/08 16:15:35 changed by jgaeddert

The problem lies with OWD generating XML files. OWD is putting two DOCTYPE desciptors in the file which is not valid XML. Open the generated file, and you will probably see two lines similar to this:

<!DOCTYPE softwareassembly SYSTEM "../../xml/dtd/softwareassembly.dtd">

OSSIE (and OWD) do not actually validate against the DTD files, so if you delete one OWD will probably open without throwing the error. I'm not sure which one needs to be removed, but I do know it occurs in applicationgen.py

This is also going to be an issue with most other XML files generated with OWD.

04/16/08 16:22:05 changed by jgaeddert

I have created a new ticket (#173) which addresses this.