From: Gregor Zattler <telegraph@gmx.net>
To: emacs-orgmode@gnu.org
Subject: [BUG] org-clock-sum: Wrong type argument: fixnump, nil [9.7-pre (release_9.6.22-1309-g8507ef @ /home/grfz/src/org-mode/lisp/)]
Date: Sat, 23 Mar 2024 23:20:58 +0100 [thread overview]
Message-ID: <87v85cpp2t.fsf@no.lan> (raw)
Dear org-mode developers, Ihor,
the following is with GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0)
of 2024-02-27
with point on the following frame for a clock table:
#+BEGIN: clocktable :scope ("/home/absolute/path/file.org_archive")
#+END:
org-clock-report with
emacs -Q
(that is, with Org mode version 9.6.15 (release_9.6.15 @ /home/xxxx/src/emacs-master--32b4f9d21b14190f1ed1611515751abe4b90fa68--2024-02-27T09-36+01-00/lisp/org/)
produces a nice clock report table.
If instead I use a very fresh org-mode from main, specifically
Org mode version 9.7-pre (release_9.6.22-1309-g8507ef @ /home/xxxx/src/org-mode/lisp/)
like so:
emacs -L ~/src/org-mode/lisp -L ~/src/org-mode/contrib/lisp -Q
org-clock-report
with point on said frame of a clock table produces
Updating dynamic block ‘clocktable’ at line 13...
org-clock-sum: Wrong type argument: fixnump, nil
file.org_archive has 2376 clock lines.
The problem does not occur with file.org which has
only 86 clock lines. I especially archive the nodes
with clock lines, because or performance reasons.
Doing a git bisect produced:
2e901ed23667b04642847701bae2070862b8ee6e is the first bad commit
commit 2e901ed23667b04642847701bae2070862b8ee6e
Author: Ihor Radchenko <yantar92@posteo.net>
Date: Fri Feb 3 15:08:18 2023 +0300
org-clock-sum: Optimize performance
* lisp/org-clock.el (org-clock-sum): Do not re-parse the timestamps,
reusing already-parser element.
lisp/org-clock.el | 29 +++++++++++++++++++++--------
1 file changed, 21 insertions(+), 8 deletions(-)
I cannot disclose said file, because it contains loads
of sensitive data. I extracted the clock lines only,
but a single node with a LOGBOOK drawer filled with
this clock lines does not trigger the bug. But I would
be happy to test a patch on my file.org to test it (or
help otherwise).
HTH, Gregor
next reply other threads:[~2024-03-23 22:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-23 22:20 Gregor Zattler [this message]
2024-03-24 13:27 ` [BUG] org-clock-sum: Wrong type argument: fixnump, nil [9.7-pre (release_9.6.22-1309-g8507ef @ /home/grfz/src/org-mode/lisp/)] Ihor Radchenko
2024-03-25 15:46 ` Gregor Zattler
2024-03-25 18:20 ` Ihor Radchenko
2024-03-25 18:37 ` Gregor Zattler
2024-03-26 10:27 ` Ihor Radchenko
2024-03-26 23:11 ` Gregor Zattler
2024-03-27 12:00 ` Ihor Radchenko
2024-03-28 7:53 ` Gregor Zattler
2024-03-26 11:34 ` Max Nikulin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v85cpp2t.fsf@no.lan \
--to=telegraph@gmx.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).