leetcode-cli icon indicating copy to clipboard operation
leetcode-cli copied to clipboard

Memory allocation error

Open seraphlive opened this issue 3 years ago • 5 comments

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.

seraphlive avatar Feb 07 '22 09:02 seraphlive

which OS ru running on? @seraphlive

clearloop avatar Feb 08 '22 08:02 clearloop

MacOS 12.2 on Apple M1

seraphlive avatar Feb 10 '22 03:02 seraphlive

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

jay1999ke avatar Mar 13 '22 08:03 jay1999ke

You can re-product using the newest version?

wendajiang avatar Mar 07 '23 02:03 wendajiang

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

jay1999ke avatar Mar 07 '23 04:03 jay1999ke