huzaifa2k9 / diy-layout-creator

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

Crashes with "pointer being freed was not allocated" #145

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load the attached layout
2. Add/edit a component (I added some text, then double-clicked to edit)
3. Crash!

What is the expected output? What do you see instead?
The software crashes, instead of letting me edit the text / add the component / 
etc.

Whenever possible, please attach the latest log file. It will
provide valuable information when trying to reproduce and locate the
problem. Log files can be found in the log directory under the main
application directory and are marked with date and time.

Log file attached - but stdout error is as follows (has more detail than the 
log for this)
09:10:20,900  INFO [AWT-EventQueue-0] ConfigurationManager - Saving 
configuration
09:10:22,606  INFO [AWT-EventQueue-0] ActionFactory - OpenAction triggered
09:10:24,274  INFO [AWT-EventQueue-0] ConfigurationManager - Saving 
configuration
09:10:24,281 DEBUG [SwingWorker-pool-1-thread-2] ActionFactory - Opening from 
/Users/jonathan/esctl/node/trunk/kpib_node/kpib_perfboard.diy
09:10:24,281  INFO [SwingWorker-pool-1-thread-2] Presenter - 
loadProjectFromFile(/Users/jonathan/esctl/node/trunk/kpib_node/kpib_perfboard.di
y)
09:10:24,282  INFO [SwingWorker-pool-1-thread-2] ProjectFileManager - 
loadProjectFromFile(/Users/jonathan/esctl/node/trunk/kpib_node/kpib_perfboard.di
y)
09:10:24,545  INFO [SwingWorker-pool-1-thread-2] Presenter - loadProject(New 
Project, true)
09:10:41,155 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=1272,y=496], false, false, false)
09:11:25,053 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=1286,y=662], false, false, false)
09:11:29,546  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(Label)
09:11:29,548  INFO [AWT-EventQueue-0] InstantiationManager - Instatiating 
component of type: org.diylc.components.misc.Label
09:11:29,550  INFO [AWT-EventQueue-0] ConfigurationManager - Saving 
configuration
09:11:30,691 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=1146,y=999], false, false, false)
09:11:30,749  INFO [AWT-EventQueue-0] InstantiationManager - Instatiating 
component of type: org.diylc.components.misc.Label
09:11:30,752  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(null)
09:11:30,808  INFO [AWT-EventQueue-0] UndoHandler - Undo state changed
09:11:30,808  INFO [pool-2-thread-1] Presenter - saveProjectToFile(autoSave.diy)
09:11:31,826 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=1162,y=1000], false, false, false)
09:11:31,994 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=1162,y=1000], false, false, false)
09:11:31,998 DEBUG [AWT-EventQueue-0] PropertyEditorDialog - Creating property 
editor for: [Color = java.awt.Color[r=0,g=0,b=0], Font = 
java.awt.Font[family=Tahoma,name=Tahoma,style=plain,size=14], Font Bold = 
false, Font Italic = false, Font Size = 14, Text = Double click to edit text]
java(14762,0x113a55000) malloc: *** error for object 0x7fc4f04ebd40: pointer 
being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
./run.sh: line 1: 14762 Abort trap: 6           java -Xms128m -Xmx512m -cp 
diylc.jar:lib org.diylc.DIYLCStarter

What version of the product are you using? On what operating system?
3.7.0 beta on MacOSX Lion

Please provide any additional information below.

Original issue reported on code.google.com by jmhunt...@gmail.com on 31 May 2012 at 8:15

Attachments:

GoogleCodeExporter commented 8 years ago
Supplementary information:

This also works with an older version of DIYLC, running on the same computer.

I created a new layout from scratch (because the older version wouldn't open 
the file created in the newer one :-( ) and all was absolutely fine UNTIL I 
added and edited some text - at which point it crashed.

Possibly a font related bug?

I couldn't trigger it just now by adding text to an empty layout, so there 
seems to be something else going on..

Stdout log:

17:23:07,270  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(null)
17:23:08,132  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(Label)
17:23:08,133  INFO [AWT-EventQueue-0] InstantiationManager - Instatiating 
component of type: org.diylc.components.misc.Label
17:23:14,036 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=707,y=1022], false, false, false)
17:23:14,038  INFO [AWT-EventQueue-0] InstantiationManager - Instatiating 
component of type: org.diylc.components.misc.Label
17:23:14,040  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(Label)
17:23:14,040  INFO [AWT-EventQueue-0] InstantiationManager - Instatiating 
component of type: org.diylc.components.misc.Label
17:23:14,061  INFO [AWT-EventQueue-0] UndoHandler - Undo state changed
17:23:14,062  INFO [pool-2-thread-1] Presenter - saveProjectToFile(autoSave.diy)
17:23:14,164 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=707,y=1022], false, false, false)
17:23:15,427  INFO [AWT-EventQueue-0] Presenter - setNewComponentSlot(null)
17:23:16,306 DEBUG [AWT-EventQueue-0] Presenter - 
dragStarted(java.awt.Point[x=712,y=1025])
17:23:16,589 DEBUG [AWT-EventQueue-0] Presenter - 
dragEnded(java.awt.Point[x=710,y=1049])
17:23:16,605  INFO [AWT-EventQueue-0] UndoHandler - Undo state changed
17:23:16,606  INFO [pool-2-thread-1] Presenter - saveProjectToFile(autoSave.diy)
17:23:17,163 DEBUG [AWT-EventQueue-0] Presenter - dragEnded(null)
17:23:17,468 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=709,y=1045], false, false, false)
17:23:17,588 DEBUG [AWT-EventQueue-0] Presenter - 
mouseClicked(java.awt.Point[x=709,y=1045], false, false, false)
17:23:17,590 DEBUG [AWT-EventQueue-0] PropertyEditorDialog - Creating property 
editor for: [Color = java.awt.Color[r=0,g=0,b=0], Font = 
java.awt.Font[family=Tahoma,name=Tahoma,style=plain,size=14], Font Bold = 
false, Font Italic = false, Font Size = 14, Text = Double click to edit text]
Invalid memory access of location 0x10000168e rip=0x1112ad6b1
./run.sh: line 1: 18751 Segmentation fault: 11  java -Xms128m -Xmx512m -cp 
diylc.jar:lib org.diylc.DIYLCStarter

Original comment by jmhunt...@gmail.com on 3 Jun 2012 at 4:37

GoogleCodeExporter commented 8 years ago

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