bugGNU Octave - Bugs: bug #65968, Printing to pdf produces distorted...

 
 

bug #65968: Printing to pdf produces distorted result

Submitter:  Dennis Cote <dennisc_hi>
Submitted:  Tue 09 Jul 2024 05:24:29 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Dennis Cote Open/Closed:  * Closed
Release:  * 9.2.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 24 Jul 2024 07:35:57 PM UTC, comment #8: 

I'm going to close this report as the issue seems to be related to hardware and driver version, rather than Octave itself.

Rik <rik5>
Group administrator
Wed 24 Jul 2024 02:57:21 PM UTC, comment #7: 

I switched to the software OpenGL and repeated my test case. Both the PDF and SVG output files were correct (see foosoft.* files attached).

Then I checked my hardware since the reported problems seemed to be with Nvidia and Intel integrated graphics. I have a Ryzen CPU with a Radeon GPU so I thought those issues were unlikely. See hardware OpenGL info attached.

I noticed my Radeon driver was old (from 2021) so I updated to the newest AMD Radeon driver (from 2024) and repeated my test case using the system OpenGL. See new hardware OpenGL info attached which shows the only OpenGL version change was the "Compatibility GL ES version" increased from 3.0 to 3.1.

With the new driver both the PDF and SVG files were correct (see foo_newhard.* files attached).

This seems to be a hardware driver related issue rather than a bug in Octave.



(file #56300, file #56302,

Dennis Cote <dennisc_hi>
Wed 24 Jul 2024 12:51:30 AM UTC, comment #6: 
Dmitri A. Sergatskov <dasergatskov>
Wed 24 Jul 2024 12:10:12 AM UTC, comment #5: 

Running the test m-file bug_65968_printing_to_pdf.m on Linux with current stable version 9.2.0 works just fine.

Unfortunately, this is likely to be an interaction with the OpenGL implementation on your specific hardware, including possibly if you are using hardware acceleration such as Nvidia.

There is a way to disable HW acceleration which is probably worth testing.

@Markus: Can you provide instructions for disabling HW acceleration on Windows?

Rik <rik5>
Group administrator
Sat 13 Jul 2024 06:38:12 PM UTC, comment #4: 

I didn't see these artifacts, running GNU Octave Version: 10.0.0 (hg id: f7c791ad5f32) on ubuntu 24.04 in VM ware player. See screenshot and code attached. Cheers.

Ben E <benjewmin>
Wed 10 Jul 2024 02:35:51 PM UTC, comment #3: 


comment #2:

> @dennisc_hi: Where did you download Octave?


I downloaded octave-9.2.0-w64-installer.exe from the Octave website at https://octave.org/download#ms-windows

> Could you please provide steps to reproduce the issue?


As I said, I was following the examples in the official documentation at https://docs.octave.org/v9.1.0/Simple-Examples.html. The data is produced by the ODE in section 1.2.5. The plot and the PDF file are produced in section 1.2.6.

> Do you see the same if you print to other vector formats, e.g., .svg?


I just printed to foo.svg and opened the resulting file Inkscape. I see similar but different artifacts in the svg file (attached).

> Do you see the same if you print to raster formats, e.g., .png?


I also printed the figure to foo.jpg. The JPEG image looks the same as the figure window.

file #56247,

Dennis Cote <dennisc_hi>
Wed 10 Jul 2024 07:22:57 AM UTC, comment #2: 

Re comment #1: The "official" installer for Octave 9.2.0 for Windows bundles Mesa 24.0.1. That thread on Discourse is about an issue with Mesa 24.1.0 or newer. So, unless that issue somehow affects different versions on Windows and Linux or OP got Octave from somewhere else, this is probably something different.

@dennisc_hi: Where did you download Octave?
Could you please provide steps to reproduce the issue?
Do you see the same if you print to other vector formats, e.g., .svg?
Do you see the same if you print to raster formats, e.g., .png?

Markus Mützel <mmuetzel>
Group administrator
Wed 10 Jul 2024 02:08:49 AM UTC, comment #1: 
Anonymous
Tue 09 Jul 2024 05:24:29 PM UTC, original submission:  

I'm using Octave 9.2.0 on Windows 10. I'm following the examples in the manual at https://docs.octave.org/v9.1.0/Simple-Examples.html.

When I get to section "1.2.6 Producing Graphical Output" I print the on-screen plot to foo.pdf. The on-screen plot window looks fine. The foo.pdf file is created but displays strange artifacts when viewed with Adobe Acrobat.

I have attached screen shots of the plot window and the displayed pdf page, and the foo.pdf file that Octave generated.

This would be an unfortunate start to using Octave for a new user.


Dennis Cote <dennisc_hi>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #56304:  foosoft.svg added by dennisc_hi (14KiB - image/svg+xml)
file #56305:  foo_newhard.svg added by dennisc_hi (16KiB - image/svg+xml)
file #56300:  foosoft.pdf added by dennisc_hi (8KiB - application/pdf)
file #56302:  foo_newhard.pdf added by dennisc_hi (8KiB - application/pdf)
file #56267:  bug_65968_printing_to_pdf.m added by benjewmin (530B - text/x-objcsrc)
file #56246:  svg_in_inkscape.png added by dennisc_hi (77KiB - image/png)
file #56247:  foo.svg added by dennisc_hi (15KiB - image/svg+xml)
file #56248:  foo.jpg added by dennisc_hi (10KiB - image/jpeg)
file #56240:  plot_window.png added by dennisc_hi (65KiB - image/png)
file #56241:  pdf_page.png added by dennisc_hi (93KiB - image/png)
file #56242:  foo.pdf added by dennisc_hi (8KiB - application/pdf)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by benjewmin (Updated the item)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by dennisc_hi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 17 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-07-24 rik5 StatusNeed Info Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2024-07-24 dennisc_hi Attached File- Added foosoft.svg, #56304
        Attached File- Added foo_newhard.svg, #56305
    2024-07-24 dennisc_hi Attached File- Added hardware@OpenGL@info.png, #56301
        Attached File- Added foo_newhard.pdf, #56302
        Attached File- Added new@hardware@OpenGL@info.png, #56303
        Attached File- Added foosoft.pdf, #56300
    2024-07-13 benjewmin Attached File- Added bug_65968_printing_to_pdf.m, #56267
        Attached File- Added Screenshot@from@2024-07-13@14-20-28.png, #56268
    2024-07-10 dennisc_hi Attached File- Added svg_in_inkscape.png, #56246
        Attached File- Added foo.svg, #56247
        Attached File- Added foo.jpg, #56248
    2024-07-10 mmuetzel StatusNone Need Info
    2024-07-09 dennisc_hi Attached File- Added plot_window.png, #56240
        Attached File- Added pdf_page.png, #56241
        Attached File- Added foo.pdf, #56242

    Back to the top

    Powered by Savane 3.14-9aa3.
    Corresponding source code