View Issue Details

IDProjectCategoryView StatusLast Update
0002805ardourbugspublic2020-04-19 20:14
Reporterdrmoore Assigned Topaul  
PrioritynormalSeveritycrashReproducibilitysometimes
Status closedResolutionfixed 
Target Version3.0-beta1 
Summary0002805: session gui fails to initialise properly and causes segfault
DescriptionSeemingly caused when the editor tries to change mouse cursor.

segfault from here: 0000001 0x083e54fa in Editor::leave_handler (this=0x93fe4f8, item=0x98c3c70, item_type=MarkerBarItem) at ../gtk2_ardour/editor_mouse.cc:1594
Additional InformationPossible patch attached. Very limited testing.
TagsNo tags attached.

Activities

2009-08-01 01:32

 

fix_cursors.patch (1,188 bytes)   
Index: editor_mouse.cc
===================================================================
--- editor_mouse.cc	(revision 5448)
+++ editor_mouse.cc	(working copy)
@@ -1591,7 +1591,12 @@
 	case TempoBarItem:
 	case MarkerBarItem:
 		if (is_drawable()) {
-			track_canvas->get_window()->set_cursor (*current_canvas_cursor);
+			//std::cout << track_canvas << " " << current_canvas_cursor << std::endl;
+			if(current_canvas_cursor){
+				track_canvas->get_window()->set_cursor (*current_canvas_cursor);
+			} else {
+				std::cout << "current_canvas_cursor null" <<std::endl;
+			}	
 		}
 		break;
 		
Index: editor.cc
===================================================================
--- editor.cc	(revision 5448)
+++ editor.cc	(working copy)
@@ -361,6 +361,7 @@
 	_edit_point = EditAtMouse;
 	_internal_editing = false;
 	current_canvas_cursor = 0;
+	
 
 	frames_per_unit = 2048; /* too early to use reset_zoom () */
 	reset_hscrollbar_stepping ();
@@ -470,6 +471,9 @@
 	edit_hscrollbar.set_name ("EditorHScrollbar");
 
 	build_cursors ();
+	// since cursors have now been built set the current
+	current_canvas_cursor = selector_cursor;
+
 	setup_toolbar ();
 	setup_midi_toolbar ();
 
fix_cursors.patch (1,188 bytes)   

seablade

2009-08-01 01:37

manager   ~0006477

Assigned to paul to take a look at the patch.

cth103

2010-07-25 23:25

administrator   ~0008643

I'm pretty sure the issues that this patch fixes have been resolved. Please re-open this bug if not.

system

2020-04-19 20:14

developer   ~0021966

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2009-08-01 01:32 drmoore New Issue
2009-08-01 01:32 drmoore File Added: fix_cursors.patch
2009-08-01 01:36 seablade Status new => assigned
2009-08-01 01:36 seablade Assigned To => paul
2009-08-01 01:37 seablade Note Added: 0006477
2010-04-24 10:28 cth103 Category bugs => bugs2
2010-04-24 10:31 cth103 Category bugs2 => bugs
2010-07-21 15:30 cth103 cost => 0.00
2010-07-21 15:30 cth103 Target Version => 3.0-beta1
2010-07-25 23:25 cth103 Note Added: 0008643
2010-07-25 23:25 cth103 Status assigned => resolved
2010-07-25 23:25 cth103 Resolution open => fixed
2020-04-19 20:14 system Note Added: 0021966
2020-04-19 20:14 system Status resolved => closed