msx80

[Software] Blueprint, a building instruction generator for LDD

Recommended Posts

I come across the following error while (re)generating the steps:

java.lang.ArithmeticException: / by zero

The file can be found here: https://drive.google.com/file/d/1u9IFU_WF5cm1N70ZosfwRJwMWWremnon/view?usp=sharing

Total mem after new page: 207749120
Rendering assembly x1
Total mem after new page: 207749120
Rendering assembly x3
Total mem after new page: 207749120
Rendering assembly x6
Rendering assembly x3
Total mem after new page: 207749120
Rendering assembly x3
Total mem after new page: 207749120
Rendering assembly x11
Rendering assembly x3
Rendering assembly x15
Rendering assembly x16
Rendering assembly x18
Rendering assembly x22
Total mem after new page: 207749120
Rendering assembly x22
Rendering assembly x23
Rendering assembly x25
Rendering assembly x27
Total mem after new page: 207749120
Rendering assembly x3
Rendering assembly x5
Rendering assembly x7
Rendering assembly x8
Rendering assembly x10
Rendering assembly x11
Rendering assembly x15
Total mem after new page: 207749120
Rendering assembly x42
Rendering assembly x15
Total mem after new page: 207749120
Rendering assembly x3
Rendering assembly x8
Rendering assembly x10
Total mem after new page: 207749120
Rendering assembly x52
Rendering assembly x10
Total mem after new page: 207749120
Rendering assembly x3
Total mem after new page: 207749120
Rendering assembly x59
Rendering assembly x3
Rendering assembly x61
Rendering assembly x63
Total mem after new page: 207749120
Rendering assembly x7
Total mem after new page: 207749120
Rendering assembly x74
Rendering assembly x7
Rendering assembly x76
Rendering assembly x80
Rendering assembly x82
Rendering assembly x86
Total mem after new page: 207749120
Rendering assembly x86
Rendering assembly x88
Rendering assembly x94
Rendering assembly x96
Rendering assembly x97
Total mem after new page: 207749120
Rendering assembly x97
Rendering assembly x99
Total mem after new page: 207749120
Rendering assembly x5
Rendering assembly x7
Rendering assembly x10
Total mem after new page: 207749120
Rendering assembly x109
Rendering assembly x10
Total mem after new page: 207749120
Rendering assembly x4
Rendering assembly x6
Total mem after new page: 207749120
Rendering assembly x115
Rendering assembly x6
java.lang.ArithmeticException: / by zero
        at blueprint.b.a.e.l(Unknown Source)
        at blueprint.scene.bi.StepBox.a(Unknown Source)
        at blueprint.a.d.a(Unknown Source)
        at blueprint.a.c.a(Unknown Source)
        at blueprint.a.c.b(Unknown Source)
        at blueprint.a.c.a(Unknown Source)
        at blueprint.Blueprint.a(Unknown Source)
        at blueprint.a.h(Unknown Source)
        at blueprint.a.a.t.a(Unknown Source)
        at blueprint.a.a.a(Unknown Source)
        at blueprint.Blueprint.doReflowButton(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.Trampoline.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
        at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1769)
        at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1657)
        at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
        at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
        at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
        at javafx.event.Event.fireEvent(Event.java:198)
        at javafx.scene.Node.fireEvent(Node.java:8413)
        at javafx.scene.control.Button.fire(Button.java:185)
        at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
        at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
        at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
        at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
        at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
        at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
        at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
        at javafx.event.Event.fireEvent(Event.java:198)
        at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
        at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
        at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
        at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:394)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$353(GlassViewEventHandler.java:432)
        at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:431)
        at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
        at com.sun.glass.ui.View.notifyMouse(View.java:937)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
        at java.lang.Thread.run(Unknown Source)

 

 

 

Share this post


Link to post
Share on other sites

Hi there,

