KoKuToru / gTox

[abandoned] GTK3 Tox-Client
GNU General Public License v3.0
45 stars 7 forks source link

Creating a new profile crashes after completion #182

Open mohlek opened 8 years ago

mohlek commented 8 years ago

Creating a new profile doesn't work. It says "Database already open"

I am using latest gTox with latest toxcore. My ~/.config/tox/ is fully empty

KoKuToru commented 8 years ago

what database ? there is no database..

mohlek commented 8 years ago

No clue. That's what the error window says. I tried to debug bug i couldn't find that specific line :-/

KoKuToru commented 8 years ago

This error message doesn't even exists in gtox... search for "database" in all files..

Teemperor commented 8 years ago

Could be an error from an underlying library where the error message is displayed in the UI.

KoKuToru commented 8 years ago

I am getting a completely different error

(gtox:5953): Gtk-CRITICAL **: gtk_assistant_get_current_page: assertion 'GTK_IS_ASSISTANT (assistant)' failed

(gtox:5953): Gtk-CRITICAL **: gtk_assistant_get_n_pages: assertion 'GTK_IS_ASSISTANT (assistant)' failed
fish: './gtox' terminated by signal SIGSEGV 

can be fixed (bypassed) with commenting out delete assistant_ptr; in gotx.cpp

assistant->signal_hide().connect_notify([this, assistant_ptr]() {
    utils::debug::scope_log log(DBG_LVL_2("gtox"), {});
    Glib::ustring path = assistant_ptr->get_path();
    remove_window(*assistant_ptr);
    //delete assistant_ptr;
    if (!path.empty()) {
        open(Gio::File::create_for_path(path));
    } else {
        activate();
    }
}, true);

something is using the reference after deleting it..

@MauriceMohlek could you try if this bypasses your problem ?

mohlek commented 8 years ago

"New" version seems to run fine

KoKuToru commented 8 years ago

Still crashes on my system

mohlek commented 8 years ago

Worked for me. I give it another try later

KoKuToru commented 8 years ago

on archlinux with gtox-git-alpha.r291.gcda0cc6-1 with gtk3 3.18.6-1 and gtkmm3 3.18.0-2

(gtox:21824): Gtk-CRITICAL **: gtk_assistant_get_current_page: assertion 'GTK_IS_ASSISTANT (assistant)' failed

(gtox:21824): Gtk-CRITICAL **: gtk_assistant_get_n_pages: assertion 'GTK_IS_ASSISTANT (assistant)' failed
fish: 'gtox' terminated by signal SIGSEGV (Adressbereichsfehler)