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

Editor crashes shortly after viewing visual theme preferences #10363

Closed
DartBot opened this issue May 1, 2013 · 17 comments

Comments

Projects
None yet
6 participants
@DartBot
Copy link

commented May 1, 2013

This issue was originally filed by ta...@osd.dk


What steps will reproduce the problem?

  1. Start DartEditor
  2. Go to Tools > Preferences > Visual Theme
  3. Click Cancel (or OK)
  4. Do something, resize window, unfocus/focus etc.

What version of the product are you using? On what operating system?
Dart Editor version 0.5.1_r22072

$ java -version
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

Ubuntu 13.04.

DartEditor log attached.


Attachment:
.log (37.51 KB)

@madsager

This comment has been minimized.

Copy link
Member

commented May 2, 2013

Added Area-Editor, Triaged labels.

@stevemessick

This comment has been minimized.

Copy link
Contributor

commented May 2, 2013

I can't reproduce this problem. Are you using the default analyzer? How many edit views are open? Is the debugger active? How many problems are listed? How many projects are open? Is the outline view open? Which window manager do you use? (The log file has no useful information, unfortunately.)


Set owner to @stevemessick.
Added this to the Later milestone.
Added NeedsInfo label.

@DartBot

This comment has been minimized.

Copy link
Author

commented May 2, 2013

This comment was originally written by ta...@osd.dk


This is done with a clean config (as in mv ~/.dartEditor ~/.dartEditor.backup). No projects open. Welcome page displayed. Default Unity wm in Ubuntu 13.04.

I reproduced it on a different Ubuntu installation (13.04), running in vmware on windows. This install is using Dart Editor version 0.4.1_r19425.

I managed to get a coredump from a crash and noticed this:

Program terminated with signal 11, Segmentation fault.
#­0 0x00007f0d663c1a1e in _IO_default_xsputn () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#­0 0x00007f0d663c1a1e in _IO_default_xsputn () from /lib/x86_64-linux-gnu/libc.so.6
#­1 0x00007f0d6638e917 in vfprintf () from /lib/x86_64-linux-gnu/libc.so.6
#­2 0x00007f0d66455f41 in __vasprintf_chk () from /lib/x86_64-linux-gnu/libc.so.6
#­3 0x00007f0d4f628beb in g_vasprintf () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#­4 0x00007f0d4f6068fd in g_strdup_vprintf () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#­5 0x00007f0d4f5f1112 in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#­6 0x00007f0d4f5f1492 in g_log () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#­7 0x00007f0d4f8cedfb in g_type_check_instance_cast () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#­8 0x00007f0d1fdf499b in ?? () from /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/liboverlay-scrollbar.so
#­9 0x00007f0d1fdf4c26 in ?? () from /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/liboverlay-scrollbar.so
#­10 0x00007f0d1fdf4b1b in ?? () from /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/liboverlay-scrollbar.so
#­11 0x00007f0d1fdf4c26 in ?? () from /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/liboverlay-scrollbar.so
[...]
#­21350 0x00007f0d1fdf4b1b in ?? () from /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/liboverlay-scrollbar.so
#­21351 0x00007f0d1fdf4c26 in ?? () from /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/liboverlay-scrollbar.so
#­21352 0x00007f0d1fdf4b1b in ?? () from /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/liboverlay-scrollbar.so
#­21353 0x00007f0d1fdf7e34 in ?? () from /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/liboverlay-scrollbar.so
#­21354 0x00007f0d244e9929 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#­21355 0x00007f0d4f8ad620 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#­21356 0x00007f0d4f8bef00 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#­21357 0x00007f0d4f8c6996 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0

---Type <return> to continue, or q <return> to quit---
#­21358 0x00007f0d4f8c6f92 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#­21359 0x00007f0d24602d9e in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#­21360 0x00007f0d244e827b in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#­21361 0x00007f0d1c728fa5 in ?? ()
#­21362 0x00000000b23c3578 in ?? ()
#­21363 0x00007f0d5d011f90 in ?? ()
#­21364 0x00007f0d600067f0 in ?? ()
#­21365 0x00007f0d66f3b1b8 in ?? ()
#­21366 0x00007f0d66f3b1c0 in ?? ()
#­21367 0x0000000000000000 in ?? ()

On a wtf-21000-lines-of-liboverlay-scrollbar-backtrace-hunch I switched the overlay scrollbar to legacy and was unable to reproduce the crash. I switched it back to default and the crash was reproducible.

I guess something in the visual theme is conflicting with the overlay scrollbar somehow? Eclipse SWT/Gtk issue perhaps? Not sure what Dart Editor uses.

As long as I steer clear of the visual theme pane in preferences, everything seems to work just fine.

Btw, I could not reproduce the problem in Zend Studio 9 which is also Eclipse-based.

@stevemessick

This comment has been minimized.

Copy link
Contributor

commented May 6, 2013

Thanks for the info. This looks like a variant of the "libsoup" problem that's plaguing Eclipse. See 10452.


Added Triaged label.

@DartBot

This comment has been minimized.

Copy link
Author

commented May 8, 2013

This comment was originally written by ta...@osd.dk


Might be caused by the issue reported here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=373618

@stevemessick

This comment has been minimized.

Copy link
Contributor

commented Aug 24, 2013

The work-around described here seems to be helping with a number of odd problems.

https://bugs.launchpad.net/ubuntu/+source/overlay-scrollbar/+bug/789123

The work-around is to start the editor from the command line:

LIBOVERLAY_SCROLLBAR=0 ./DartEditor

