mantri-govind / diy-layout-creator

Automatically exported from code.google.com/p/diy-layout-creator
0 stars 0 forks source link

Crashes when manipulating text under OS X #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Added a text and entered the text value
2. Added another and entered the text value
3. Tried to move #2 and the Java VM crashed

Nothing of interest in the log, but the last few lines of the console are:

---
12:54:14,116 DEBUG [AWT-EventQueue-0] Presenter - Expanding selected component 
map
12:54:14,116 DEBUG [AWT-EventQueue-0] Presenter - Including component: VR2
12:54:14,116 DEBUG [AWT-EventQueue-0] Presenter - Including component: W4
12:54:14,116 DEBUG [AWT-EventQueue-0] Presenter - Including component: W6
12:54:14,116 DEBUG [AWT-EventQueue-0] Presenter - Component count changed, 
trying one more time.
12:54:14,116 DEBUG [AWT-EventQueue-0] Presenter - Expanding selected component 
map
12:54:14,117 DEBUG [AWT-EventQueue-0] Presenter - Component count didn't 
change, done with expanding.
Invalid memory access of location 0x30 rip=0x7fff82cc711c

---

I am a developer and can help out with any debugging you may need.  I have all 
the Java tools to help out, just let me know.

Original issue reported on code.google.com by chris.lo...@gmail.com on 3 Feb 2011 at 5:59

GoogleCodeExporter commented 9 years ago
I can try with alternate double-buffering mechanism. Right now it uses VGA 
card's memory to store the buffer, but in the next version I'll use good old 
RAM. Hope that fixes it.

Cheers

Original comment by bancika@gmail.com on 3 Feb 2011 at 11:14

GoogleCodeExporter commented 9 years ago
Can you try version 3.0.6 and see if it fixes the crash? I switched from 
VolatileImage to BufferedImage.
Tnx

Original comment by bancika@gmail.com on 7 Feb 2011 at 9:17

GoogleCodeExporter commented 9 years ago
Seems that text manipulation may be better, but could not test on the circuit 
where it crashed because it would not import (no biggie).  I did still see some 
crashes with text onscreen, but not manipulating text.  Again nothing in the 
log, but in the CLI:

---
08:47:13,082  INFO [AWT-EventQueue-0] UndoHandler - Undo state changed
08:47:15,420  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(null)
08:47:16,777  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(Perf 
Board w/ Pads)
08:47:16,777  INFO [AWT-EventQueue-0] InstantiationManager - Instatiating 
component of type: org.diylc.components.boards.PerfBoard
08:47:18,658 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=486,y=451], false, false, false)
08:47:18,666  INFO [AWT-EventQueue-0] InstantiationManager - Instatiating 
component of type: org.diylc.components.boards.PerfBoard
08:47:18,668  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(null)
08:47:18,675  INFO [AWT-EventQueue-0] UndoHandler - Undo state changed
08:47:25,241  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(null)
08:47:27,807  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(Resistor)
08:47:29,279 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=507,y=468], false, false, false)
08:47:29,287  INFO [AWT-EventQueue-0] InstantiationManager - Instatiating 
component of type: org.diylc.components.passive.Resistor
08:47:29,297  INFO [AWT-EventQueue-0] UndoHandler - Undo state changed
08:47:30,328 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=508,y=616], false, false, false)
08:47:30,344  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(null)
08:47:30,355  INFO [AWT-EventQueue-0] UndoHandler - Undo state changed
08:47:32,617  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(Resistor)
08:47:34,810 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=543,y=466], false, false, false)
08:47:34,825  INFO [AWT-EventQueue-0] InstantiationManager - Instatiating 
component of type: org.diylc.components.passive.Resistor
08:47:34,837  INFO [AWT-EventQueue-0] UndoHandler - Undo state changed
Invalid memory access of location 0x2c eip=0x91832ed7
---

Attaching log just in case.

Original comment by chris.lo...@gmail.com on 7 Feb 2011 at 1:51

Attachments:

GoogleCodeExporter commented 9 years ago
If it helps I did a video of crashing:

http://www.youtube.com/watch?v=zPhDvX7TCkY

Original comment by ch...@bbzzdd.com on 7 Feb 2011 at 2:17

GoogleCodeExporter commented 9 years ago
Tnx for the info. Looks like there's a bug either in java or mac, I googled a 
couple of similar incidents
http://macosx.com/forums/mac-os-x-system-mac-software/307051-java-crashes.html
http://discussions.apple.com/thread.jspa?threadID=1822236

In one of the threads, guy increased heap space and it stopped happening. Can 
you try it with, lets say -Xms1024M -Xmx1024M

Cheers

