Coder Social home page Coder Social logo

jmatio's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jmatio's Issues

Exception while parsing fig files

Are figures supported? I am getting the following exception when trying to parse .fig files with JMatIO through Apache Tika:

Exception in thread "main" org.apache.tika.exception.TikaException: Error parsing Matlab file with MatParser
    at org.apache.tika.parser.mat.MatParser.parse(MatParser.java:128)
    at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:256)
    at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:256)
    at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
    at org.apache.tika.cli.TikaCLI$OutputType.process(TikaCLI.java:146)
    at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:440)
    at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:116)
Caused by: com.jmatio.io.MatlabIOException: Incorrect matlab array class: function_handle
    at com.jmatio.io.MatFileReader.readMatrix(MatFileReader.java:929)
    at com.jmatio.io.MatFileReader.readMatrix(MatFileReader.java:639)
    at com.jmatio.io.MatFileReader.readMatrix(MatFileReader.java:620)
    at com.jmatio.io.MatFileReader.readMatrix(MatFileReader.java:620)
    at com.jmatio.io.MatFileReader.readMatrix(MatFileReader.java:620)
    at com.jmatio.io.MatFileReader.readMatrix(MatFileReader.java:620)
    at com.jmatio.io.MatFileReader.readData(MatFileReader.java:515)
    at com.jmatio.io.MatFileReader.readData(MatFileReader.java:498)
    at com.jmatio.io.MatFileReader.read(MatFileReader.java:298)
    at com.jmatio.io.MatFileReader.<init>(MatFileReader.java:154)
    at com.jmatio.io.MatFileReader.<init>(MatFileReader.java:130)
    at org.apache.tika.parser.mat.MatParser.parse(MatParser.java:66)
    ... 6 more

The line in master that's throwing the exception is https://github.com/codemercenary/JMatIO/blob/master/src/main/java/ca/mjdsystems/jmatio/io/MatFileReader.java#L1287. You can grab a sample fig file from this zip file. Here is the relevant Tika JIRA issue.

Jmatio reads large file exceptions

jmatio-1.0

Exception in thread "main" java.lang.IllegalArgumentException: Negative size
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:865)
at com.jmatio.io.MatFileReader.read(MatFileReader.java:287)
at com.jmatio.io.MatFileReader.(MatFileReader.java:154)
at com.jmatio.io.MatFileReader.(MatFileReader.java:102)
at com.hw.parse.prob.tocassandra.Test.main(Test.java:23)

ๅ›พ็‰‡

prob_20200913_12.mat file size is 3.11GB

How can I solve this problem? Thank you

Problems with Java 11

Hi,
I have been using JMatIO successfully with Java 8, however I recently attempted to transition to Java 11 and am now getting this error

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jmatio.io.MatFileReader$1 (file: /.m2/repository/com/diffplug/matsim/matfilerw/3.0.1/matfilerw-3.0.1.jar) to method java.nio.DirectByteBuffer.cleaner()
WARNING: Please consider reporting this to the maintainers of com.jmatio.io.MatFileReader$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/Cleaner
at com.jmatio.io.MatFileReader$1.run(MatFileReader.java:691)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.jmatio.io.MatFileReader.clean(MatFileReader.java:684)
at com.jmatio.io.MatFileReader.read(MatFileReader.java:389)
at com.jmatio.io.MatFileReader.read(MatFileReader.java:313)
at com.jmatio.io.MatFileReader.(MatFileReader.java:174)
at com.jmatio.io.MatFileReader.(MatFileReader.java:150)

I didn't know if anyone else has looked into this. Thanks

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.