Git Product home page Git Product logo

Comments (8)

mithkr avatar mithkr commented on July 21, 2024 1

OK, thanks. With you latest fix acf47d3 for 0.1.12 it is working and issue can be closed

from decima.

REDxEYE avatar REDxEYE commented on July 21, 2024

@mithkr Can you please provide file path for file that causes crash?

from decima.

mithkr avatar mithkr commented on July 21, 2024

models/characters/humans/aloy/animation/parts/aloy_ct_a_lx.core
grafik

from decima.

ShadelessFox avatar ShadelessFox commented on July 21, 2024

Works for me against the latest version (0.1.12). Can you try that version too?

from decima.

mithkr avatar mithkr commented on July 21, 2024

Forget to mentioned, that 0.1.12 has an additional issue for which I have a fix (see diff at the end) and then stumbled over that other issue introduced with 0.1.10:

21:19:25.660 [AWT-EventQueue-0] ERROR com.shade.platform.Launcher - Unhandled exception
java.lang.RuntimeException: java.lang.IllegalArgumentException: Object is not an instance of GGUUID
        at com.shade.decima.ui.data.viewer.model.ModelViewerPanel.lambda$new$1(ModelViewerPanel.java:78)
        at com.shade.platform.ui.dialogs.ProgressDialog$1.doInBackground(ProgressDialog.java:37)
        at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalArgumentException: Object is not an instance of GGUUID
        at com.shade.decima.model.rtti.RTTIUtils.uuidToString(RTTIUtils.java:14)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.exportHZDMeshData(DMFExporter.java:1049)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.regularSkinnedMeshResourceToModel(DMFExporter.java:991)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.toModel(DMFExporter.java:487)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.lodMeshResourceToModel(DMFExporter.java:850)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.exportLodMeshResource(DMFExporter.java:395)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.exportResource(DMFExporter.java:146)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.export(DMFExporter.java:126)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.export(DMFExporter.java:113)
        at com.shade.decima.ui.data.viewer.model.ModelViewerPanel.export(ModelViewerPanel.java:144)
        at com.shade.decima.ui.data.viewer.model.ModelViewerPanel.lambda$new$1(ModelViewerPanel.java:75)
        ... 7 common frames omitted
java.lang.RuntimeException: java.lang.IllegalArgumentException: Object is not an instance of GGUUID
        at com.shade.decima.ui.data.viewer.model.ModelViewerPanel.lambda$new$1(ModelViewerPanel.java:78)
        at com.shade.platform.ui.dialogs.ProgressDialog$1.doInBackground(ProgressDialog.java:37)
        at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalArgumentException: Object is not an instance of GGUUID
        at com.shade.decima.model.rtti.RTTIUtils.uuidToString(RTTIUtils.java:14)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.exportHZDMeshData(DMFExporter.java:1049)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.regularSkinnedMeshResourceToModel(DMFExporter.java:991)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.toModel(DMFExporter.java:487)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.lodMeshResourceToModel(DMFExporter.java:850)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.exportLodMeshResource(DMFExporter.java:395)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.exportResource(DMFExporter.java:146)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.export(DMFExporter.java:126)
        at com.shade.decima.ui.data.viewer.model.DMFExporter.export(DMFExporter.java:113)
        at com.shade.decima.ui.data.viewer.model.ModelViewerPanel.export(ModelViewerPanel.java:144)
        at com.shade.decima.ui.data.viewer.model.ModelViewerPanel.lambda$new$1(ModelViewerPanel.java:75)
        ... 7 more
--- a/modules/decima-ui/src/main/java/com/shade/decima/ui/data/viewer/model/DMFExporter.java
+++ b/modules/decima-ui/src/main/java/com/shade/decima/ui/data/viewer/model/DMFExporter.java
@@ -1046,7 +1046,7 @@ public class DMFExporter extends BaseModelExporter implements ModelExporter {
                         }
 
                         final String dataSourceLocation = dataSource.location.substring(dataSource.location.indexOf(":") + 1);
-                        buffer = createDataBuffer(dataSourceLocation + "_" + RTTIUtils.uuidToString(streamObj.obj("Hash")),
+                        buffer = createDataBuffer(dataSourceLocation + "_" + streamObj.obj("Hash").toString(),
                             dataSource, vertexStreamOffset, stride * vertices.vertexCount);
                         resourceLength = dataSource.length;
 
@@ -1092,7 +1092,7 @@ public class DMFExporter extends BaseModelExporter implements ModelExporter {
                 } else {
                     final HZDDataSource dataSource = indices.dataSource.cast();
                     final String dataSourceLocation = dataSource.location.substring(dataSource.location.indexOf(":") + 1);
-                    buffer = createDataBuffer(dataSourceLocation + "_" + RTTIUtils.uuidToString(indices.hash), dataSource, dataSource.getOffset(), indices.getIndexSize() * indices.indexCount);
+                    buffer = createDataBuffer(dataSourceLocation + "_" + indices.hash.toString(), dataSource, dataSource.getOffset(), indices.getIndexSize() * indices.indexCount);
                 }
                 final DMFBufferView bufferView = new DMFBufferView(scene.buffers.indexOf(buffer), 0, indices.getIndexSize() * indices.indexCount);
                 primitive.setIndexBufferView(bufferView, scene);

from decima.

ShadelessFox avatar ShadelessFox commented on July 21, 2024

I just fixed this issue in acf47d3 and immediately forgot about it, sorry 😅. Please try building from master.

from decima.

mithkr avatar mithkr commented on July 21, 2024

I have now checked out your latest version and it works. I'm wondering, why I run in the IndexOutOfBoundsException after I tried to fix the 0.1.12 issue with the above mentioned patch. I tried than the older release and found that 0.1.10 was the first failed release and the 0.1.9 the last working. Than I started bisecting the changes between 0.1.9 and 0.1.10 and found this commit c81ef53. If you check out that commit is it working for you?

from decima.

ShadelessFox avatar ShadelessFox commented on July 21, 2024

The exporter was broken in c81ef53 and then later fixed in 128dc9e which is included in 0.1.12

from decima.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.