Original comment by bancika@gmail.com on 13 Feb 2011 at 9:57

GoogleCodeExporter commented 9 years ago
Just used it for a while and it seems a lot better now.

Original comment by chris.lo...@gmail.com on 3 Mar 2011 at 1:39

GoogleCodeExporter commented 9 years ago
Issue 38 has been merged into this issue.

Original comment by bancika@gmail.com on 6 Mar 2011 at 7:45

GoogleCodeExporter commented 9 years ago
SUsing 3.0.9 beta under OSx Lion 10.7.2. App  consistently crashes after about 
5 min use.

Original comment by dubtron...@gmail.com on 1 Jan 2012 at 1:46

GoogleCodeExporter commented 9 years ago
Issue 97 has been merged into this issue.

Original comment by bancika@gmail.com on 26 Feb 2012 at 2:22

GoogleCodeExporter commented 9 years ago
Issue 68 has been merged into this issue.

Original comment by bancika@gmail.com on 26 Feb 2012 at 8:45

GoogleCodeExporter commented 9 years ago
Experiencing the same issue as in Comment 8 under OSX 10.6.8

Creating and editing text objects works, but after a while the app would crash.

Original comment by leo....@googlemail.com on 12 Mar 2012 at 4:54

GoogleCodeExporter commented 9 years ago
Trying 3.7.0. beta on OSX 10.7.3. Lion, and I can use the program for only 5-60 
seconds until it crashes. Every single time. Often when moving parts, sometimes 
when clicking on the tabs, sometimes when doing nothing but waiting.

Original comment by akirinta...@gmail.com on 2 Jul 2012 at 12:12

GoogleCodeExporter commented 9 years ago
Same to me: OSX 10.6.7. After using some text objects program crashes within 
seconds.

Original comment by matthias...@gmail.com on 30 Jul 2012 at 4:46

GoogleCodeExporter commented 9 years ago
heap space: 
I used the java -Xms2048M -Xmx2048M -jar diylc.jar start command:
nothing changes, only crashes:

18:57:26,791 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=842,y=850], false, false, false)
18:57:26,797  INFO [AWT-EventQueue-0] InstantiationManager - Instatiating 
component of type: org.diylc.components.misc.Label
18:57:26,798  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(null)
18:57:26,803  INFO [AWT-EventQueue-0] UndoHandler - Undo state changed
18:57:26,803  INFO [pool-2-thread-1] Presenter - saveProjectToFile(autoSave.diy)
Invalid memory access of location 0x0 rip=0x7fff8671e120

Segmentation fault
Hackintosh:diylc-3.7.0-beta madias$ 

Original comment by matthias...@gmail.com on 30 Jul 2012 at 5:00

GoogleCodeExporter commented 9 years ago
Can you please provide the java log? It should created by JRE be in the same 
folder as diylc.jar
tnx

Original comment by bancika@gmail.com on 30 Jul 2012 at 5:01

GoogleCodeExporter commented 9 years ago
bancika, don't know whose logs you asked for, but here are mine.

Original comment by akirinta...@gmail.com on 1 Aug 2012 at 3:56

Attachments:

GoogleCodeExporter commented 9 years ago
those are app logs. Java crash is logged in logs java makes, usually where you 
run the app from (diylc folder) or maybe in user temp folder. Can you please 
look for hs_err_pid*.log file?
tnx

Original comment by bancika@gmail.com on 1 Aug 2012 at 3:58

GoogleCodeExporter commented 9 years ago
No such files present in the diylc.jar directory. However, when crashing, the 
system creates this report:

Original comment by akirinta...@gmail.com on 1 Aug 2012 at 4:18

Attachments:

GoogleCodeExporter commented 9 years ago
Great, that's the one! tnx

Original comment by bancika@gmail.com on 1 Aug 2012 at 4:19

GoogleCodeExporter commented 9 years ago

Original comment by bancika@gmail.com on 3 Aug 2012 at 9:56

GoogleCodeExporter commented 9 years ago
here's another one I saw

Process:         java [9113]
Path:            /usr/bin/java
Identifier:      com.apple.javajdk16.cmd
Version:         1.0 (1.0)
Code Type:       X86-64 (Native)
Parent Process:  bash [9112]

Date/Time:       2012-08-06 13:15:00.406 +0200
OS Version:      Mac OS X 10.7.4 (11E53)
Report Version:  9
Sleep/Wake UUID: 75AB1BDF-B0A9-4BED-B04E-8256E0A09191

Interval Since Last Report:          74159 sec
Crashes Since Last Report:           8
Per-App Interval Since Last Report:  841 sec
Per-App Crashes Since Last Report:   8
Anonymous UUID:                      70BD1778-0950-4B18-A0B1-5E969F5DABB5

