Project

General

Profile

Actions

Bug #17791

closed

Ractor exception when using Nokogiri

Added by tomanderson (Thomas Ender) about 3 years ago. Updated about 3 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
[ruby-core:103345]

Description

Parsing xml using nokogiri:

  doc = Nokogiri.XML('<foo><bar /></foo>', nil, 'EUC-JP')

Suppose I want to parse 4 xmls with 4 ractors, it will raise an unsafe exception:

Ractor::UnsafeError: ractor unsafe method called from not main ractor

the ruby version is 3.0.1.

I wonder if there is any way to avoid this.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0