- Snippets7 hangs with:
Exception in thread "main" java.lang.RuntimeException: Unable to layout page 1
at net.sf.paperclips.PaperClips.getPages(PaperClips.java:259)
at net.sf.paperclips.PaperClips.getPages(PaperClips.java:232)
at net.sf.paperclips.ui.PrintPreview.getPages(PrintPreview.java:373)
at net.sf.paperclips.ui.PrintPreview.getPageCount(PrintPreview.java:151)
at net.sf.paperclips.examples.Snippet7$1.run(Snippet7.java:108)
at net.sf.paperclips.examples.Snippet7.main(Snippet7.java:331)
- All other example hangs with: (variable parameters)
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x06219976, pid=6000, tid=3086556048
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b05 mixed mode, sharing)
# Problematic frame:
# V [libjvm.so+0x219976]
#
# An error report file with more information is saved as hs_err_pid6000.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Same situation in Windows XP Professional with jdk 1.5.0_10 work perfectly.
I will investigate on Linux/Windows and on jdk 1.5/1.6 ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please open a bug report in the tracker and we will continue the conversation there. Then add a call to PaperClips.setDebug(true) at the beginning of the Snippet7 main method and attach a screen capture of what it's doing. It might also help to know what kind of printer you have as your system default.
Matthew
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm connected to paperclips subversion (Eclipse Europa (3.3), jdk 1.6.0_02, fedora 7, gnome 2.18.3) and download version 265.
Results are:
- Snippet1 works;
- Snippet2 works;
- Snippet3 works;
- Snippet4 works;
- Snippet5 works;
- Snippet6 works;
- ColumnPrintExample works;
- GridPrintCellClippingExample works;
- GridPrintExample works;
- GridPrintVerticalAlignmentExample works;
- PagePrintExample works;
- Snippets7 hangs with:
Exception in thread "main" java.lang.RuntimeException: Unable to layout page 1
at net.sf.paperclips.PaperClips.getPages(PaperClips.java:259)
at net.sf.paperclips.PaperClips.getPages(PaperClips.java:232)
at net.sf.paperclips.ui.PrintPreview.getPages(PrintPreview.java:373)
at net.sf.paperclips.ui.PrintPreview.getPageCount(PrintPreview.java:151)
at net.sf.paperclips.examples.Snippet7$1.run(Snippet7.java:108)
at net.sf.paperclips.examples.Snippet7.main(Snippet7.java:331)
- All other example hangs with: (variable parameters)
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x06219976, pid=6000, tid=3086556048
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b05 mixed mode, sharing)
# Problematic frame:
# V [libjvm.so+0x219976]
#
# An error report file with more information is saved as hs_err_pid6000.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Same situation in Windows XP Professional with jdk 1.5.0_10 work perfectly.
I will investigate on Linux/Windows and on jdk 1.5/1.6 ...
Please open a bug report in the tracker and we will continue the conversation there. Then add a call to PaperClips.setDebug(true) at the beginning of the Snippet7 main method and attach a screen capture of what it's doing. It might also help to know what kind of printer you have as your system default.
Matthew
Also please attach the hs_err_*.log files mentioned in the JVM crash messages.
Create bug: http://sourceforge.net/tracker/index.php?func=detail&aid=1767045&group_id=148509&atid=771872