Or add
export LIBOVERLAY_SCROLLBAR=0
 to .xsessionrc if you prefer visible scroll bars.


Added OpSys-Linux label.

@danrubel

This comment has been minimized.

Copy link
Member

commented Nov 11, 2013

Removed this from the Later milestone.
Added this to the M9 milestone.

@clayberg

This comment has been minimized.

Copy link

commented Nov 15, 2013

Removed this from the M9 milestone.
Added this to the 1.1 milestone.

@stevemessick

This comment has been minimized.

Copy link
Contributor

commented Nov 22, 2013

editor crashes after you simply access tools->preferences->Visual Theme

  1. Open foo.dart or foo.html
  2. Access visual theme
  3. Escape (goes back to focus on editor pane)
  4. Switch to another program (terminal for example)
  5. Switch back
  6. Editor crashes

cc me at david.yu.ftw@gmail.com
////////////////////////////////////////////////////////////////////////////////////
Editor: 1.0.0_r30188 (2013-11-12)
OS: Linux - amd64 (3.8.0-19-generic)
JVM: 1.7.0_25

projects: 5

open dart files: 5

auto-run pub: true
localhost resolves to: 127.0.0.1
mem max/total/free: 1778 / 722 / 437 MB
thread count: 22
index: 963938 relationships in 97018 keys in 968 sources

SDK installed: true
Dartium installed: true

@DartBot

This comment has been minimized.

Copy link
Author

commented Jan 6, 2014

This comment was originally written by LukeEC...@gmail.com


Until this is fixed, we could consider just serving bitmap images of the themes.

@stevemessick

This comment has been minimized.

Copy link
Contributor

commented Jan 16, 2014

Removed this from the 1.1 milestone.
Added this to the Later milestone.

@DartBot

This comment has been minimized.

Copy link
Author

commented Feb 27, 2014

This comment was originally written by stein.seb@gmail.com


I'm still experiencing this issue with Dart 1.2 release on Ubuntu 64bit (13.10). I just right-clicked in the package tree to add a new folder and it immediately crashed.

$ ./DartEditor

(process:4298): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size
== 0' failed

!SESSION 2014-02-27 19:43:49.545


eclipse.buildId=unknown
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Command-line arguments: -os linux -ws gtk -arch x86_64 -consoleLog -data
@user.home/.dartEditor

!ENTRY org.eclipse.ui 4 0 2014-02-27 19:58:47.393
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
        at org.eclipse.swt.widgets.Widget.filters(Widget.java:920)
        at org.eclipse.swt.widgets.Text.applySegments(Text.java:402)
        at org.eclipse.swt.widgets.Text.gtk_key_press_event(Text.java:1710)
        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1773)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:5116)
        at org.eclipse.swt.widgets.Text.windowProc(Text.java:2635)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4377)
        at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
        at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8317)
        at org.eclipse.swt.widgets.Display.eventProc(Display.java:1193)
        at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native
Method)
        at
org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2342)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3184)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at
com.google.dart.tools.ui.actions.AbstractOpenWizardAction.doRun(AbstractOpenWizardAction.java:65)
        at
com.google.dart.tools.ui.actions.InstrumentedAction.runWithEvent(InstrumentedAction.java:46)
        at
com.google.dart.tools.ui.actions.InstrumentedAction.run(InstrumentedAction.java:37)
        at
com.google.dart.tools.ui.internal.intro.IntroEditor$2.widgetSelected(IntroEditor.java:144)
        at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3562)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3186)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
        at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at
com.google.dart.tools.deploy.DartIDEApplication.start(DartIDEApplication.java:85)
        at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

(process:4868): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size
== 0' failed

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007fc49758ab3c, pid=4228, tid=140482626737920

JRE version: OpenJDK Runtime Environment (7.0_51) (build 1.7.0_51-b00)

Java VM: OpenJDK 64-Bit Server VM (24.45-b08 mixed mode linux-amd64

compressed oops)

Problematic frame:

C [libgobject-2.0.so.0+0x31b3c] g_type_check_instance_is_a+0x3c

Failed to write core dump. Core dumps have been disabled. To enable core

dumping, try "ulimit -c unlimited" before starting Java again

An error report file with more information is saved as:

/home/steinchen/dart/hs_err_pid4228.log

If you would like to submit a bug report, please include

instructions on how to reproduce the bug and visit:

http://icedtea.classpath.org/bugzilla

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

@clayberg

This comment has been minimized.

Copy link

commented Apr 9, 2014

cc @scheglov.
Removed this from the Later milestone.
Added this to the 1.4 milestone.

@stevemessick

This comment has been minimized.

Copy link
Contributor

commented May 1, 2014

Reports indicate that ubuntu 14.04 has finally resolved this issue.


Added WontFix label.

@DartBot

This comment has been minimized.

Copy link
Author

commented Jul 2, 2014

This comment was originally written by @taisph


Seems this issue has resurfaced with Dart 1.5. It just crashed again after showing the visual theme settings on Ubuntu 14.04.

@DartBot

This comment has been minimized.

Copy link
Author

commented May 27, 2015

This comment was originally written by bart...@almende.org


Seems like i'm getting this error too with dart editor 1.10.0 at ubuntu 14.04.

@DartBot

This comment has been minimized.

Copy link
Author

commented May 27, 2015

This comment was originally written by @zoechi


DartEditor was discontinued, I guess probability this will be fixed is quite low.
https://groups.google.com/a/dartlang.org/forum/#!topic/editor/PB-xLcAqO7g

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.