You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by "dmainou (via GitHub)" <gi...@apache.org> on 2025/07/15 23:14:57 UTC

[D] Stack overflow error (hop)

GitHub user dmainou created a discussion: Stack overflow error

Morning team,

I'm looking into assistance to find out why a pipeline that was previously working is crashing with a stack overflow error.

To be perfectly honest, we are being cheeky by trying to us the MySql bulk loader to bulk load into MariaDB. So there is a chance it is simple incompatibility. But then again, it was working just fine.

However, the error is non standard so thought in asking the question here.

Here is the error:

`2025/07/15 17:09:29 - wh_products.0 - Finished reading query, closing connection.
2025/07/15 17:09:29 - wh_products.0 - Finished processing (I=26826, O=0, R=0, W=26826, U=0, E=0)
2025/07/15 17:09:29 - Calculate Fiscal Dates.0 - Optimization level set to 9.
2025/07/15 17:09:29 - MySql bulk loader.0 - Connected to null
2025/07/15 17:09:29 - MySql bulk loader.0 - Starting the  bulk Load in a separate thread - LOAD DATA LOCAL INFILE '/tmp/fifo' INTO TABLE dbw_flat_mart.sales_logistics_direct_relational FIELDS TERMINATED BY '\t' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' (invoice_effective_date,invoice_effective_fiscal_period,invoice_effective_fiscal_quarter,invoice_effective_fiscal_year,base_wine_product_code,base_wine_product_description,base_wine_product_drawing_description,base_wine_product_drawing_loc_description,base_wine_product_group_description,customer_class_marketing_group_code,customer_class_marketing_group_description,customer_code,customer_group_code,customer_group_description,customer_name,customer_region_code,customer_region_description,customer_sic_code,customer_sic_description,customer_site_code,customer_site_description,invoice_despatch_site_code,invoice_despatch_site_description,invoice_effective_fiscal_period_name,invoice_effective_fiscal_quarter_name,invoice_effective_fiscal_year
 _name,invoice_line_accrued_rebates,invoice_line_carton_quantity,invoice_line_discounts,invoice_line_freight_charge,invoice_line_gross_margin,invoice_line_invoice_price,invoice_line_list_price,invoice_line_net_price,invoice_line_number,invoice_line_standard_cost,invoice_line_transaction_type_description,invoice_line_unit_quantity,invoice_line_volume,invoice_number,invoice_ship_via,product_code,product_description,product_drawing_description,product_drawing_loc_description,product_drawing_size_description,product_full_description,product_group_description,product_line_category_code,product_line_category_description,product_line_code,product_line_description,product_revision_code,product_status_code,product_type_description,product_unit_of_measure,sales_order_number,sales_person_code,sales_person_name,sales_person_territory_code,sales_person_territory_description,sales_report_business_unit,sales_report_code,sales_report_type,store_id,store_name,store_state,sales_report_division,product
 _line_family_code,product_line_family_description,external_data_source_code,external_data_source_description,product_type_code,metcash_invoice_effective_fiscal_year,metcash_invoice_effective_fiscal_year_name);
2025/07/15 17:09:29 - MySql bulk loader.0 - Opening fifo /tmp/fifo for writing.
Exception in thread "Thread-61" java.lang.StackOverflowError
        at java.base/java.util.regex.Pattern$Branch.match(Pattern.java:4734)
        at java.base/java.util.regex.Pattern$GroupHead.match(Pattern.java:4789)
        at java.base/java.util.regex.Pattern$Loop.match(Pattern.java:4898)
        at java.base/java.util.regex.Pattern$GroupTail.match(Pattern.java:4820)
        at java.base/java.util.regex.Pattern$BranchConn.match(Pattern.java:4698)
        at java.base/java.util.regex.Pattern$CharProperty.match(Pattern.java:3931)
        at java.base/java.util.regex.Pattern$Branch.match(Pattern.java:4734)
        at java.base/java.util.regex.Pattern$GroupHead.match(Pattern.java:4789)
        at java.base/java.util.regex.Pattern$Loop.match(Pattern.java:4898)
`









GitHub link: https://github.com/apache/hop/discussions/5525

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] Stack overflow error (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
GitHub user hansva added a comment to the discussion: Stack overflow error

It seems the source of this error is when we try to use a regex on a string that is too large.
It's probably when we are adding the escape characters to the enclosing characters in the string and are trying to write to the temp file.

As I can see that you have a lot of fields, and I am guessing some of them can have fairly long strings.
Are you using the "Escape enclosure characters when found" on any of the large fields?


GitHub link: https://github.com/apache/hop/discussions/5525#discussioncomment-13773666

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] Stack overflow error (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
GitHub user hansva edited a comment on the discussion: Stack overflow error

It seems the source of this error is when we try to use a regex on a string that is too large.
It's probably when we are adding the escape characters to the enclosing characters in the string and are trying to write to the temp file.

As I can see that you have a lot of fields, and I am guessing some of them can have fairly long strings.
Are you using the "Escape enclosure characters when found" on any of the large fields?

A dirty fix would be to increase the stack this can be done by adding "-Xss40m" to the options


GitHub link: https://github.com/apache/hop/discussions/5525#discussioncomment-13773666

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org