mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #233] worksheet_insert_image_buffer_opt called > 10000 times causes lib crash #188
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#188
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @myseemylife on GitHub (Jun 11, 2019).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/233
Originally assigned to: @jmcnamara on GitHub.
i need write image buffers into xlsx files,then i found worksheet_insert_image_buffer_opt api fit my needs,but when test it with a collection of data(probaly 20000+),it crashed sometimes。so i debug it.
the code is
The retured iamge_stream is NULL.,so
But i dont't know why?need help
@jmcnamara commented on GitHub (Jun 11, 2019):
Thanks for the report. I'll debug it.
What OS and compiler are you using?
Also, could you try compile with
make USE_STANDARD_TMPFILE=1or with that flag set in the code and see if you get the same error.@jmcnamara commented on GitHub (Jun 11, 2019):
For what it is worth I ran the following program that creates 21,000 buffered images without a crash on Fedora.
@jmcnamara commented on GitHub (Jun 12, 2019):
I've pushed a fix that catches the tmpfile error and will prevent the crash. Note, I haven't been able to reproduce this on Linux or macOS with much larger amounts of images.
@myseemylife commented on GitHub (Jun 12, 2019):
thx for your reply~~well,i use libxlsxwriter on windows 10 64bit, vc2015.
i compile it with latest zip lib. i also found another problem. the xlsx file not created after workbook_close() called. it happend somtimes.only when you try writing a huge data into xlsx file.
@jmcnamara commented on GitHub (Jun 12, 2019):
I tested with the above program, xlsxwriter 0.8.6 and MSVC 2015. The program ran and produced output without any issue. Can you test the sample program above.
@jmcnamara commented on GitHub (Jun 12, 2019):
You need to open anotherGitHub issue for another issue. When you do please add:
@myseemylife commented on GitHub (Jun 13, 2019):
this issue has been fixed already
so i close it