Opened 6 years ago
Closed 5 years ago
#13725 closed defect (fixed)
wxDataViewCtrl crashes after item dragging on OS X
Reported by: | martin | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 3.0.0 |
Component: | wxOSX | Version: | stable-latest |
Keywords: | wxDataViewCtrl | Cc: | |
Blocked By: | Blocking: | ||
Patch: | no |
Description
When I'm trying to drag any selected item in wxDataViewCtrl or even trying to select multiple items by dragging the mouse, whole app crashes about 1 second after the mouse button is released. It is reproducible on any DVC_ demo in wxPython Demo app. I haven't seen this under wxMSW, just on wxMac using wxPython_2.9.2.4, Python 2.7, OS X 10.7.2
Change History (5)
comment:1 Changed 5 years ago by vadz
- Milestone set to 3.0
- Priority changed from normal to high
- Status changed from new to confirmed
- Version changed from 2.9.2 to 2.9-svn
comment:2 Changed 5 years ago by SC
- Resolution set to fixed
- Status changed from confirmed to closed
comment:3 Changed 5 years ago by csomor
please test whether this solves all the dataview - drag releated crashes, thanks
comment:4 follow-up: ↓ 5 Changed 5 years ago by BGirard
- Resolution fixed deleted
- Status changed from closed to reopened
Drag still crashes with wxTreeListCtrl on MacOS.
Version used : wxWidgets 2.9.4.
I also tried to used trunk dataview.mm, patch "wxMemoryBuffer dataBuffer(dataBufferSize+4);" was missing on 2.9.4.
This gives the same crash.
Sample code (drag item1 on item2) :
{
wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
mainSizer->Add(new wxStaticText(this, wxID_ANY, "CrashTest"));
wxTreeListCtrl * list = new wxTreeListCtrl(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTL_SINGLE);
list->AppendColumn("Column",
100,
wxALIGN_LEFT,
wxCOL_RESIZABLE | wxCOL_SORTABLE);
wxTreeListItem rootItem = list->GetRootItem();
wxTreeListItem it1 = list->AppendItem(rootItem, "item 1");
wxTreeListItem it2 = list->AppendItem(rootItem, "item 2");
mainSizer->Add(list, 1, wxEXPAND);
SetSizer(mainSizer);
}
comment:5 in reply to: ↑ 4 Changed 5 years ago by BGirard
- Resolution set to fixed
- Status changed from reopened to closed
It seems that my update from trunk was messy.
The bug is well fixed (and then tested with wxTreeListCtrl !), sorry for the inconvenient.
This is perfectly reproducible by trying to drag any item with children (including the root one) in the dataview sample. Unfortunately the stack trace is useless:
Could somebody with a beefier machine please try running the sample under valgrind?
This is pretty serious as it's quite easy to trigger this accidentally, so we should try to at least disable dragging of the container items in the control if we can't fix this.