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

Schematic export crash #21

Closed
HakkaTjakka opened this issue Jun 5, 2020 · 3 comments
Closed

Schematic export crash #21

HakkaTjakka opened this issue Jun 5, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@HakkaTjakka
Copy link

After getting missing .dll files installing some .net stuff:

D:\Downloads\FileToVox-v1.9.3>filetovox --i test.schematic --o hoppa.vox
[INFO] Specified input path: test.schematic
[INFO] Specified output path: hoppa.vox
[INFO] Specified increase size: 1
[INFO] Specified output path: D:\Downloads\FileToVox-v1.9.3\hoppa.vox
[LOG] Started to read config.txt for loading blocks colors
[INFO] Loaded blocks: 452
[LOG] Done.
System.IO.EndOfStreamException: Attempted to read past the end of the stream.
at fNbt.NbtByteArray.ReadTag(NbtBinaryReader readStream)
at fNbt.NbtCompound.ReadTag(NbtBinaryReader readStream)
at fNbt.NbtFile.LoadFromStreamInternal(Stream stream, TagSelector tagSelector)
at fNbt.NbtFile.LoadFromStream(Stream stream, NbtCompression compression, TagSelector selector)
at fNbt.NbtFile.LoadFromFile(String fileName, NbtCompression compression, TagSelector selector)
at fNbt.NbtFile..ctor(String fileName)
at FileToVox.Converter.SchematicToSchematic.WriteSchematic() in E:\Documents\FileToVox\SchematicToVoxCore\Converter\SchematicToSchematic.cs:line 33
at FileToVox.Program.SchematicToVox(AbstractToSchematic converter, String outputPath) in E:\Documents\FileToVox\SchematicToVoxCore\Program.cs:line 292
at FileToVox.Program.ProcessFile() in E:\Documents\FileToVox\SchematicToVoxCore\Program.cs:line 245

@HakkaTjakka
Copy link
Author

Other:
D:\Downloads\FileToVox-v1.9.3>filetovox --i hoppa.schematic --o hoppa.vox
[INFO] Specified input path: hoppa.schematic
[INFO] Specified output path: hoppa.vox
[INFO] Specified increase size: 1
[INFO] Specified output path: D:\Downloads\FileToVox-v1.9.3\hoppa.vox
[LOG] Started to read config.txt for loading blocks colors
[INFO] Loaded blocks: 452
[LOG] Done.
[LOG] Started to read all blocks of the schematic...
System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) (Object reference not set to an instance of an object.) (Object reference not set to an instance of an object.) (Object reference not set to an instance of an object.) (Object reference not set to an instance of an object.)
---> System.NullReferenceException: Object reference not set to an instance of an object.
at FileToVox.Converter.SchematicToSchematic.<>c__DisplayClass10_0.b__0(Int32 y) in E:\Documents\FileToVox\SchematicToVoxCore\Converter\SchematicToSchematic.cs:line 159
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source) at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica1.ExecuteAction(Boolean& yieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure)
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source) at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally)
at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action1 body) at FileToVox.Converter.SchematicToSchematic.GetBlocks(RawSchematic rawSchematic) in E:\Documents\FileToVox\SchematicToVoxCore\Converter\SchematicToSchematic.cs:line 173 at FileToVox.Converter.SchematicToSchematic.LoadSchematic(NbtFile nbtFile) in E:\Documents\FileToVox\SchematicToVoxCore\Converter\SchematicToSchematic.cs:line 78 at FileToVox.Converter.SchematicToSchematic.WriteSchematic() in E:\Documents\FileToVox\SchematicToVoxCore\Converter\SchematicToSchematic.cs:line 34 at FileToVox.Program.SchematicToVox(AbstractToSchematic converter, String outputPath) in E:\Documents\FileToVox\SchematicToVoxCore\Program.cs:line 292 at FileToVox.Program.ProcessFile() in E:\Documents\FileToVox\SchematicToVoxCore\Program.cs:line 245 ---> (Inner Exception #1) System.NullReferenceException: Object reference not set to an instance of an object. at FileToVox.Converter.SchematicToSchematic.<>c__DisplayClass10_0.<GetBlocks>b__0(Int32 y) in E:\Documents\FileToVox\SchematicToVoxCore\Converter\SchematicToSchematic.cs:line 159 at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica1.ExecuteAction(Boolean& yieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---

---> (Inner Exception #2) System.NullReferenceException: Object reference not set to an instance of an object.
at FileToVox.Converter.SchematicToSchematic.<>c__DisplayClass10_0.b__0(Int32 y) in E:\Documents\FileToVox\SchematicToVoxCore\Converter\SchematicToSchematic.cs:line 159
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source) at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---

---> (Inner Exception #3) System.NullReferenceException: Object reference not set to an instance of an object.
at FileToVox.Converter.SchematicToSchematic.<>c__DisplayClass10_0.b__0(Int32 y) in E:\Documents\FileToVox\SchematicToVoxCore\Converter\SchematicToSchematic.cs:line 159
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source) at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---

---> (Inner Exception #4) System.NullReferenceException: Object reference not set to an instance of an object.
at FileToVox.Converter.SchematicToSchematic.<>c__DisplayClass10_0.b__0(Int32 y) in E:\Documents\FileToVox\SchematicToVoxCore\Converter\SchematicToSchematic.cs:line 159
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source) at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---

@Zarbuz
Copy link
Owner

Zarbuz commented Jun 6, 2020

Can you provide me your schematic which failed ? All my tests with schematic are done with Mineways.

@Zarbuz Zarbuz changed the title Huh? Schematic export crash Jun 6, 2020
@Zarbuz Zarbuz added the bug Something isn't working label Jun 7, 2020
@Zarbuz
Copy link
Owner

Zarbuz commented Jul 6, 2020

Ok after more investigation it seems that your are trying to import a new format of schematic which obviously seems to be not supported.
I will try to support the new format in a future release of FileToVox.

@Zarbuz Zarbuz closed this as completed Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants