HallBricks

Not able to Convert to callout in LPub

Recommended Posts

Hi! I am creating building instructions for my latest creation and I just imported the LDraw file into Lpub 4. When I right-click on a submodel step and select convert to callout I get a error message that says I have to many open models.

Is there any way to fix this or do I have to go back and remove a lot of submodels and redraw a LOT of work? Thank you in advance!

lpub_error.png

Share this post


Link to post
Share on other sites

I don't think it's about open models. It might be a lpub4 bug concerning generic file handling.

Share this post


Link to post
Share on other sites

I don't think it's about open models. It might be a lpub4 bug concerning generic file handling.

Thank you for replying! Do you hav any idea of how I could fix it? Maybe I should try to reinstall the software?

Share this post


Link to post
Share on other sites

Thank you for replying! Do you hav any idea of how I could fix it? Maybe I should try to reinstall the software?

Not sure (I don't work much with macs) it might be an os (resource) thing or maybe simply because /lpub/tmp is not writable / full.

Share this post


Link to post
Share on other sites

Not sure (I don't work much with macs) it might be an os (resource) thing or maybe simply because /lpub/tmp is not writable / full.

Okay, reinstalling didn't help. I don't know much about these kind of things so I haven't got a clue of what I have to do. It didn't work in LPub 3D on Windows either, I didn't get the error message though, the software just crashed.

Share this post


Link to post
Share on other sites

Okay, reinstalling didn't help. I don't know much about these kind of things so I haven't got a clue of what I have to do. It didn't work in LPub 3D on Windows either, I didn't get the error message though, the software just crashed.

Interesting, I never had this happen in either LPub or LPub3D. Maybe you can send me (in a PM if you don't want it public) the model to see if it crashes here too?

Share this post


Link to post
Share on other sites

Did some looking around and I'm fairly sure it's a resource limitation on the amount of open files. Don't know for sure what the limit is (some say 256 others ~10000) ether way you can change the limit using "ulimit".

It seems LPub is not closing files after loading them causing this problem, so a bug report might be in order also. As LDraw easilly uses up more the 256 files during loading of a model using many different bricks.

Okay, reinstalling didn't help. I don't know much about these kind of things so I haven't got a clue of what I have to do. It didn't work in LPub 3D on Windows either, I didn't get the error message though, the software just crashed.

Second thought: does that model load in LDView because a circular reference might also cause this kind of a problem (infinite number of open files :) )

Edited by roland

Share this post


Link to post
Share on other sites

Did some looking around and I'm fairly sure it's a resource limitation on the amount of open files. Don't know for sure what the limit is (some say 256 others ~10000) ether way you can change the limit using "ulimit".

It seems LPub is not closing files after loading them causing this problem, so a bug report might be in order also. As LDraw easilly uses up more the 256 files during loading of a model using many different bricks.

Second thought: does that model load in LDView because a circular reference might also cause this kind of a problem (infinite number of open files :) )

The model does load in LDview without any problems. The model only contains about 25 submodels so it's way less than 256 open files.

Share this post


Link to post
Share on other sites

It does load fine in LDview. And, I can confirm that (as HallBricks noted) it also completely crashes using LPub3D on my Windows machine without any useful error message. I'll take a closer look at it now.

@Roland. I highly doubt it's really a file amount issue. I've used waaaaay bigger files with LPub without a problem. And besides that. It's a fairly small model. anyway..

Share this post


Link to post
Share on other sites

Hmm, really weird crash. I think there's something wrong with the LDraw meta commands in the file (or actually how LPub parses them), since the file works fine in other editors and viewers. Also note how (in your screenshot), the submodel doesn't have a step number. That's not correct either...

I asked the author of LPub3D on the LDraw forums if he has any idea.

Share this post


Link to post
Share on other sites

Also, the part lists for all steps don't show up as you can see on the screen shot. I am not able to get either part lists or bill of materials.

Share this post


Link to post
Share on other sites

The part list/bill of material problem has nothing to do with the crash. I figured out how to get them back. The crash is still a mystery though...

Share this post


Link to post
Share on other sites

So, I rebuild the first few steps in a new LDraw file and I had zero problems with LPub3D:

test_page_1.png

I still don't know what the problem is though... :sceptic:

Share this post


Link to post
Share on other sites

I should probably try to rebuild the specific submodel that is mentioned in the error message then.

I tried to completely remove submodel 4 from the file without changing anything else and it worked. Now I'll try to rebuild it and hope for a better result.

Share this post


Link to post
Share on other sites

Okay, I rebuilt the specific submodel and it seem to work now. Thank you everyone who tried to help me to solve this problem! :-)

It works in both LPub 4 on the mac and in LPub 3D on the PC now.

Edited by HallBricks

Share this post


Link to post
Share on other sites
I still don't know what the problem is though... :sceptic:

If you have both files you can compare them in something like notepad++. Should spot some difference.

Share this post


Link to post
Share on other sites

Okay, I rebuilt the specific submodel now and it seem to work. Thank you everyone who tried to help me to solve this problem! :-)

It works in both LPub 4 on the mac and in LPub 3D on the PC now.

I guess there must have been something wrong in the mpd file, i.e. a 0 FILE or NOFILE missing. Would you mind PMming me the file? Thanks

Share this post


Link to post
Share on other sites

First of all, thanks for sending me the files.

Interesting behavior...

...and even more interesting after doing some modifications...

In a nutshell: LPUB4 does not like multiple "." (dots) in a filename...

When I remove them from the sub4.1.ldr and sub4.2.ldr I can add the Call-Outs

Now the interesting part: After adding the Call-Out, I can add the "." back into the filenames. It works, it opens in LPUB fine. However adding the next Call-Out crashes it again. Removing the second "." in the sub-files, everything is working again.

Share this post


Link to post
Share on other sites

First of all, thanks for sending me the files.

Interesting behavior...

...and even more interesting after doing some modifications...

In a nutshell: LPUB4 does not like multiple "." (dots) in a filename...

When I remove them from the sub4.1.ldr and sub4.2.ldr I can add the Call-Outs

Now the interesting part: After adding the Call-Out, I can add the "." back into the filenames. It works, it opens in LPUB fine. However adding the next Call-Out crashes it again. Removing the second "." in the sub-files, everything is working again.

So it was that simple then... Very unexpected. Thank you very much for your help, I don't have to redesign the whole submodel next time then :)

Edited by HallBricks

Share this post


Link to post
Share on other sites

So, I rebuild the first few steps in a new LDraw file and I had zero problems with LPub3D:

test_page_1.png

I still don't know what the problem is though... :sceptic:

Hi again! How did you move the part list form the callout to the main part list in step 3?

Edited by HallBricks

Share this post


Link to post
Share on other sites

Right-click on the callout and then 'No parts list per callout'. :classic:

At least, that's what it says in the newest LPub3D 2.0.3. I believe it said something like 'No parts list per step' in older versions.

Share this post


Link to post
Share on other sites

Right-click on the callout and then 'No parts list per callout'. :classic:

At least, that's what it says in the newest LPub3D 2.0.3. I believe it said something like 'No parts list per step' in older versions.

Ok thank you! It said 'No parts list per step'. I missed that earlier :classic:

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.