trevorsandy / lpub3d

An LDraw™ editor for LEGO® style digital building instructions.
https://trevorsandy.github.io/lpub3d/
133 stars 19 forks source link

Getting "Could not write to Native CSI image file" errors #611

Closed billward closed 1 year ago

billward commented 1 year ago

Subject

Inconsistently when I attempt to load my file into LPub3D I am getting this error "Could not write to Native CSI image file" with "Reason: image is empty" image

Environment

Configuration

[Note: Provide details and content below as needed with appropriate redactions. To produce the Windows registry extract for an installed distribution, go to the command console and enter the command line shown. The extract file will be placed on your desktop.]

Logs

Screenshots

Steps to reproduce

Tell me how to reproduce this issue. Provide a sample mpd/ldr file that reproduces the problem. papel-picado-basic.mpd.txt

Expected behaviour

I can't generate any instructions file. This is on a fresh install using the LDraw all-in-one installer. I have had no problem running LPub3D on my previous PC but I haven't been able to get it to work on this one.

Actual behaviour

Lots of pop-up error message windows such as these: image image Sometimes it is able to render the first page or two before this happens.

Workaround

None

Solution suggestion

Fix file permissions? I thought maybe it was because I'm running it in Dropbox, or because I have spaces in the filenames/path, but I ruled those out by copying the file to my Desktop folder and got the same errors.

trevorsandy commented 1 year ago

Thank you for reporting this behaviour. I'll take a look.

Cheers,

trevorsandy commented 1 year ago

I could not reproduce the reported behaviour with the latest release of LPub3D (v2.4.5)

For me, the entire example model file processed as expected without errors.

Screenshot - 26_11_2022 , 06_06_14

I've also attached the working files bundle for your review.

Note: Although LPub3D should (and did) treat the special characters (dash '-', comma ',', plus '+') in your model file, it is generally not a good idea to include these characters. 3rd party renderers may not support these characters in part/submodel names etc.. It would be better to replace these characters with an underscore '_'.

There have been many improvements to the latest release of LPub3D.

If you continue to experience this behaviour on the latest release of LPub3D, do not hesitate to reopen this ticket.

Cheers,

RenderErrors611.zip

billward commented 1 year ago

I haven't had a chance to try it yet and will let you know

