GNU bug report logs -
#70544
30.0.50; The primitive-function "call-process-region" returns "internal error" and causes high cpu usage on win10
Previous Next
Reported by: leuven65 <leuven65 <at> gmail.com>
Date: Wed, 24 Apr 2024 01:52:13 UTC
Severity: normal
Tags: moreinfo
Found in version 30.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: leuven65 <leuven65 <at> gmail.com>
> Date: Tue, 23 Apr 2024 20:02:39 +0200
>
> On windows10, I uses git for windows, but when I execute "gitk" by "shell-command"
> in emacs, it returns an error "internal error",
> and emacs's cpu usage becomes full forever, except for restarting emacs,
I cannot reproduce this. But my Git for Windows is quite old, so
maybe newer versions made some change? What is gitk on your machine?
Is it a gitk.exe program or some kind of script?
> The issue can be easily reproduced by directly eval following sexp:
>
> (call-process-region (point-min) (point-max)
> "cmdproxy.exe"
> t
> t
> nil
> "-c"
> "gitk")
gitk is a GUI program, so why are you invoking it with
call-process-region? gitk will never read anything from its stdin or
write anything to its stdout. I suggest to invoke gitk from Emacs
like this:
M-! gitk & RET
IOW, add the "&" character at the end of the command line to make the
invocation asynchronous, instead of letting Emacs block until gitk
exits.
This bug report was last modified 1 year and 52 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.