I was excited to find and download this program, since I too find LDD to be a great building tool with poor instructions formatting. However, I am experiencing some difficulty with your program. I believe I installed it properly and can open the program. When I open Blueprint, the only options available under "File" are "Import LXF" and "Open Design." When I attempt to import a design, both the "Step Design" and "Page Layout" tabs become highlighted indicated a file was read, but nothing shows up on either screen-I can't see the model. 

Under "File," I am then able to merge with another model, at which point both the file I originally tried to load AND the new merged file both appear under the "Step Design" tab. I have no difficulty rearranging parts in this section, but I am still not able to view anything under the "Page Layout" tab, and none of the page options change the blank screen.

Do you have any suggestions on what I should do to solve this? Any help is appreciated! And also, thanks for writing this program-I'm very excited to try it out!

Share this post


Link to post
Share on other sites
On 2/23/2018 at 4:19 PM, supertruper1988 said:

If you would like to verfiy it as a bug, you can PM me about the file and I will see if I can get it to work on my computer. I also do not have frequent crashes both on my PC or Mac.

Done that. I'm running Linux, btw.

Edited by mfeldt

Share this post


Link to post
Share on other sites

Hey all, I'm having some issues with heap memory running out.. I'm running windows 10 on an i7 with 16gb ram and it keeps siezing on me.. I'm building individual sections to a large building,  each file with between 1500 and 2300 pieces. Any specific issues with piece count I should know about? Or can I increase my heap memory somehow? 

Thanks in advance, this is kicking my butt!! But dudes.. Ace bit of software!  Let me know if you need specific lines of code. Don't have internet on the work comp, just phone and home. 

Share this post


Link to post
Share on other sites

Hi Ben, do you specify the ram size that java can use?

In my blueprint.bat I have 

java  -Xmx2048m %java_option% -cp "%bluepath%bin/blueprint.jar" -Djava.library.path=%bluepath%native blueprint.Blueprint

not related, but java_option=-showversion

EDIT: I got this from URL:https://www.eurobricks.com/forum/index.php?/forums/topic/108346-software-blueprint-a-building-instruction-generator-for-ldd/&page=14

Edited by Bert_zelf

Share this post


Link to post
Share on other sites
14 hours ago, Bert_zelf said:

Hi Ben, do you specify the ram size that java can use?

In my blueprint.bat I have 


java  -Xmx2048m %java_option% -cp "%bluepath%bin/blueprint.jar" -Djava.library.path=%bluepath%native blueprint.Blueprint

not related, but java_option=-showversion

EDIT: I got this from URL:https://www.eurobricks.com/forum/index.php?/forums/topic/108346-software-blueprint-a-building-instruction-generator-for-ldd/&page=14

Thanks heaps!! It didn't work,  but was a step to trying! It came up with this after I added it:

Error occurred during initialization of VM

Could not reserve enough space for 2097152KB object heap

Press any key to continue . . . 

I'm a little perplexed really... 

I haven't modified the bat file before or played with any code, just been using the software flat chat. New to this side of things.. Sorry if I'm treading on old wounds by asking such noob questions! 

Share this post


Link to post
Share on other sites

What’s your total memory?  Do you have other applications running?

(2097152KiB = 2048MiB = 2GiB)

Share this post


Link to post
Share on other sites
12 minutes ago, SylvainLS said:

What’s your total memory?  Do you have other applications running?

(2097152KiB = 2048MiB = 2GiB)

I have 16gb ram... But if I increase it further, will it make any difference to the heap memory? 

No other apps running.. 

Share this post


Link to post
Share on other sites

“-Xmx2048m” is the option that tells Java to use 2GB of memory for its heap.  Here, it fails.

There could be several reasons why it fails.  The first one being that you don’t have enough memory.  With 16GB and no other application running, I think we can eliminate this case.

The next possibility is that your Java is 32bits, not 64bits.  So: Is your OS 64bits?  Is your Java 64bits?

