Subject: 30.0.50; An critical error after upgrade to Org-9.7
From: Lin Sun <[email-masked]>
To: [email-masked]
Date: Mon, 10 Jun 2024 17:25:11 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

After upgrading emacs-30 to last git one (with the Org-9.7 commit
https://git.savannah.gnu.org/cgit/emacs.git/diff/lisp/org/org.el?id=5a125fb5a9736bd3c67cf6ff9acc185d8e2260e2),

An error will happened for an image inside a table, a simple org file
can reproduce the issue:

$ touch  /tmp/a.png

$ echo '|[[file:a.png]]|' > /tmp/a.org

$ emacs -q /tmp/a.org -eval '(org-toggle-inline-images)'

Emacs was built with image support, and started with GUI.

Please help investigate this issue. Thanks.