Jump to content
buzz

"Error printing to PDF" in latest build 20170927 on macOS

Recommended Posts

I'm getting the attached error when trying to print to PDF with build 20170927 on macOS 10.12.6. I have Java 8 Update 144.

 

I do not get this error with build 20170504.

 

This error is triggered regardless of the character I am using — i.e. I can create a brand-new, unmodified character, of various templates, and this error will occur.

 

I can still export characters, however.

 

Here is a fresh trace.log:

HERO Designer 6 log file (build 20170927)
Current system properties:  
     java.runtime.name = Java(TM) SE Runtime Environment
     sun.boot.library.path = /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib
     java.vm.version = 25.144-b01
     gopherProxySet = false
     java.vm.vendor = Oracle Corporation
     java.vendor.url = http://java.oracle.com/
     path.separator = :
     java.vm.name = Java HotSpot(TM) 64-Bit Server VM
     file.encoding.pkg = sun.io
     user.country = US
     sun.java.launcher = SUN_STANDARD
     sun.os.patch.level = unknown
     java.vm.specification.name = Java Virtual Machine Specification
     user.dir = /Applications/HERODesigner
     java.runtime.version = 1.8.0_144-b01
     java.awt.graphicsenv = sun.awt.CGraphicsEnvironment
     java.endorsed.dirs = /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/endorsed
     os.arch = x86_64
     java.io.tmpdir = /var/folders/g8/r3bg32yn2hgfrrls7cmt45vh0000gp/T/
     line.separator = 

     java.vm.specification.vendor = Oracle Corporation
     os.name = Mac OS X
     sun.jnu.encoding = UTF-8
     java.library.path = /Users/markdelsing/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
     sun.awt.enableExtraMouseButtons = true
     java.specification.name = Java Platform API Specification
     java.class.version = 52.0
     sun.management.compiler = HotSpot 64-Bit Tiered Compilers
     os.version = 10.12.6
     user.home = /Users/markdelsing
     user.timezone = 
     java.awt.printerjob = sun.lwawt.macosx.CPrinterJob
     file.encoding = UTF-8
     java.specification.version = 1.8
     java.class.path = /Applications/HERODesigner/HD6.jar
     user.name = markdelsing
     java.vm.specification.version = 1.8
     sun.java.command = /Applications/HERODesigner/HD6.jar
     java.home = /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
     sun.arch.data.model = 64
     user.language = en
     java.specification.vendor = Oracle Corporation
     awt.toolkit = sun.lwawt.macosx.LWCToolkit
     java.vm.info = mixed mode
     swing.defaultlaf = com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
     java.version = 1.8.0_144
     java.ext.dirs = /Users/markdelsing/Library/Java/Extensions:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/ext:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
     sun.boot.class.path = /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/resources.jar:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/rt.jar:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/sunrsasign.jar:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jsse.jar:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jce.jar:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/charsets.jar:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jfr.jar:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/classes
     java.vendor = Oracle Corporation
     file.separator = /
     java.vendor.url.bug = http://bugreport.sun.com/bugreport/
     sun.font.fontmanager = sun.font.CFontManager
     sun.io.unicode.encoding = UnicodeBig
     sun.cpu.endian = little
     sun.cpu.isalist = 
Loading new character/prefab:  Fri, Oct 13 @2:28:52 PM (-0500) build 20170927 Memory Usage (0 characters, 0 prefabs): 245.50MB (total), 225.82MB (free) = 19.68MB (used)
Set Template:  Fri, Oct 13 @2:28:52 PM (-0500) build 20170927 Memory Usage (0 characters, 0 prefabs): 245.50MB (total), 225.82MB (free) = 19.68MB (used)
Loading new character/prefab:  Fri, Oct 13 @2:28:59 PM (-0500) build 20170927 Memory Usage (1 characters, 0 prefabs): 288.00MB (total), 250.23MB (free) = 37.77MB (used)
Changed Characters:  Fri, Oct 13 @2:28:59 PM (-0500) build 20170927 Memory Usage (1 characters, 0 prefabs): 288.00MB (total), 247.38MB (free) = 40.62MB (used)
New Character:  Fri, Oct 13 @2:28:59 PM (-0500) build 20170927 Memory Usage (1 characters, 0 prefabs): 288.00MB (total), 244.18MB (free) = 43.82MB (used)
/lib/sixthedition.rb:51:in `characteristic_block': private method `gsub' called for nil:NilClass (NoMethodError)
	from /lib/sixthedition.rb:48:in `each'
	from /lib/sixthedition.rb:48:in `characteristic_block'
	from /lib/template_overlay.rb:127:in `first_page_blocks'
	from /lib/template_overlay.rb:117:in `generate'
	from lib/pdf_o_matic.rb:26:in `characterSixth'
	from :1
	...internal jruby stack elided...
	from CharacterSheetSixth.characteristic_block(/lib/sixthedition.rb:48)
	from Array.each(/lib/sixthedition.rb:48)
	from CharacterSheetSixth.characteristic_block(/lib/template_overlay.rb:127)
	from TemplateOverlay.first_page_blocks(/lib/template_overlay.rb:117)
	from TemplateOverlay.generate(lib/pdf_o_matic.rb:26)
	from JavaImplementation.characterSixth(:1)
	from (unknown).(unknown)(:1)
Close Character:  Fri, Oct 13 @2:29:15 PM (-0500) build 20170927 Memory Usage (0 characters, 0 prefabs): 288.00MB (total), 199.45MB (free) = 88.55MB (used)
Changed Characters:  Fri, Oct 13 @2:29:15 PM (-0500) build 20170927 Memory Usage (0 characters, 0 prefabs): 288.00MB (total), 199.45MB (free) = 88.55MB (used)

post-21-0-44661900-1507922562_thumb.png

Share this post


Link to post
Share on other sites

Most likely cause: using a template that lacks one of the standard Characteristics.

 

Second most likely cause: running from a directory that you don't have full read/write access to.

Share this post


Link to post
Share on other sites

"Print to PDF..." in Current File uses its own template, no? The default 6e PDF one?

 

This seems to be the line in the trace that's showing the error:

/lib/sixthedition.rb:51:in `characteristic_block': private method `gsub' called for nil:NilClass (NoMethodError)

That /lib/sixthedition.rb is in the JAR package, I assume?

 

I've also run both build 20170927 and 20170504 from the same directory, and 20170504 does not give me the error.

Share this post


Link to post
Share on other sites

I've double-checked permissions and am not seeing any issues. I've run both builds from the same directory, and the previous build works, while the current build gives me the error.

Share this post


Link to post
Share on other sites

Took a bit to track down -- the PDF generator has a bit of an issue with the UTF-16 character encoding that HD switched over to.  I've got a new update posted which should fix the problem (and keep the UTF-16 encoding for save files).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×