WARNING: A terminally deprecated method in sun.misc.Unsafe has been called WARNING: sun.misc.Unsafe::objectFieldOffset has been called by scala.runtime.LazyVals$ (file:/C:/Users/user/Documents/Framework%20IA/framework-ia/targets/mleap/verify/tools/sbt/bin/sbt-launch.jar) WARNING: Please consider reporting this to the maintainers of class scala.runtime.LazyVals$ WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release WARNING: A terminally deprecated method in sun.misc.Unsafe has been called WARNING: sun.misc.Unsafe::objectFieldOffset has been called by scala.runtime.LazyVals$ (file:/C:/Users/user/Documents/Framework%20IA/framework-ia/targets/mleap/verify/tools/sbt/bin/sbt-launch.jar) WARNING: Please consider reporting this to the maintainers of class scala.runtime.LazyVals$ WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release WARNING: A restricted method in java.lang.System has been called WARNING: java.lang.System::load has been called by com.sun.jna.Native in an unnamed module (file:/C:/Users/user/.sbt/boot/scala-2.12.21/org.scala-sbt/sbt/1.12.5/jna-5.12.0.jar) WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module WARNING: Restricted methods will be blocked in a future release unless native access is enabled [info] welcome to sbt 1.12.5 (Oracle Corporation Java 24.0.1) [info] loading settings for project repo-build from plugins.sbt... [info] loading project definition from C:\Users\user\Documents\Framework IA\framework-ia\targets\mleap\repo\project [info] loading settings for project mleap from build.sbt... [info] loading settings for project mleap-base from build.sbt... [info] loading settings for project bundle-ml from build.sbt... [info] loading settings for project bundle-hdfs from build.sbt... [info] loading settings for project mleap-tensor from build.sbt... [info] loading settings for project mleap-core from build.sbt... [info] loading settings for project mleap-runtime from build.sbt... [info] loading settings for project mleap-avro from build.sbt... [info] loading settings for project mleap-spark-base from build.sbt... [info] loading settings for project mleap-spark-testkit from build.sbt... [info] loading settings for project mleap-spark from build.sbt... [info] loading settings for project mleap-spark-extension from build.sbt... [info] loading settings for project mleap-tensorflow from build.sbt... [info] loading settings for project mleap-xgboost-runtime from build.sbt... [info] loading settings for project mleap-xgboost-spark from build.sbt... [info] loading settings for project mleap-serving from build.sbt... [info] loading settings for project mleap-executor from build.sbt... [info] loading settings for project mleap-executor-testkit from build.sbt... [info] loading settings for project mleap-executor-tests from build.sbt... [info] loading settings for project mleap-repository-s3 from build.sbt... [info] loading settings for project mleap-grpc from build.sbt... [info] loading settings for project mleap-grpc-server from build.sbt... [info] loading settings for project mleap-benchmark from build.sbt... [info] loading settings for project mleap-spring-boot from build.sbt... [info] loading settings for project mleap-databricks-runtime-fat from build.sbt... [info] loading settings for project mleap-databricks-runtime from build.sbt... [info] loading settings for project mleap-databricks-runtime-testkit from build.sbt... [info] resolving key references (31183 settings) ... [info] set current project to mleap (in build file:/C:/Users/user/Documents/Framework%20IA/framework-ia/targets/mleap/repo/) [info] Installing the s3:// URLStreamHandler via java.net.URL.setURLStreamHandlerFactory [info] Creating a new Ivy URLHandlerDispatcher to handle s3:// URLs Warning: Tried to extract the base path for relative glob bundle-protobuf\bundle\**\*. To disable this warning, re-run the program with java option, -Dsbt.io.implicit.relative.glob.conversion=allow Warning: Tried to extract the base path for relative glob bundle-protobuf\bundle\**\*. To disable this warning, re-run the program with java option, -Dsbt.io.implicit.relative.glob.conversion=allow Warning: Tried to extract the base path for relative glob bundle-protobuf\bundle\**\*.{java,scala}. To disable this warning, re-run the program with java option, -Dsbt.io.implicit.relative.glob.conversion=allow Warning: Tried to extract the base path for relative glob bundle-protobuf\bundle\**\*.{java,scala}. To disable this warning, re-run the program with java option, -Dsbt.io.implicit.relative.glob.conversion=allow [info] Starting scala interpreter... Welcome to Scala 2.13.18 (Java HotSpot(TM) 64-Bit Server VM, Java 24.0.1). Type in expressions for evaluation. Or try :help. [?2004h>....import ml.combust.mleap.tensorflow.TensorflowModel [?2004h>....import ml.combust.mleap.core.types.TensorType [?2004h>....import ml.combust.mleap.tensor.{DenseTensor, Tensor} [?2004h>....import scala.util.{Try, Success, Failure} [?2004h>....[?2004h>....=== Test A: does TensorflowModel construction/load itself parse the GraphDef eagerly? === [?2004h>....val garbage: Array[Byte] = Array(65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65) [?2004h>....val modelA: ml.combust.mleap.tensorflow.TensorflowModel = TensorflowModel(None,None,List(),List(),None,Some(graph),[B@1068375) [?2004h>....[Test A] TensorflowModel(...) constructed WITHOUT any exception at construction time (garbage modelBytes of 64 bytes) -- confirms MLeap does zero eager validation at load/construction: TensorflowModel(None,None,List(),List(),None,Some(graph),[B@1068375) [?2004h>....[?2004h>.... === Test B: what happens when apply() actually triggers GraphDef.parseFrom + importGraphDef on garbage bytes? === [?2004h>....2026-07-23 10:32:29.561010: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. val resultB: scala.util.Try[Seq[Any]] = Failure(com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.) [?2004h>....[Test B EXCEPTION] com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length. [?2004h>....[?2004h>.... === Test C: same, but with a well-formed EMPTY protobuf (0 bytes) as modelBytes, to see baseline behavior === [?2004h>....val modelC: ml.combust.mleap.tensorflow.TensorflowModel = TensorflowModel(None,None,List(),List(),None,Some(graph),[B@564023b5) [?2004h>....# # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffc6f92f3f7, pid=24760, tid=31724 # # JRE version: Java(TM) SE Runtime Environment (24.0.1+9) (build 24.0.1+9-30) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0.1+9-30, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64) # Problematic frame: # C 0x00007ffc6f92f3f7 # # No core dump will be written. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # C:\Users\user\Documents\Framework IA\framework-ia\targets\mleap\repo\hs_err_pid24760.log [38.154s][warning][os] Loading hsdis library failed # # If you would like to submit a bug report, please visit: # https://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #