Opened 6 years ago

Closed 6 years ago

#440 closed defect (fixed)

Errors generated in mac log on loading project

Reported by: butler Owned by:
Priority: major Milestone: SasView 3.1.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing

Description

On mac when loading project, the following is repeated multiple times:

Traceback (most recent call last):
  File "/Users/pkienzle/anaconda/envs/bumps/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/_core.py", line 16767, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "/Users/pkienzle/Source/sasview/src/sas/guiframe/data_panel.py", line 689, in load_data_list
    process.__str__())
  File "/Users/pkienzle/anaconda/envs/bumps/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/lib/agw/customtreectrl.py", line 5138, in AppendItem
    return self.DoInsertItem(parent, len(parent.GetChildren()), text, ct_type, wnd, image, selImage, data)
  File "/Users/pkienzle/anaconda/envs/bumps/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/lib/agw/customtreectrl.py", line 4886, in DoInsertItem
    raise Exception("\nERROR: In Order To Append/Insert A MultiLine Text You Have To Use The Style TR_HAS_VARIABLE_ROW_HEIGHT")
Exception: 
ERROR: In Order To Append/Insert A MultiLine Text You Have To Use The Style TR_HAS_VARIABLE_ROW_HEIGHT

Check to see if easy to fix or if any serious user facing problem - else bump to next release

Change History (2)

comment:1 Changed 6 years ago by butler

Testing jenkins installer on mac I find only the same problem as on PC and that seems to be due to a problem in the invariant panel. The panel seems to work and saving and loading seems to work but just going to the invariant panel will generate the same errors as one sees on loading the project. Thus does not seem to be a problem with project. Depending on other testers this can be closed but probably need to open a ticket to look at invariant panel.

comment:2 Changed 6 years ago by mathieu

  • Resolution set to fixed
  • Status changed from new to closed

These errors were generated by the "process" info in the data panel. The tree control doesn't accept multi-line text entries, which is what the string representation of the process info object is. I first made sure that the UI tries to add the process info only if it's not empty (which it nearly always is), then used a single-line representation.

Note: See TracTickets for help on using tickets.