Skip to content

JVM crash / fatal error #92

Closed
Closed

Description

@edigonzales

I have a simple pipeline that crashes the jvm

String json = """
{
    "pipeline": [
        {
            "type": "readers.las",
            "filename": "%s"
        },
        {
            "type": "writers.las",
            "filename": "%s",
            "compression": "laszip"
        }
    ]
}
            """.formatted(inputFile, outputFile);    
Pipeline pipeline = new Pipeline(json, LogLevel.Error());
pipeline.execute(); 
pipeline.close();

Error is like:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000012cad1ec2, pid=7207, tid=7683
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.10+7 (17.0.10+7) (build 17.0.10+7)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (17.0.10+7, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-amd64)
# Problematic frame:
# C  [libpdalcpp.16.2.0.dylib+0x342ec2]  pdal::PipelineManager::validateStageOptions() const+0x22
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/stefan/sources/p-agi_lidar_2023/hs_err_pid7207.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Error report file is attached. Any idea what goes wrong? I'm on an older Intel Mac running macOS Monterey (12.7.4). Dependencies used are: io.pdal:pdal-native:2.6.2and io.pdal:pdal_3:2.6.2. I installed the pdal binaries and libs with conda. Running PDAL in the terminal works perfectly.

hs_err_pid7207.log

Activity

  1. pomadchin commented on Mar 15, 2024

    @pomadchin
    Collaborator

    Hi @edigonzales, is there a reproducible example to try?

  2. edigonzales commented on Mar 15, 2024

    @edigonzales
    Author

    @pomadchin In the zip file, there is the java class and a csv with 2 lines containing urls to a zipped las file. The file will be downloaded, unzipped and then converted to a laz file with pdal. You can run it with jbang:

    curl -Ls https://sh.jbang.dev | bash -s - preprocess.java

    Archive.zip

  3. pomadchin commented on Mar 18, 2024

    @pomadchin
    Collaborator

    Hi @edigonzales, the pipeline.initialize() step is missing. The crash happens due to the not initialized pipeline execution.

    var pipeline = new Pipeline(json, LogLevel.Error());
    pipeline.initialize(); // <- this is the missing piece
    pipeline.execute(); 
    pipeline.close();

    Check the example from the README.md or from the examples project

  4. pomadchin commented on Mar 18, 2024

    @pomadchin
    Collaborator

    There is a PR now as well to make initialize private and ensure it's called in the public Pipeline constructor: #94

  5. edigonzales commented on Mar 18, 2024

    @edigonzales
    Author

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy