AnthonyVillacorta / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

sketch_aug19a - crashes under X on window resize #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open an example Sketch from the file browser 
2. Resize the window containing the sketch
3. IDE crashes

Fedora Core 10 (Linux kepler.gemini 2.6.27.29-170.2.78.fc10.i686 #1 SMP Fri
Jul 31 04:40:15 EDT 2009 i686 i686 i386 GNU/Linux) - Arduino 0017 installed.

What is the expected output? What do you see instead?
at sun.awt.X11.XlibWrapper.CallErrorHandler(Native Method)
    at sun.awt.X11.XToolkit.SAVED_ERROR_HANDLER(XToolkit.java:142)
    at sun.awt.X11.XToolkit.GlobalErrorHandler(XToolkit.java:153)
    at sun.java2d.loops.MaskBlit.MaskBlit(Native Method)
    at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:204)
    at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:953)
    at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:575)
    at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:71)
    at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1008)
    at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3053)
    at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3038)
    at com.sun.java.swing.plaf.gtk.GTKEngine.finishPainting(GTKEngine.java:606)
    at com.sun.java.swing.plaf.gtk.GTKEngine.finishPainting(GTKEngine.java:580)

    at javax.swing.JComponent.paintChildren(JComponent.java:875)
    at javax.swing.JComponent.paintToOffscreen(JComponent.java:5154)
    at
javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:302
)
    at javax.swing.RepaintManager.paint(RepaintManager.java:1145)
    at javax.swing.JComponent.paint(JComponent.java:1024)
    at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
    at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78)
    at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115)
    at java.awt.Container.paint(Container.java:1844)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:751)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:696)
    at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:676)
    at javax.swing.RepaintManager.access$700(RepaintManager.java:57)
    at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1550)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
    at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275
)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190
)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
The program '<unknown>' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 34844 error_code 8 request_code 144 minor_code 4)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Please provide any additional information below.
- Happy to send more stack traces if it would help! 

Cheers,

Jerry

Original issue reported on code.google.com by jerry.w...@gmail.com on 19 Aug 2009 at 9:05

GoogleCodeExporter commented 9 years ago
Which java runtime is installed on your system?
(run "java -version" in a console)

I'm using KUbuntu and here none of the open-source alternative (OpenJava etc.) 
works
properly. 

I also had issues with the default GTk-Theme that is used in the Arduino-IDE. It
implements some hardware-acceleration stuff that crashed X up until KUbuntu 
8.10.

You can disable this theme in file arduino-0017/arduino comment out the line 
saying
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel 
processing.app.Base
by putting the # character in front of it. 
Eberhard

Original comment by e.fa...@wayoda.org on 21 Aug 2009 at 9:04

GoogleCodeExporter commented 9 years ago
This is using the Sun JVM...

$ java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)

Original comment by jerry.w...@gmail.com on 29 Aug 2009 at 6:56

GoogleCodeExporter commented 9 years ago
with .0.18 seems there is a problem with the dist process.

using the std tarball from the site, the arduino pde is still crashing 

if i compile it on my own, before running ./dist.sh its working 
at@at-desktop:~/Documents/git/arduino/build/linux$ ./run.sh 

Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7

after running ./dist.sh and unpacking the tarball on the same machine at a 
different 
place
not working:

at@at-desktop:~/bin/arduino-0018$ ./arduino 
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
The program '<unknown>' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 1094 error_code 8 request_code 139 minor_code 4)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

at@at-desktop:~/bin/arduino-0018$ uname -a
Linux at-desktop 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 
i686 
GNU/Linux

Original comment by Andreas....@gmail.com on 3 Feb 2010 at 2:10

GoogleCodeExporter commented 9 years ago
Arduino 0018 IDE keeps crashing on window resize (actually only when decreasing 
the
size). I am running Ubuntu 9.10 and kernel 2.6.31-19-generic (32-bit) on a AMD 
64-bit
notebook. The "java -version" query gives this: OpenJDK Runtime Environment 
(IcedTea6
1.6.1) (6b16-1.6.1-3ubuntu1)
OpenJDK Client VM (build 14.0-b16, mixed mode, sharing.

This is most annoying bug, as it makes it practically impossible to program the
Arduino board. The Arduino IDE works flawlessly under Windows XP on the same 
'puter,
though...

Original comment by bergman....@gmail.com on 27 Feb 2010 at 10:32

GoogleCodeExporter commented 9 years ago
<quote>
The "java -version" query gives this: OpenJDK Runtime Environment (IcedTea6
1.6.1) (6b16-1.6.1-3ubuntu1)
OpenJDK Client VM (build 14.0-b16, mixed mode, sharing.
</quote>
Installing package sun-java6-jre and then making it the default JavaRuntime with

sudo update-alternatives --config java 

usually solves this problem 
Eberhard

Original comment by e.fa...@wayoda.org on 28 Feb 2010 at 11:35

GoogleCodeExporter commented 9 years ago
These sound like bugs in OpenJDK or in the theme GTK implementation, so I'm 
closing this. If you have ideas 
about what we might be able to about it, you can re-open another issue for that.

Original comment by dmel...@gmail.com on 28 Feb 2010 at 4:43

GoogleCodeExporter commented 9 years ago
Did as Eberhard suggested (comment #5, i.e. installed package sun-java6-jre and 
then 
made it the default JavaRuntime), and this seems to have solved my problem (as 
per 
comment #4). I'm most obliged!
Martin

Original comment by bergman....@gmail.com on 28 Feb 2010 at 10:13

GoogleCodeExporter commented 9 years ago
Did as Eberhard suggested (comment #5, i.e. installed package sun-java6-jre and 
then 
made it the default JavaRuntime), and this seems to have solved my problem (as 
per 
comment #4). I'm most obliged!
Martin

Original comment by bergman....@gmail.com on 28 Feb 2010 at 10:14