Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thread 'main' has overflowed its stack #1

Open
stan4cb opened this issue Mar 26, 2018 · 4 comments
Open

thread 'main' has overflowed its stack #1

stan4cb opened this issue Mar 26, 2018 · 4 comments

Comments

@stan4cb
Copy link

stan4cb commented Mar 26, 2018

Just running example code results in stackoverflow:
Compiled with rustc 1.25.0-nightly (8ccab7eed 2018-01-31)

    let mut book = Book::new();
    let mut sheet = Sheet::new("TEST");

    sheet.add_cell(Cell::str("a"), 0, 0);
    sheet.add_cell(Cell::str("b"), 0, 1);
    sheet.add_cell(Cell::float(1.0), 1, 0);
    sheet.add_cell(Cell::float(2.0), 1, 1);
    sheet.add_cell(Cell::date_with_style("2017-12-02T13:30:00", Style::new("YYYY/MM/DD\\ HH:MM:SS")), 2, 1);

    book.add_sheet(sheet);
    
    xlsx::write(&book, Path::new("test.xlsx")).expect("crash");

Runnning as test passes the test but the output is still unreadable.

Files:
test-results.zip

@aoyagikouhei
Copy link
Owner

I tried it with 1.25.1 and 1.26.0-nightly. Both were successful in MacOS 10.13.3.
What is your environment? Please try also on the stable version.

@stan4cb
Copy link
Author

stan4cb commented Mar 27, 2018

I'm using windows 10, and running with stable changed nothing. Do i need any library installed or something like that?
I'll try with updated stable.
update:
still no luck

@aoyagikouhei
Copy link
Owner

I think that there is nothing special need for a library etc.
It takes time for me to prepare Windows environment.
Please wait a while until I confirm the issue.

@aoyagikouhei
Copy link
Owner

I tried it in Windows 10 environment and the same issue occurred.
When I debugged, I found that the cause is in the zip library.
I investigated github's issue in Rust's zip library and found a similar point.

zip-rs/zip-old#57

I built it in release mode and it ran. However, it can not open the file because Windows's path serarator is incorrect in making zip file.

I'll fix it in a moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants