evernote2md icon indicating copy to clipboard operation
evernote2md copied to clipboard

Crash with "killed" statement

Open wsargent opened this issue 2 years ago • 2 comments

Problem statement

The application is very slow and crashes around this line:

2023/07/07 22:35:06 [DEBUG] Saving file inbasket/Fwd-[Crypto-ops]_Recommendations_for_TLS_between_haproxy_and_nginx?.md
[1]    186716 killed     $HOME/bin/evernote2md --debug 'AAA - Inbasket.enex' inbasket

How do I build this? I have IntelliJ IDEA and assuming I can add log statements I can track this down a bit.

The file's about 1.6 GB.

wsargent avatar Jul 08 '23 05:07 wsargent

I think the problem is that the size is such that it runs into an OS or program limit:

	log.Printf("[DEBUG] Saving file %s/%s", path, title)
	if err := file.Save(path, title, bytes.NewReader(md.Content)); err != nil {
		return fmt.Errorf("save file %s: %w", path+"/"+title, err)
	}

wsargent avatar Jul 08 '23 05:07 wsargent

Hey @wsargent , you can definitely try to build the app yourself and narrow down the problem. To build it you will need to install go toolchain and run go build in the project root.

As a workaround, I would suggest trying one of the older version, v0.18.2 for example. The decoding logic was changed in the latest release and there could be regressions in term of performance and memory management.

wormi4ok avatar Jul 10 '23 15:07 wormi4ok