Crashed Thread:  21  Java: AWT-EventQueue-0

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000100011488

VM Regions Near 0x100011488:
-->
    __TEXT                 00000001050bc000-00000001050c4000 [   32K] r-x/rwx SM=COW  /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java

Application Specific Information:
objc[9113]: garbage collection is OFF

Java information:
 Exception type: Bus Error (0xa) at pc=10f8feda9

 Java VM: Java HotSpot(TM) 64-Bit Server VM (20.8-b03-424 mixed mode macosx-amd64)

Current thread (7f942c94d800):  JavaThread "AWT-EventQueue-0" 
[_thread_in_native, id=330584064, stack(113a45000,113b45000)]
Stack: [113a45000,113b45000]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  
sun.font.AppleNativeStrike.getNativeGlyphImageBounds(JILjava/awt/geom/Rectangle2
D$Float;DD)V
J  sun.font.StandardGlyphVector.getVisualBounds()Ljava/awt/geom/Rectangle2D;
j  
org.diylc.components.AbstractComponent.drawCenteredText(Ljava/awt/Graphics2D;Lja
va/lang/String;IILorg/diylc/common/HorizontalAlignment;Lorg/diylc/common/Vertica
lAlignment;)V+42
j  
org.diylc.components.electromechanical.CliffJack1_4.draw(Ljava/awt/Graphics2D;Lo
rg/diylc/core/ComponentState;ZLorg/diylc/core/Project;Lorg/diylc/core/IDrawingOb
server;)V+436
J  
org.diylc.presenter.DrawingManager.drawProject(Ljava/awt/Graphics2D;Lorg/diylc/c
ore/Project;Ljava/util/Set;Lorg/diylc/common/IComponentFiler;Ljava/awt/Rectangle
;Ljava/util/List;Ljava/util/Set;Ljava/util/Set;Ljava/util/List;Lorg/diylc/core/I
DIYComponent;Z)Ljava/util/List;
J  
org.diylc.presenter.Presenter.draw(Ljava/awt/Graphics2D;Ljava/util/Set;Lorg/diyl
c/common/IComponentFiler;)V
j  org.diylc.swing.plugins.canvas.CanvasPanel.paint(Ljava/awt/Graphics;)V+105
j  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+512
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+322
j  javax.swing.JViewport.paint(Ljava/awt/Graphics;)V+205
J  javax.swing.JComponent._paintImmediately(IIII)V
j  javax.swing.JComponent.paintImmediately(IIII)V+83
j  javax.swing.RepaintManager.paintDirtyRegions(Ljava/util/Map;)V+258
j  javax.swing.RepaintManager.paintDirtyRegions()V+46
j  javax.swing.RepaintManager.prePaintDirtyRegions()V+73
j  javax.swing.RepaintManager.access$700(Ljavax/swing/RepaintManager;)V+1
j  javax.swing.RepaintManager$ProcessingRunnable.run()V+37
j  java.awt.event.InvocationEvent.dispatch()V+47
j  
java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+21
j  
java.awt.EventQueue.access$000(Ljava/awt/EventQueue;Ljava/awt/AWTEvent;Ljava/lan
g/Object;)V+3
j  java.awt.EventQueue$1.run()Ljava/lang/Void;+12
j  java.awt.EventQueue$1.run()Ljava/lang/Object;+1
v  ~StubRoutines::call_stub
j  
java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljav
a/security/AccessControlContext;)Ljava/lang/Object;+0
j  
java.security.AccessControlContext$1.doIntersectionPrivilege(Ljava/security/Priv
ilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlCon
text;)Ljava/lang/Object;+28
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46
j  java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z+204
j  
java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/aw
t/EventFilter;)V+30
j  
java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava
/awt/Component;)V+11
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub

Original comment by bancika@gmail.com on 6 Aug 2012 at 11:23

GoogleCodeExporter commented 9 years ago
Issue 139 has been merged into this issue.

Original comment by bancika@gmail.com on 7 Aug 2012 at 8:48

GoogleCodeExporter commented 9 years ago
Issue 145 has been merged into this issue.

Original comment by bancika@gmail.com on 7 Aug 2012 at 9:33

GoogleCodeExporter commented 9 years ago
Can someone with Mac give the new version a test drive? It should perform 
faster and more reliable. Here's the link 
http://diy-layout-creator.googlecode.com/files/diylc-3.10.0-beta.zip
Thanks

Original comment by bancika@gmail.com on 20 Aug 2012 at 1:53

GoogleCodeExporter commented 9 years ago
Looks like this is fixed in 3.11

Original comment by bancika@gmail.com on 22 Aug 2012 at 10:17