clearloop / leetcode-cli

May the code be with you 👻
MIT License
315 stars 51 forks source link

Memory allocation error #58

Open seraphlive opened 2 years ago

seraphlive commented 2 years ago

Hi,

When I execute command "leetcode stat", only the chart of easy problems is drawn. Then there is a memory allocation error:

memory allocation of 18446744073709551615 bytes failed [1] 13318 IOT instruction (core dumped) leetcode stat (The number before "IOT" is different each time)

image

I just manually set the programming language to cpp and input the cookie from leetcode website in the toml config file. Other than that everything shoud be default. I've tried adding RUST_BACKTRACE=1 or -d but there is no additional error message. The program was newly built with stable rust 1.58.1.

I'm not very familiar with rust. Please let me know if I can do anything else to help debug. Thanks.

clearloop commented 2 years ago

which OS ru running on? @seraphlive

seraphlive commented 2 years ago

MacOS 12.2 on Apple M1

jay1999ke commented 2 years ago

I'm facing the same issue. Surprisingly, leetcode stat is requesting the same amount bytes as OP.

image

OS details:

Description:    Ubuntu 18.04.5 LTS
Release:    18.04
Codename:   bionic
wendajiang commented 1 year ago

You can re-product using the newest version?

jay1999ke commented 1 year ago

I think this was fixed a while ago -- haven't tried it with the latest version.