Sent from my phone (sorry if my reply is brief, ask me again when I'm at a real keyboard)

On Sun, Nov 27, 2022, 10:15 Trevor SANDY @.***> wrote:

Closed #611 https://github.com/trevorsandy/lpub3d/issues/611 as completed.

— Reply to this email directly, view it on GitHub https://github.com/trevorsandy/lpub3d/issues/611#event-7897969043, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTIZBG2TBKZPUT5SNT5UDWKOQKLANCNFSM6AAAAAARMR6234 . You are receiving this because you authored the thread.Message ID: @.***>

billward commented 1 year ago

Installed the newest version and it seems to render those files just fine!

On Sun, Nov 27, 2022 at 11:21 AM Bill Ward @.***> wrote:

I haven't had a chance to try it yet and will let you know

Sent from my phone (sorry if my reply is brief, ask me again when I'm at a real keyboard)

On Sun, Nov 27, 2022, 10:15 Trevor SANDY @.***> wrote:

Closed #611 https://github.com/trevorsandy/lpub3d/issues/611 as completed.

— Reply to this email directly, view it on GitHub https://github.com/trevorsandy/lpub3d/issues/611#event-7897969043, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTIZBG2TBKZPUT5SNT5UDWKOQKLANCNFSM6AAAAAARMR6234 . You are receiving this because you authored the thread.Message ID: @.***>

-- Check out my LEGO blog at brickpile.com http://www.brickpile.com/ and travel photos at roamingbill.com Follow/friend me: Facebook http://facebook.com/billward • Flickr http://flickr.com/photos/billward/ • Twitter http://twitter.com/williamward • LinkedIn http://www.linkedin.com/pub/william-ward/63/393/985/ • Goodreads https://www.goodreads.com/user/show/2554312-bill-ward • Instagram https://www.instagram.com/roamingbill/

trevorsandy commented 1 year ago

Excellent.

I found a few more niggling edge cases that are failing in the latest release so I'll be releasing another update shortly.

If you encounter any more unexpected behaviour, do not hesitate to open a ticket.

Cheers,

billward commented 1 year ago

I have some questions about how to handle unofficial parts ... I imported an unofficial part into an MPD file and it works find in MLCAD but LPUB3D doesn't seem to like it. Is there any doc showing how that should be done?

On Sun, Nov 27, 2022 at 10:42 PM Trevor SANDY @.***> wrote:

Excellent.

I found a few more niggling edge cases that are failing in the latest release so I'll be releasing another update shortly.

If you encounter any more unexpected behaviour, do not hesitate to open a ticket.

Cheers,

— Reply to this email directly, view it on GitHub https://github.com/trevorsandy/lpub3d/issues/611#issuecomment-1328613223, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTIZGLW3XFWBOTPIHDYITWKRH4FANCNFSM6AAAAAARMR6234 . You are receiving this because you authored the thread.Message ID: @.***>

-- Check out my LEGO blog at brickpile.com http://www.brickpile.com/ and travel photos at roamingbill.com Follow/friend me: Facebook http://facebook.com/billward • Flickr http://flickr.com/photos/billward/ • Twitter http://twitter.com/williamward • LinkedIn http://www.linkedin.com/pub/william-ward/63/393/985/ • Goodreads https://www.goodreads.com/user/show/2554312-bill-ward • Instagram https://www.instagram.com/roamingbill/

trevorsandy commented 1 year ago

Are you saying you have inlined the unofficial part ? In this case the unofficial part should load accordingly - can you send the LPub3D log for the file load where you are experiencing abnormal behaviour ?

Or is the unoff part a separate file referenced by a line in the multi-part document ? - see #446

Both scenarios are supported by LPub3D; however, if you are experiencing unexpected behaviour, could you provide a sample model file (bundled with an example custom part if separate) that produces the unexpected behaviour along with the LPub3D log file ?

Cheers,

billward commented 1 year ago

Here's the MPD file, it has the unofficial files included in it as parts. Bill

On Sun, Nov 27, 2022 at 11:50 PM Trevor SANDY @.***> wrote:

Are you saying you have inlined the unofficial part ? In this case the unofficial part should load accordingly - can you send the LPub3D log for the file load where you are experiencing abnormal behaviour ?

Or is the unoff part a separate file referenced by a line in the multi-part document ? - see #446 https://github.com/trevorsandy/lpub3d/issues/446

Both scenarios are supported by LPub3D; however, if you are experiencing unexpected behaviour, could provide a sample model file (bundled with an example custom part if separate) that produces the unexpected behaviour along with the LPub3D log file ?

Cheers,

— Reply to this email directly, view it on GitHub https://github.com/trevorsandy/lpub3d/issues/611#issuecomment-1328669573, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTIZHLT6KKGX5PVBEICO3WKRP25ANCNFSM6AAAAAARMR6234 . You are receiving this because you authored the thread.Message ID: @.***>

-- Check out my LEGO blog at brickpile.com http://www.brickpile.com/ and travel photos at roamingbill.com Follow/friend me: Facebook http://facebook.com/billward • Flickr http://flickr.com/photos/billward/ • Twitter http://twitter.com/williamward • LinkedIn http://www.linkedin.com/pub/william-ward/63/393/985/ • Goodreads https://www.goodreads.com/user/show/2554312-bill-ward • Instagram https://www.instagram.com/roamingbill/

trevorsandy commented 1 year ago

Here's the MPD file, it has the unofficial files included in it as parts.

Nothing was attached. Try using GitHub directly versus from a third-party app.

Cheers,

billward commented 1 year ago

Filed new issue - https://github.com/trevorsandy/lpub3d/issues/626