Recent

Author Topic: SIGSEV crash with "background,color" and "ColorFromString..."  (Read 622 times)

QEnnay

  • Full Member
  • ***
  • Posts: 129
I just installed 4.0 in Linux Mint 22+Cinnamon and getting a SIGSEV in ipCSS running in the IDE. If I run it standalone it just crashes with no error message.

Code: Pascal  [Select][+][-]
  1.       'b': if Cmd = 'background-color' then begin
  2.              if Args.Count > 0 then
  3.                BGColor := ColorFromString(Args[0])  // it crashes at this line highlighted
  4.              else
  5.                BGColor := clDefault;
  6.  
  7.  

I rolled back to a 3.xx version and getting the same issue.

How do I fix this fast. It is my main Contacts program that I use 20+ times per day.
Linux-Mint 20.1 x64 + Cinnamon; Lenovo Flex 5 Ryzen 5 4500, 16GB memory
FPC: 3.2.0-1, Lazarus 2.0.12-0, all 64bit

dsiders

  • Hero Member
  • *****
  • Posts: 1509
Re: SIGSEV crash with "background,color" and "ColorFromString..."
« Reply #1 on: May 08, 2025, 12:46:45 am »
I just installed 4.0 in Linux Mint 22+Cinnamon and getting a SIGSEV in ipCSS running in the IDE. If I run it standalone it just crashes with no error message.

Code: Pascal  [Select][+][-]
  1.       'b': if Cmd = 'background-color' then begin
  2.              if Args.Count > 0 then
  3.                BGColor := ColorFromString(Args[0])  // it crashes at this line highlighted
  4.              else
  5.                BGColor := clDefault;
  6.  
  7.  

I rolled back to a 3.xx version and getting the same issue.

How do I fix this fast. It is my main Contacts program that I use 20+ times per day.

Check the CSS in the HTML document for a malformed background-color value. It has to be a named HTML color  like RED (not clRed) or a hex value like #FF0000 (#rrggbb). I'm not sure if it can handle rgb() or rgba() color values in the CSS.

cdbc

  • Hero Member
  • *****
  • Posts: 2571
    • http://www.cdbc.dk
Re: SIGSEV crash with "background,color" and "ColorFromString..."
« Reply #2 on: June 01, 2025, 11:03:18 am »
Hey goodman STOP TROLLING THIS FORUM!!!
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Thaddy

  • Hero Member
  • *****
  • Posts: 18695
  • To Europe: simply sell USA bonds: dollar collapses
Re: SIGSEV crash with "background,color" and "ColorFromString..."
« Reply #3 on: June 01, 2025, 01:04:30 pm »
dsiders is right: it must be a color to html/css specification and not a color like the fpc color constants, which may or may not resolve to the same value.
dsiders also gave the correct syntax.
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

 

TinyPortal © 2005-2018