Wrong depth drawing on pie serie lazarus / 55-TAChart ---------------------------------------------------------------------- Slavomir · 2023-08-29 10:27 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 ---------------------------------------------------------------------- wp · 2023-08-29 11:54 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 · 2023-08-29 13:05 Here you are - short demo! You can see the result on Windows 10 Home + Lazarus 3.0 RC1. ---------------------------------------------------------------------- paweld · 2023-08-29 14:27 on lazarus trunk is OK. ---------------------------------------------------------------------- AlexTP · 2023-08-29 15:53 Lazarus today's Git, all OK on Linux x64. ---------------------------------------------------------------------- wp · 2023-08-29 16:41 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 · 2023-08-30 17:52 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:     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