Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash al ejecutar ninja-ide.py (segfault causado por flash) (SOLVED) #446

Closed
richarson opened this issue Apr 12, 2012 · 2 comments
Closed

Comments

@richarson
Copy link

Hola, me encontre con este error al querer ejecutar ninja-ide:

INFO:ninja_ide.gui.dialogs.wizard_new_project:loaded
NINJA-IDE(19169)/ KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-richis/ksycoca4"

(process:19169): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init()

(process:19169): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:19169): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
Segmentation fault

Se ve el splash y alcanza a cargar la ventana principal, luego crashea.

Esto me paso con las versiones 1.1, 2.0beta3 instaladas desd los .deb, y con la version de github.

Datos sobre mi sistema:

  • Kubuntu 10.04 de 64 bits
  • KDE 4.4.5
  • Qt 4.6.3
  • PyQt 4.7.2
  • Python 2.6.5
@richarson
Copy link
Author

Probe ninja-ide sobre un Kubuntu 10.10 que tengo en casa y anduvo de maravillas, asi que me puse a googlear de nuevo y me encontre con esto:

http://groups.google.com/group/ninja-ide/browse_thread/thread/9ac15c9dd4a0d363/d5b993825e7e4616?lnk=gst#d5b993825e7e4616

Asi que, como explica Manuel Naranjo, el problema radica en la interaccion de flash y webkit/qtwebkit y el unico workaround, si no se puede actualizar webkit/qtwebkit, es inicializar gtk mediante codigo:

try:
import pygtk
pygtk.require("2.0")
import gtk
print "gtk init"
except Exception, err:
print err
pass

@richarson
Copy link
Author

Of course, el codigo deberia ir indentado :)

try:
    import pygtk
    pygtk.require("2.0")
    import gtk
    print gtk.init
except: Exception, err:
    print err
    pass

Poniendo este codigo en ninja-ide.py, el editor se ejecuta bien aunque vuelve a dar segfault al cerrarlo.

Por lo menos me da la posibilidad de ir usandolo hasta que actualice mi Kubuntu al proximo LTS :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant