[GH-ISSUE #111] Wrong Styles in large Sheet file #91

Closed
opened 2026-05-05 11:38:50 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @mileder on GitHub (Jul 19, 2017).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/111

Originally assigned to: @jmcnamara on GitHub.

after creating the large excel sheet (approx. 25.000 lines) the styles are not assigned / available.

In the XML file of sheet styles have negative id's: probably overflow somewhere

Originally created by @mileder on GitHub (Jul 19, 2017). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/111 Originally assigned to: @jmcnamara on GitHub. after creating the large excel sheet (approx. 25.000 lines) the styles are not assigned / available. In the XML file of sheet styles have negative id's: probably overflow somewhere
gitea-mirror 2026-05-05 11:38:50 -06:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@jmcnamara commented on GitHub (Jul 19, 2017):

Hi,

As you say it is probably an overflow issue. However the type should be int32_t so it should take several billion unique formats to overflow.

Do you actually have so many unique formats that the default size would overflow?

The best thing would be to post a small working example that demonstrates the issue.

John.

<!-- gh-comment-id:316330621 --> @jmcnamara commented on GitHub (Jul 19, 2017): Hi, As you say it is probably an overflow issue. However the type should be int32_t so it should take several billion unique formats to overflow. Do you actually have so many unique formats that the default size would overflow? The best thing would be to post a small working example that demonstrates the issue. John.
Author
Owner

@mileder commented on GitHub (Jul 20, 2017):

i send you an email with example file

<!-- gh-comment-id:316672712 --> @mileder commented on GitHub (Jul 20, 2017): i send you an email with example file
Author
Owner

@jmcnamara commented on GitHub (Jul 24, 2017):

In general an output file doesn't tell me much. A sample program that creates the file is usually required to figure out what is wrong.

At a guess I would say that you are using a lxw_format that isn't initialized correctly. All lxw_format instances should be created as follows:

lxw_format *format = workbook_add_format(workbook);

Memcpying the format and modifying it also doesn't work. Check you code for things like that.

Otherwise, reduce your program down to a small program that can reproduce this issue

<!-- gh-comment-id:317375931 --> @jmcnamara commented on GitHub (Jul 24, 2017): In general an output file doesn't tell me much. A sample program that creates the file is usually required to figure out what is wrong. At a guess I would say that you are using a `lxw_format` that isn't initialized correctly. All `lxw_format` instances should be created as follows: ```C lxw_format *format = workbook_add_format(workbook); ``` Memcpying the format and modifying it also doesn't work. Check you code for things like that. Otherwise, reduce your program down to a small program that can reproduce this issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#91
No description provided.