fair-acc / chart-fx

A scientific charting library focused on performance optimised real-time data visualisation at 25 Hz update rates for data sets with a few 10 thousand up to 5 million data points.
GNU Lesser General Public License v3.0
488 stars 90 forks source link

Am I in the correct developer mode? developer mode for chartfx-chart/: An exception occurred while executing the Java class. Exception in Application start method #646

Closed yezhengli-Mr9 closed 7 months ago

yezhengli-Mr9 commented 7 months ago

Describe the bug A clear and concise description of what the bug is. Please use the issue feature only for actual bugs. If you have usage questions or are unsure if/how a certain functionality is supported in chart-fx please use the q&a secton in the discussions feature or our gitter channel. Am I in the correct developer mode? Developer mode for chartfx-chart/ [No bug any more] To Reproduce Steps to reproduce the behavior. Ideally the problem can be reproduced in the samples provided with chart-fx or by adapting them slightly. Alternatively provide a minimal working example.

  1. on macbook
    git clone -b 11.3.0 git@github.com:fair-acc/chart-fx.git
    git switch -c 11.3.0
  2. copy following folders into own folder location ./src/main/java/io/fair_acc, ./src/main/resources/io/fair_acc #645
    chartfx-chart/src/main/java/io/fair_acc/chartfx
    chartfx-chart/src/main/resources/io/fair_acc/chartfx
  3. <!--        <dependency>-->
    <!--            <groupId>io.fair-acc</groupId>-->
    <!--            <artifactId>chartfx</artifactId>-->
    <!--            <version>11.3.0</version>-->
    <!--        </dependency>-->
        <dependency>
            <groupId>io.fair-acc</groupId>
            <artifactId>dataset</artifactId>
            <version>11.3.0</version>
        </dependency>
        <dependency>
            <groupId>io.fair-acc</groupId>
            <artifactId>math</artifactId>
            <version>11.3.0</version>
        </dependency>
        <dependency>
            <groupId>io.fair-acc</groupId>
            <artifactId>bench</artifactId>
            <version>11.3.0</version>
        </dependency>
  4. while setting up (or setting up <mainClass> in pom.xml)
    mvn compile exec:java -Dexec.mainClass=io.fair_acc.sample.chart.SimpleChartSample
  5. the code went through smoothly as usual #640 when I switch back to
    <dependency>
            <groupId>io.fair-acc</groupId>
            <artifactId>chartfx</artifactId>
            <version>11.3.0</version>
        </dependency>

    Environment:

    • OS: [MacOS Sonoma]
    • Java version:
      java --version
      openjdk 20.0.2 2023-07-18
      OpenJDK Runtime Environment Temurin-20.0.2+9 (build 20.0.2+9)
      OpenJDK 64-Bit Server VM Temurin-20.0.2+9 (build 20.0.2+9, mixed mode, sharing)
    • JavaFx version: [TBA]
    • ChartFx version: [11.3.0]
yezhengli-Mr9 commented 7 months ago

By above "developer mode" steps, feel fail at first step of public Node getChartPanel(final Stage primaryStage) { https://github.com/fair-acc/chart-fx/blob/ed86318c5a1bde23d285633a94860648aee5fb32/chartfx-samples/src/main/java/io/fair_acc/sample/chart/SimpleChartSample.java#L26 and by Intellij tracking of production mode and "developer" mode, Pane.class-> AbstractAxisParameter.java/.class ->LauncherImpl.class throws the Exception.

              try {
                        var4.set(true);
                        Stage var2 = new Stage();
                        StageHelper.setPrimary(var2, true);
                        var12.start(var2);
                    } catch (Throwable var3) {
                        System.err.println("Exception in Application start method");
                        startError = var3;
                        error = true;
                    }

where for https://github.com/fair-acc/chart-fx/blob/ed86318c5a1bde23d285633a94860648aee5fb32/chartfx-chart/src/main/java/io/fair_acc/chartfx/axes/spi/AbstractAxisParameter.java#L140

  1. production code: .m2/repository/io/fair-acc/chartfx/11.3.0/chartfx-11.3.0.jar!/io/fair_acc/chartfx/chart.css
  2. dev code: null