Forum > LCL
SIGSEV crash with "background,color" and "ColorFromString..."
(1/1)
QEnnay:
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 [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- 'b': if Cmd = 'background-color' then begin if Args.Count > 0 then BGColor := ColorFromString(Args[0]) // it crashes at this line highlighted else BGColor := clDefault;
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.
dsiders:
--- Quote from: QEnnay on May 07, 2025, 11:31:02 pm ---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 [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- 'b': if Cmd = 'background-color' then begin if Args.Count > 0 then BGColor := ColorFromString(Args[0]) // it crashes at this line highlighted else BGColor := clDefault;
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.
--- End quote ---
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:
Hey goodman STOP TROLLING THIS FORUM!!!
Thaddy:
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.
Navigation
[0] Message Index