Python Script: Soft-Error but still gets executed

Hi,

the Python Script all of a sudden triggered a soft-error.

image

2024-10-22 07:59:48,513 ERROR Python Script 3:1799:0:1799 I/O error while saving internals: E:\Knime-Workspace\atMedia Onine Marketing\Customers\[PATH to DIR]\Optimize ext (#1799)\Python Script (#1799)\internal\console_b.arrow

241022 Pythong Script soft error threaddump-1729577946751.tdump.txt (112.2 KB)

Resetting and re-executing resolved it but I still wonder if a real issue in the data was triggered. Here is the code:

import knime.scripting.io as knio
import pandas as pd
import html

# Load the input table

df = knio.input_tables[0].to_pandas()

# Apply HTML escaping to the "ColumnValues" column, handling NaN values

df["ColumnValues"] = df["ColumnValues"].apply(lambda x: html.escape(str(x)) if pd.notnull(x) else x)

# Output the modified table

knio.output_tables[0] = knio.Table.from_pandas(df)

Best
Mike

@mwiegand I have seen this sometimes after a green Python node ‘sits’ there for some time with its result and then it shows this error, without this being an actual error (maybe). It looks as if the connection to the stored results gets ‘lost’ or something.

@mlauber71 yes, I agree. This falls into the bucket of hard to trace problems we keep a record of. Though, it still causes concerns as no one can actually tell if there is a problem or not.

It is almost as if the node is in a quantum state of superposition :wink:

I also just experience another odd behavior where that very same node got triggered to execute but was kind of hanging not starting to crunch the data. No error … just “superposition” oof awkwardness.

PS: I start to believe there is a more fundamental issue as I encountered something similar before but with the Component Output. Just right now I got this “experience”.

Kind of similar to what I reported in:

@marc-bux FYI - as follows the thread dump in case this is of any help

241024 Execution finished but nodes still running threaddump-1729790274758.tdump.txt (102.1 KB)