Note that if you have both 64bits and 32bits Java installed, you can force the use of the 64bits with another option: “-d64”.

Share this post


Link to post
Share on other sites
12 hours ago, SylvainLS said:

“-Xmx2048m” is the option that tells Java to use 2GB of memory for its heap.  Here, it fails.

There could be several reasons why it fails.  The first one being that you don’t have enough memory.  With 16GB and no other application running, I think we can eliminate this case.

The next possibility is that your Java is 32bits, not 64bits.  So: Is your OS 64bits?  Is your Java 64bits?

Note that if you have both 64bits and 32bits Java installed, you can force the use of the 64bits with another option: “-d64”.

Ahh,  thank you.. I'll look into that now.. 

Edited by Ben Andrews

Share this post


Link to post
Share on other sites
13 hours ago, SylvainLS said:

“-Xmx2048m” is the option that tells Java to use 2GB of memory for its heap.  Here, it fails.

There could be several reasons why it fails.  The first one being that you don’t have enough memory.  With 16GB and no other application running, I think we can eliminate this case.

The next possibility is that your Java is 32bits, not 64bits.  So: Is your OS 64bits?  Is your Java 64bits?

Note that if you have both 64bits and 32bits Java installed, you can force the use of the 64bits with another option: “-d64”.

OK, so I've installed the 64 bit Java so now system and program are both 64bit. 

Where do I insert the -d64?

Share this post


Link to post
Share on other sites
9 hours ago, Ben Andrews said:

Where do I insert the -d64?

Anywhere on the “java …” line, e.g. right next the -Xmx option (don’t forget to leave spaces around it).

Share this post


Link to post
Share on other sites
20 hours ago, SylvainLS said:

Anywhere on the “java …” line, e.g. right next the -Xmx option (don’t forget to leave spaces around it).

Thanks heaps for helping this poor noob!! ? it's been a team effort and I have learnt a ton,  this worked like a charm and everything is up and running. 

Thanks heaps everyone for keeping independent designers alive! 

Share this post


Link to post
Share on other sites

Request functionality:

  • Import file via Drag & Drop on application window
  • Design number for each element on Part List Page
  • Can arrange vertically or horizontally Part List Page
  • Named Colors in 'Select a color' dialog
  • Progress Bar or information 'Please wait. . .' nice to have
  • et cetera
Edited by Jarema

Share this post


Link to post
Share on other sites

Hi all,  since last time I've made incredible progress and it's thanks to this community, particularly SylvainLS, Bert_zelf and msx80. 

I have another quandary for this incredible brains trust. 

The unit I'm working on is finished at the parts configuration stage, but then when I went into the page layout, it seems already set but without snap to grid.  So I tried to reset it with the snap to grid selected and after a regenerate page,  nothing had changed. Then I noticed it was not showing page 14 but 13 twice. So I tried a test render to see if it would proceed. It got to page 13 and stopped the render process. I then went back into parts configuration, step 14, copied the pieces, placed them Onto a new step and deleted the old page 14. When I went back into page layout it was doing the same thing and not showing any of the steps past 13.. I'm absolutely miffed. And a touch frustrated!

Share this post


Link to post
Share on other sites

Hang on a second, I feel like someone mentioned something in here about ghost layers causing a conflict? Just gonna give that a shot. 

Share this post


Link to post
Share on other sites

