Often crashing after upgrading to Ubuntu 13.10

Bug #1241750 reported by Sadi Yumuşak
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
medit (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I've been happily using medit as my favorite text editor for several years ...until I upgraded to Ubuntu 13.10 yesterday, after which it began crashing instantly with error message "Segmentation fault (core dumped)" displayed when launched from Terminal.

Sadi Yumuşak (sa-yu)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in medit (Ubuntu):
status: New → Confirmed
Revision history for this message
Mostafa Najafi (najafiyazdi-m) wrote :

If you run under admin using sudo, it will not crash!

Revision history for this message
Mostafa Najafi (najafiyazdi-m) wrote :

Try running medit in terminal (as a standard user). The attempt to add property MooEditConfig::indent-wideth fails with a segmentation fault (see Attachment)

Revision history for this message
Adnan Shameem (needadnan) wrote :

Mostafa Najafi (najafiyazdi-m) is right. If medit is ran with sudo, it doesn't crash.
I like medit so much that I arranged a temporary solution for myself.

- I have installed Main Menu with :
sudo apt-get install alacarte
- Then I opened Main Menu, navigated to Accessories, then "medit" menu item. Clicked Properties.
- In the "Command" field, I found the text "medit %F" (without quotes). I have added sudo before it, making it:
sudo medit %F
- Clicked OK and quit Main Menu.

Now medit doesn't crash when I open it from dash. After opening it from dash I have right-clicked on the launcher icon of medit and clicked Lock to Launcher. Now the launcher shortcut works ok. (I haven't used Software center to install medit, so I had to manually add the icon to Launcher. You may not need to do this.) This solution also works when you open a file with nautilus right click menu. Cool!

This is not a permanent solution, I know. But it lets you use medit until the bug is resolved.

Revision history for this message
Artemy Vysotsky (artemyv) wrote :

I have debugged the crash on my Ubuntu using latest code from
hg clone https://<email address hidden>/medit/medit

I have found that crash occurs in the callback update_recent_list_visibility

So for now I closed the initialization of this callback - I do not know what side effects this will cause.

In function void
_moo_encodings_menu_action_set_current (GtkAction *gtkaction,
                                        const char *enc_name)
 I have cahnged internal if to

        if (action->cur_item && !action->update_idle)
        {
        /*
            action->update_idle = g_idle_add_full (G_PRIORITY_DEFAULT_IDLE + 1,
                                                   (GSourceFunc) update_recent_list_visibility,
                                                   action, NULL);
                                                   */
        }

So far medit starts without crash.
I hope somebody who knows what this callback suppose to do will find a reason for the crash and fix bug properly

Revision history for this message
Sadi Yumuşak (sa-yu) wrote :
Revision history for this message
Artemy Vysotsky (artemyv) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.