A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jrblevin/markdown-mode/issues/319 below:

Crash on the chinese Win10 with multimarkdown-6 · Issue #319 · jrblevin/markdown-mode · GitHub

When 'export', 'preview' a md file with markdown-mode with multimarkdown-6, it will consume all the memory then crash the OS (Windows)!

But running the multimarkdown command directly with the same file works fine.

Expected Behavior

At least it should not crash the OS.

Actual Behavior

The multimarkdown process consumes all the memory (16G) and crashes the OS (Win7, Win10).

Steps to Reproduce
  1. Running on Chinese Win7 or Win10
  2. Installed multimarkdown-6 (6.3.0)
  3. Load markdown-mode with following configurations
    (require 'markdown-mode)
    (setq markdown-command "multimarkdown") ;
    (autoload 'gfm-mode "markdown-mode"
       "Major mode for editing GitHub Flavored Markdown files" t)
    (setq markdown-fontify-code-blocks-natively nil)
    (setq markdown-xhtml-header-content "about 300K JS/CSS content")
  4. Open any md doc (UTF-8 encoded)
  5. Do 'export' or 'preview'
  6. Then Cpu starts flying~~ (win7 will halt without any chance, while win10 will allow some while to kill the process)
Backtrace

No backtrace could not be found since the OS crashed.

Software Versions Temporary Solution
  1. .emacs, setting encoding for multimarkdown process
    (when (eq system-type 'windows-nt)
      (set-default 'process-coding-system-alist
        '(
          ("[pP][lL][iI][nN][kK]" gbk )
          ("[mM][uU][lL][tT][iI][mM][aA][rR][kK][dD][oO][wW][nN]" utf-8 )
          ("[cC][mM][dD][pP][rR][oO][xX][yY]" gbk . gbk)
          )))
  2. markdown-mode.el, change to call the multimarkdown.exe directly.
    Find the line (call-process-region, then change to
    (if (eq system-type 'windows-nt)
      (call-process-region begin-region end-region
                         markdown-command nil buf nil)
      (call-process-region begin-region end-region
                         shell-file-name nil buf nil
                         shell-command-switch markdown-command))

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4