From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kF36HHu302NzPwEAbAwnHQ (envelope-from ) for ; Fri, 27 Jan 2023 12:37:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6MLEHHu302OjZAAAauVa8A (envelope-from ) for ; Fri, 27 Jan 2023 12:37:31 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0A13C1DAD8 for ; Fri, 27 Jan 2023 12:37:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLN29-0006N8-2M; Fri, 27 Jan 2023 06:36:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKlWH-0002lR-HI for emacs-orgmode@gnu.org; Wed, 25 Jan 2023 14:33:18 -0500 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pKlWF-0008P2-IB for emacs-orgmode@gnu.org; Wed, 25 Jan 2023 14:33:17 -0500 Received: by mail-ej1-x636.google.com with SMTP id ss4so50354781ejb.11 for ; Wed, 25 Jan 2023 11:33:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:from:content-language:subject:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=GMxshVFkIhcZtK2dMasfMx1/ctICPgMhsQ4OGmdfk9A=; b=jULrEowoB/DGr5z74TSaF3ggEYaS6mOLpAHsuxejONXY1mwKzqBQjBxm+P3KCESBc9 xjUlq2fyFPUZuq4nW49R67f/KucfYiM5zkuHB4UCf20SQJ5mIWf3xzbW1WBXmbAZb6+T cKy08q1ccfQOSaBuFgp1a8XF6LTmuDWAdmTzNWl9iohRaBsgmtGM+HIOo+lUu2IscP5W nU9G/OosZfcSWn3fWa2wFTzzvh5aFlV9DpbQ1IFr1/RhpnwrcKhGeHd8uFhVmEjriI+9 gVGiHBZHUkWFXqJ+/6om5L5qp6qbnt3YYM343+YNESayuod+SxuDGIJ7oXcz/aQKlSJt 9zPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:from:content-language:subject:to :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=GMxshVFkIhcZtK2dMasfMx1/ctICPgMhsQ4OGmdfk9A=; b=VAmuynE6O8kNsMIOOkQU5dwwTDTV4cyJqoWQ6oyYLp/0grXhW0RtXgGM+RSUcYGTK4 oZ9T4MdDLld5zIW4YApA0SKsSRA4YZV/L9PsPGFi+jkzP1A2wKESoivKrCfDzqmAoDGH 57e2ZdCvPUtlIRNdrF9FudeMpgSW7fprD0oPGHsJzP1J9Gmn6b9B2rq9OCq6fSc1+VrY ge2BfoyYbvQhlVk/GgmEhA/d4qUGevLkXSpnBQMnDQ4gDE7IZSyobh+PxMn15l2AJiVT PSiMRLOI8rwSdQBR2l2MQgHcaInUlkj59dM7syD8ZUPOn4lZrzVPU1I2UToaenNty4Cb SSJQ== X-Gm-Message-State: AFqh2kpXWnT2LGv0uuzt5yG1Ah65JYrUuoF62Oxd2H+z9FyM4Ic2YNss tFWf4ZMUlF6QNXNzVPXlsCRw2MnvEjPh X-Google-Smtp-Source: AMrXdXtzM2TUu/9MjlGWiRCNsDgsTteiaHkronY8Pz0bUIakV8CAQrmZ8WlwH8As6N2udSVtnn3s5A== X-Received: by 2002:a17:906:a88c:b0:7c1:5098:907a with SMTP id ha12-20020a170906a88c00b007c15098907amr34470317ejb.35.1674675192530; Wed, 25 Jan 2023 11:33:12 -0800 (PST) Received: from [192.168.178.108] (92-108-19-4.cable.dynamic.v4.ziggo.nl. [92.108.19.4]) by smtp.gmail.com with ESMTPSA id e14-20020a17090681ce00b00872eb47f46dsm2815840ejx.19.2023.01.25.11.33.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Jan 2023 11:33:12 -0800 (PST) Message-ID: <3d5a786c-5635-fcae-1ac9-8b329f703489@gmail.com> Date: Wed, 25 Jan 2023 20:34:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 To: emacs-orgmode@gnu.org Subject: [BUG] Org-Babel shell problems and crashes with images [9.6.1 (9.6.1-ga6c882 @ /home/joe/.emacs.d/straight/build/org/)] Content-Language: en-US From: Josep Jesus Bigorra Algaba Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=jjbigorra@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 27 Jan 2023 06:36:36 -0500 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674819451; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=GMxshVFkIhcZtK2dMasfMx1/ctICPgMhsQ4OGmdfk9A=; b=bhD3L+wvBcU2KZAAPDZg61IM9spp94QuRtEixXrkw+t2WkqlimUqa9xKcg9BWdI/2STjfq ZVpQxgN0SCigmYGOxRfi2UjPY8e8lNXsRrpgcjddcZ+j3m9wnQG9UBnq5sDwgALqXuzfrf g/JrGy5BxzFSECiJTC+YYgTxKGsrK08YoGAi9L+Q4IjQ7HoT0Bb/XkSDF+NQflJTxF1vPq 0wvpeXSG+spOPFWqZfBZbJEpmiCmdNYw+Pr5MYttJoYqE7CQ4C4yW5K/xosq7P8IEmOdRS BVHHZl8URXJi0mzeSTG+4DdfGwpBk01QdnmEQN+7q2OG41yWKArl8DlEFrvHzA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jULrEowo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674819451; a=rsa-sha256; cv=none; b=PUmahdvEXbVg7vpsSf89jm0HQ3X1EiN/LbTamoGudGEHesj1abRorQIigDwHZARfarihxf 7EBO3b0bHRRgY6nMN6ck4Qysgz19OYZ/ls/JX9kI/5Ae5OvdcPZ2oAqNW/ubwiWOTv/DB7 ZsR1X0HOAGTcwhyCtaYlMIpTvkdnvJoy1WcN1UEFoZ17fhceIv+CeLkgnQJX2uUTKVv4r9 IrziB+6CGKpXypL5FMQ8AZ/58hpg4Ge+qu28+ZKEisoQ+5XuHwIvbu5tpLe5rxxFqxsXoO rGp5eVlgJPEmpktFVGZIkRTHrFoIuq3hnwh0REWELrdhbtrpZDXYRxagx2xJSw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jULrEowo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -7.25 X-Spam-Score: -7.25 X-Migadu-Queue-Id: 0A13C1DAD8 X-TUID: uBlv+yVH3+1H Good evening dear community! This is my first time posting to the mailing list, so I hope I am doing things right. I am quite new to Emacs and Org but in the short few months using it, it's been enlightening and amazing. I have experienced two very crazy bugs lately that are very difficult to understand and nearly impossible to fix. I am on latest Emacs (from git) and using the bundled org mode (from git), on openSUSE Tumbleweed, running with XFCE + Xmonad. 1- Creating a line in an org document that contains more than 2 images causes Emacs to entirely crash (tested on Emacs 28 all the way to 30), e.g. [[./dist/example1.png]] [[./dist/example2.png]] [[./dist/example3.png]] I am pretty convinced that if you attempt this it will crash on you. I didn't even have the showing inline images enabled, it doesn't make a difference. I have also noticed that having plain links (not surrounded by [[]]) can also lead to crashes sometimes, but difficult to reproduce. 2- Org babel tangle for shell scripts seems to exhibit strange behaviour in latest build, and it adds a strange BOM character at beggining of the script. This makes it that the script is not runnable anymore. I can fix this by manually going to exported file and doing a =set-buffer-file-coding-system RET utf-8= . That seems to remove that BOM character. My literate scripts use these options, thought sometimes shebang as =#!/usr/bin/zsh= : #+begin_example #+title: Joe's spin on openSUSE Tumbleweed #+property: header-args :tangle install :comments org :shebang #!/usr/bin/bash #+auto_tangle: t #+end_example Thanks in advance! I will provide all needed info that additionally is required. Josep Bigorra (jjbigorra@gmail.com) Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.35, cairo version 1.17.6) of 2023-01-24 Package: Org mode version 9.6.1 (9.6.1-ga6c882 @ /home/joe/.emacs.d/straight/build/org/) current state: ============== (setq org-agenda-prefix-format '((dashboard-agenda . " %i %-12:c %s ") (agenda . " %i %-12:c%?-12t% s") (todo . " %i %-12:c") (tags . " %i %-12:c") (search . " %i %-12:c")) org-link-elisp-confirm-function 'yes-or-no-p org-bibtex-headline-format-function #[257 "\300.\236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-log-done 'time org-persist-after-read-hook '(org-element--cache-persist-after-read) org-export-before-parsing-hook '(org-attach-expand-links) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-archive-hook '(org-attach-archive-delete-maybe) org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-ascii-format-drawer-function #[771 ".\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"] org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-cycle-optimize-window-after-visibility-change org-cycle-display-inline-images) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-mode-hook '(org-auto-tangle-mode olivetti-mode variable-pitch-mode er/add-org-mode-expansions #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes #[0 "\301\211.\207" [imenu-create-index-function org-imenu-get-tree] 2] rainbow-delimiters-mode rainbow-mode) org-babel-load-languages '((mermaid . t) (awk . t) (calc \.t) (C . t) (css . t) (emacs-lisp . t) (lisp . t) (java . t) (js . t) (haskell . t) (perl . t) (python . t) (sass . t) (shell . t) (sql . t) (R . t) (groovy . t) (org . t) (sqlite . t) (makefile \.t)) org-agenda-time-grid '((daily today require-timed) (800 1000 1200 1400 1600 1800 2000) "......" "----------------") org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"] org-latex-format-headline-function 'org-latex-format-headline-default-function org-confirm-shell-link-function 'yes-or-no-p org-adapt-indentation nil org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-super-agenda-mode t org-startup-indented t org-odt-format-headline-function 'org-odt-format-headline-default-function org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-tangle-lang-exts '(("groovy" . "groovy") ("python" . "py") ("perl" . "pl") ("haskell" . "hs") ("java" . "java") ("lisp" . "lisp") ("D" . "d") ("C++" . "cpp") ("awk" . "awk") ("emacs-lisp" . "el") ("elisp" . "el")) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-fold-core-isearch-open-function 'org-fold--isearch-reveal org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-persist-before-write-hook '(org-element--cache-persist-before-write) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '((lambda nil (setq coding-system-for-write 'utf-8)) save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("helpful" :store helpful--org-link-store) ("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("mu4e" :follow mu4e-org-open :store mu4e-org-store-link) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link :insert-description org-info-description-as-command) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open :export org-link-doi-export) ("elfeed" :follow elfeed-link-open :store elfeed-link-store-link) ("id" :follow org-id-open) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302.Q.\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("mailto" :follow #[514 "\301\300\302.Q.\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("https" :follow #[514 "\301\300\302.Q.\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("http" :follow #[514 "\301\300\302.Q.\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("ftp" :follow #[514 "\301\300\302.Q.\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("help" :follow helpful--org-link-follow :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp)) org-html-format-headline-function 'org-html-format-headline-default-function org-metaup-hook '(org-babel-load-in-session-maybe) org-agenda-current-time-string "now - - - - - - - - - - - - - - - - - - - - - - - - -" org-agenda-block-separator 61 )