From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#57267: 28.1; emacs crashes when loading too many images Date: Sun, 21 Aug 2022 07:30:57 +0200 Message-ID: References: <83v8qqawsh.fsf@gnu.org> <83a681fk6i.fsf@gnu.org> <837d34g4l7.fsf@gnu.org> <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@jojojames.com> <99A661F2-C12C-4F15-BB17-D23E28783548@jojojames.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40316"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: 57267@debbugs.gnu.org, Eli Zaretskii To: james@jojojames.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 21 07:32:56 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPdZv-000AIb-KK for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Aug 2022 07:32:55 +0200 Original-Received: from localhost ([::1]:53920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPdZt-0001iy-T3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Aug 2022 01:32:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPdZ4-0001il-Hr for bug-gnu-emacs@gnu.org; Sun, 21 Aug 2022 01:32:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPdZ4-0000r6-7b for bug-gnu-emacs@gnu.org; Sun, 21 Aug 2022 01:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oPdZ3-0006r5-Oe for bug-gnu-emacs@gnu.org; Sun, 21 Aug 2022 01:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Aug 2022 05:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57267 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57267-submit@debbugs.gnu.org id=B57267.166105987026293 (code B ref 57267); Sun, 21 Aug 2022 05:32:01 +0000 Original-Received: (at 57267) by debbugs.gnu.org; 21 Aug 2022 05:31:10 +0000 Original-Received: from localhost ([127.0.0.1]:33675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPdYE-0006q1-6J for submit@debbugs.gnu.org; Sun, 21 Aug 2022 01:31:10 -0400 Original-Received: from mail-ej1-f54.google.com ([209.85.218.54]:45830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPdY9-0006pT-8d for 57267@debbugs.gnu.org; Sun, 21 Aug 2022 01:31:08 -0400 Original-Received: by mail-ej1-f54.google.com with SMTP id gt3so3204334ejb.12 for <57267@debbugs.gnu.org>; Sat, 20 Aug 2022 22:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc; bh=VfNLscocsD5y9hlfWkww4NcRUz6GZgiTECoVagzscas=; b=RDz0bFR6lkMNCp8y4sKQgRNZOAT1NhJONbp8JOsobKMFVynNFGH13NEVnQlsQV1LGP 17xpi0j83ucGf37HZX0d2nOGKVejU5tmfLEVWLg1IoDl+4kWMmi4Yni0b8H1d1Pe1rN3 wAr1y2wNnv3tQ9fJyTPgPUGCY8o3/b8qoZ9VEvz9hDU56k/8ISjRYAwoZwc0anSTWdzY ylkWWBLdmF1QSnlNKq0Hff/MdZkLDK1WL0I9DKNr79OuqYTdWHea0kGwRmxk3RAR+S/F oHNHwLeAc/bcZj/UNB6+oE/x4c/SlHgeqK1HL37g060pBJuKDOdP5bRm/dNTHkrRMVCW etRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=VfNLscocsD5y9hlfWkww4NcRUz6GZgiTECoVagzscas=; b=lv25Rhbtxl3muISSjviBL1ootVLj0pCXENWW0D0nUBTfPKqDuXuYk98Ticraueulrt Ml6Leh4IdF8b/BqZBw82+sY3Fi9E56VG/Su3dda5jPWw57iIoCwZDjqTE0cnTESpZMDw UmwTtpj0gU7YhIgQz08kV6B8d8PRmkJf5xk9Kd2k5KT2eDepfNurpBM/w5bS7Ba8g8au FSwV8yq6ZgS2wzr+AMeMf5kRtmAyO8UROELHYdR9g5WmiT7MswvKKKvrY19gNDQYkFoN XJj+C5CfPi6AgO/0k/ZAOrwkFzFupz+oVg/QWgzpIGUd0FMop1ZcSBRgQydbLTTHO8Aq Tk1w== X-Gm-Message-State: ACgBeo2oAWRW23Pxu3Aq+RufjtCfsUUTXuwxNbC670w6fE/Stkz8b6qo +BORKSac/eb3dSO0AcZpNC1VFKhhOnEgqA== X-Google-Smtp-Source: AA6agR4WVHkqmsXUt4vq5yeaie2i3Ra8qZGE0tgYhrlBRpDdJVRSmHjb39ptpq1N8x5jIc+cCdCdmg== X-Received: by 2002:a17:907:b12:b0:73d:5815:2575 with SMTP id h18-20020a1709070b1200b0073d58152575mr5400596ejl.173.1661059859070; Sat, 20 Aug 2022 22:30:59 -0700 (PDT) Original-Received: from Mini.fritz.box (p54b0cf60.dip0.t-ipconnect.de. [84.176.207.96]) by smtp.gmail.com with ESMTPSA id w20-20020a1709060a1400b007303fe58eb2sm4382263ejf.154.2022.08.20.22.30.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 22:30:58 -0700 (PDT) In-Reply-To: (james@jojojames.com's message of "Sat, 20 Aug 2022 12:23:58 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240277 Archived-At: james@jojojames.com writes: > >> Could it be that one or more jpegs of yours is invalid in some way? > Maybe you could check this with the 'jpeginfo' utitlity. I've never > used it myself, because I don't have a use for it, but from what I read, > it might be able to detect at least some error cases. Maybe it's worth > trying. > > Do you think that would lead to a crash every time? My crashes are > very inconsistent. I can't really answer that question because, as a starter, I don't even know what AppleVPA is doing when it crashes, and there's no way to find out, AFAIK. In general, with multi-threading, ASLR, and whatnot, things tend to not behave consistently quite frequently, at least in my experience. I'd personally give jpeginfo a try. It's cheap. Just 'brew install' it. >> Another idea might be to try and install an external jpeg library > (libjpeg I presume), and configure Emacs to use it. Alas, this doesn't > seem to work on my M1 Mac, but maybe it does on your x86_64 system. > > Can you point me to some documentation for that? I can't find documentation for this. I guess I only "know" about this because I added it in 1998, according to the ChangeLog, which must be a lie :-). Anyways. On my system, I just did 'brew install libjpeg' and then './configure'. The file config.log showed that configure was trying to use libjpeg, but didn't like it for some reason I don't remember. BTW, Homebrew also has other jpeg libs ('brew search jpeg' and so on), but I didn't try them all. As I mentioned, I don't do much with images myself. Maybe it's also worth asking an help-gnu-emacs, if this doesn't work. Or someone reading this knows more about this topic.