I'm trying to make instructions for a modular MOC, and I have successfully completed a bunch of modular instructions, but now the program just seems not to work anymore. I have a 2158 part model (first floor of the modular), and I have completed half of the instructions, but now I can't move parts and bricks are starting to disappear. I tried to increase heap space (as it's a memeory issue as you can see) but it hasn't worked. I have an Intel Core i7 with a 12 GB RAM. Please help me...

This is the error occurring

Quote

Exception in thread "JavaFX Application Thread" java.lang.OutOfMemoryError: Java heap space

at java.nio.HeapByteBuffer.<init>(Unknown Source)

at java.nio.ByteBuffer.allocate(Unknown Source)

at com.sun.javafx.tk.quantum.QuantumToolkit.createPlatformImage(QuantumToolkit.java:1350)

at javafx.scene.image.Image.<init>(Image.java:744)

at javafx.scene.image.WritableImage.<init>(WritableImage.java:75)

at blueprint.opengl.a.a.b(Unknown Source)

at blueprint.opengl.d.a(Unknown Source)

at blueprint.opengl.d.b(Unknown Source)

at blueprint.opengl.d.b(Unknown Source)

at blueprint.opengl.d.a(Unknown Source)

at blueprint.b.b.a.b.d.a(Unknown Source)

at blueprint.c.f.recalculateImage(Unknown Source)

at blueprint.c.a.invalidateAllAssemblyImage(Unknown Source)

at blueprint.c.a.doInvalidateBetween(Unknown Source)

at blueprint.c.a.invalidateBetween(Unknown Source)

at blueprint.a.a.n.a(Unknown Source)

at blueprint.a.a.n.a(Unknown Source)

at blueprint.a.a.a(Unknown Source)

at blueprint.c.f.moveParts(Unknown Source)

at blueprint.c.d.a(Unknown Source)

at blueprint.c.d$$Lambda$408/26076541.handle(Unknown Source)

at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)

at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)

at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)

at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)

at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)

at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)

at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)

at javafx.event.Event.fireEvent(Event.java:198)

at javafx.scene.control.MenuItem.fire(MenuItem.java:462)

at com.sun.javafx.scene.control.skin.ContextMenuContent$MenuItemContainer.doSelect(ContextMenuContent.java:1405)

at com.sun.javafx.scene.control.skin.ContextMenuContent$MenuItemContainer.lambda$createChildren$343(ContextMenuContent.java:1358)

 

 

Share this post


Link to post
Share on other sites

@Giacinto: based on the error message it runs out of memory. Note that Java memory is by default less than your system memory. See the posts from SylvainLS above on how to fix this (-Xmx2048m, 64-bit Java, -d64).

Share this post


Link to post
Share on other sites

I have followed what he said, but nothing has changed. I even inserted "12288m" as maximum heap space, which is my RAM, but uselessly.

 

Immagine.png

I read that the .bat file can be edited so as to solve this problem...but where can I find that file? I thought it was the "batch" file, but I couldn't find the right row to edit...

 

Edited by Giacinto Consiglio

Share this post


Link to post
Share on other sites

0) Make sure you have Java 64 bits installed

1)I re-installed Blueprint

2)I opened the .batch file using notepad

3)I inserted -Xmx2048m in the row

4)I saved and closed

5) I opened Blueprint

6) Everything worked fine!

Share this post


Link to post
Share on other sites

i have there a more silly question, how can i open the "blueprint.bat" file open in notepad

i don't have the option after right click "open with...." like i have with other file extensions

and when you say, "reinstall" i don't install it, its just a folder, where i open the blueprint.bat file

do i have the wrong software???

i also should mention, that i'm not too familiar with that, so a detailed explanation would be really appreciated

thank you 

 

Share this post


Link to post
Share on other sites

Try:

  • "modify" or something similar instead than "open with", if available.
  • Open the notepad and then drag and drop the icon of the batch file over it.

Share this post


Link to post
Share on other sites
1 hour ago, Calabar said:

Try:

  • "modify" or something similar instead than "open with", if available.
  • Open the notepad and then drag and drop the icon of the batch file over it.

thank you for your explanation

i was confused, because there are only three lines in the "notepad" once opening the bat file

i'm finally able to open my over 8000 pieces creation, the only thing, i don't see the steps, but i can generate the instruction and modify the layout. which doesn't help :wacko:

well, have to do floor by floor

thankfully, only three

 

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

  • Recently Browsing   0 members

    No registered users viewing this page.