From: Jinsong Zhao <jszhao@yeah.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 68452@debbugs.gnu.org
Subject: bug#68452: w32-use-native-image-API makes weird behavior
Date: Mon, 15 Jan 2024 15:48:55 +0800 [thread overview]
Message-ID: <8f411e6b-519e-4e9f-876b-ec191c7b3e38@yeah.net> (raw)
In-Reply-To: <83le8re0c9.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2664 bytes --]
On 2024/1/15 11:34, Eli Zaretskii wrote:
>> Date: Mon, 15 Jan 2024 10:30:26 +0800
>> Cc: 68452@debbugs.gnu.org
>> From: Jinsong Zhao <jszhao@yeah.net>
>>
>> On 2024/1/15 0:34, Eli Zaretskii wrote:
>>>> Date: Sun, 14 Jan 2024 21:52:00 +0800
>>>> From: Jinsong Zhao <jszhao@yeah.net>
>>>>
>>>> I am not a skilled Emacs user. I mainly use Emacs as a front end for Maxima with the help of
>>>> imaxima. imaxima converts Maxima output into PNG image, which are then displayed in Emacs. I am
>>>> using Windows 10.
>>>>
>>>> It works fine on Emacs 28.2, when I type an expression, e.g. q^2 = 1; and return, Emacs 28.2
>>>> immediately displays the resulting PNG image.
>>>>
>>>> If I use Emacs 29.1, however, all I get after returning is an empty square. And if I type another
>>>> expression and return, a blank square appears. At the same time, the first empty square was
>>>> replaced by a PNG image of the first expression. That's weird.
>>>>
>>>> I saw the following messages in the *Messages* buffer:
>>>>
>>>> Processing Maxima output...done
>>>> Unable to load image (image :type png :file c:/Users/Jinso/AppData/Local/Temp/imaximatU5Y9B/1 :
>>>> scale 1.001595744680851 :ascent center :mask (heuristic (color-values imaxima-bg-color)) :
>>>> transform-smoothing t) [35 times]
>>>> Process imaxima finished
>>>>
>>>> After (setq w32-use-native-image-API nil), imaxima has the same behaviour on Emacs 28.2 and
>>>> 29.1.
>>>
>>> Thanks, but we'd need an example of such a PNG image to investigate.
>>> Can you send one such image, which works with w32-use-native-image-API
>>> nil, but not when it is non-nil?
>>>
>>> In any case, it is perfectly okay to reset w32-use-native-image-API to
>>> nil if the native image APIs fail to process an image you want to see.
>>> That's why we support both modes.
>>
>> Thanks for the reply.
>>
>> The PNG image is created on the fly by imaxima, a front end for Maxima.
>> I think it's a normal PNG image file, actually converted from a ps file
>> by ghostscript. I also tried to use JPEG, it's the same.
>
> Well, we cannot do anything with this bug report unless we have an
> example of an image to work with. So please find a way to ask imaxima
> to save the image on a file, and then send it.
I could provide the PNG files, please see the attachments.
File "1" and "2" are PNG files that were displayed in Emacs.
File "11.png" and "33.png" are the screenshots with
w32-use-native-image-API set to nil after the first and second input.
File "22.png" and "44.png" are the screenshots with
w32-use-native-image-API set to non-nil after the first and second input.
I don't know if I am clear.
Best wishes,
Jinsong
[-- Attachment #2: 1 --]
[-- Type: image/png, Size: 1693 bytes --]
[-- Attachment #3: 2 --]
[-- Type: image/png, Size: 1792 bytes --]
[-- Attachment #4: 11.png --]
[-- Type: image/png, Size: 66854 bytes --]
[-- Attachment #5: 33.png --]
[-- Type: image/png, Size: 68341 bytes --]
[-- Attachment #6: 22.png --]
[-- Type: image/png, Size: 64432 bytes --]
[-- Attachment #7: 44.png --]
[-- Type: image/png, Size: 71863 bytes --]
next prev parent reply other threads:[~2024-01-15 7:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-14 13:52 bug#68452: w32-use-native-image-API makes weird behavior Jinsong Zhao
2024-01-14 16:34 ` Eli Zaretskii
2024-01-15 2:30 ` Jinsong Zhao
2024-01-15 3:34 ` Eli Zaretskii
2024-01-15 7:48 ` Jinsong Zhao [this message]
2024-01-15 13:08 ` Eli Zaretskii
2024-01-15 14:17 ` Jinsong Zhao
2024-01-15 14:53 ` Eli Zaretskii
2024-01-15 15:06 ` Jinsong Zhao
2024-01-16 5:09 ` Jinsong Zhao
2024-01-16 12:46 ` Eli Zaretskii
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8f411e6b-519e-4e9f-876b-ec191c7b3e38@yeah.net \
--to=jszhao@yeah.net \
--cc=68452@debbugs.gnu.org \
--cc=eliz@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.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).