Recent

Author Topic: Wrong depth drawing on pie serie  (Read 2045 times)

Slavomir

  • Newbie
  • Posts: 5
Wrong depth drawing on pie serie
« on: August 29, 2023, 12:27:54 pm »
Hi,
I used TAChart with Pie series on my application. All works fine except drawing the depth of the arc (see attached image).
This bug appears in Windows only (I tested on Linux Mint also) and only when graph shows 2 pieces (both 50,00 % ) -never mind of source data - if rounded or not.
After wrong drawing my application crashes (access violation message). If program draws other graphs, application works fine.
Any hint how to handle this bug ?
Lazarus 3.0 RC1
« Last Edit: August 29, 2023, 12:29:31 pm by Slavomir »

wp

  • Hero Member
  • *****
  • Posts: 12461
Re: Wrong depth drawing on pie serie
« Reply #1 on: August 29, 2023, 01:54:12 pm »
Could you post for me a small demonstration project? I mean: pack .lpi, .lpr, .pas and .lfm files into a common zip and upload it here via "Attachments and other options" (do not add exe or other compiler-generated files to avoid exceeding the upload file size limit).

Slavomir

  • Newbie
  • Posts: 5
Re: Wrong depth drawing on pie serie
« Reply #2 on: August 29, 2023, 03:05:36 pm »
Here you are - short demo!
You can see the result on Windows 10 Home + Lazarus 3.0 RC1.

paweld

  • Hero Member
  • *****
  • Posts: 1268
Re: Wrong depth drawing on pie serie
« Reply #3 on: August 29, 2023, 04:27:46 pm »
on lazarus trunk is OK.
Best regards / Pozdrawiam
paweld

AlexTP

  • Hero Member
  • *****
  • Posts: 2486
    • UVviewsoft
Re: Wrong depth drawing on pie serie
« Reply #4 on: August 29, 2023, 05:53:02 pm »
Lazarus today's Git, all OK on Linux x64.

wp

  • Hero Member
  • *****
  • Posts: 12461
Re: Wrong depth drawing on pie serie
« Reply #5 on: August 29, 2023, 06:41:12 pm »
It's not a matter of Laz 3.0 vs Laz trunk, but a matter of 32-bit (working) vs. 64 bit (not working) on Windows-64bit where extended=double and thus pi is double while on 32-bit it is extended.

The issue is fixed atm in Laz/main, but I guess there are more issues of this kind because the pie series code contains a lot of direct floating point comparisons, and I do remember that it was quite painful to get the painting of the pie faces correct regarding the many special cases...

Slavomir

  • Newbie
  • Posts: 5
Re: Wrong depth drawing on pie serie
« Reply #6 on: August 30, 2023, 07:52:53 pm »
The same computer, the same procesor, but different (correct) graph.

System:
  Kernel: 6.2.0-31-generic x86_64 bits: 64 compiler: N/A Desktop: MATE 1.26.0 wm: marco
    dm: LightDM Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: MSI model: Z97 GAMING 3 (MS-7918) v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: 2.10 date: 02/16/2016
CPU:
  Info: quad core model: Intel Core i5-4460 bits: 64 type: MCP arch: Haswell rev: 3 cache:
    L1: 256 KiB L2: 1024 KiB L3: 6 MiB
  Speed (MHz): avg: 3328 high: 3398 min/max: 800/3400 cores: 1: 3355 2: 3362 3: 3398 4: 3200
    bogomips: 25597
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GM206 [GeForce GTX 960] vendor: ASUSTeK driver: nvidia v: 525.125.06 pcie:
    speed: 2.5 GT/s lanes: 16 ports: active: none off: HDMI-A-1 empty: DP-1, DP-2, DP-3, DVI-I-1
    bus-ID: 01:00.0 chip-ID: 10de:1401
  Display: x11 server: X.Org v: 1.21.1.4 compositor: marco v: 1.26.0 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: HDMI-0 res: 1920x1080 dpi: 102 diag: 548mm (21.6")
  OpenGL: renderer: NVIDIA GeForce GTX 960/PCIe/SSE2 v: 4.6.0 NVIDIA 525.125.06
    direct render: Yes


 

TinyPortal © 2005-2018