Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hibImport with too many pictures #30

Open
yangboz opened this issue Oct 30, 2016 · 1 comment
Open

hibImport with too many pictures #30

yangboz opened this issue Oct 30, 2016 · 1 comment

Comments

@yangboz
Copy link

yangboz commented Oct 30, 2016

(total number of 25000, throw error at 10256),
Exception in thread "main" java.lang.NullPointerException
at org.hipi.imagebundle.HipiImageBundle.addImage(HipiImageBundle.java:634)
at org.hipi.tools.HibImport.main(HibImport.java:136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

@yangboz
Copy link
Author

yangboz commented Nov 4, 2016

Maybe the root cause is here:

BufferedInputStream bufferedInputStream = new BufferedInputStream(inputStream);


> bufferedInputStream.mark(Integer.MAX_VALUE); // 100MB

    HipiImageHeader header = decoder.decodeHeader(bufferedInputStream);
    if (metaData != null) {
      header.setMetaData(metaData);
    }
    bufferedInputStream.reset();
    addImage(header, bufferedInputStream);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant