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

Crash opening sample grip file in 2017 vision example zip file #784

Closed
nollchr opened this issue Jan 12, 2017 · 28 comments
Closed

Crash opening sample grip file in 2017 vision example zip file #784

nollchr opened this issue Jan 12, 2017 · 28 comments

Comments

@nollchr
Copy link

nollchr commented Jan 12, 2017

Installed latest grip and tried to open the example grip pipeline in the 2017 vision example zip file.

@SamCarlberg
Copy link
Member

How does it crash? Straight to desktop, or does a message pop up?

@nollchr
Copy link
Author

nollchr commented Jan 12, 2017 via email

@nollchr
Copy link
Author

nollchr commented Jan 12, 2017

Thread[Project Open Thread,5,main] threw an exception

Stack Trace:

com.thoughtworks.xstream.mapper.CannotResolveClassException: grip:Pipeline
	at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:81)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)
	at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133)
	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1230)
	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1214)
	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1085)
	at edu.wpi.grip.core.serialization.Project.open(Project.java:118)
	at edu.wpi.grip.core.serialization.Project.open(Project.java:97)
	at edu.wpi.grip.ui.MainWindowController.lambda$openProject$5(MainWindowController.java:204)
	at java.lang.Thread.run(Thread.java:745)

System Info:

Property Name Property
GRIP Version v1.5.1
java.version 1.8.0_101
javafx.version 8.0.101
os.name Windows 10
os.version 10.0
os.arch amd64

@SamCarlberg
Copy link
Member

And does this happen every time you open the example file?

@nollchr
Copy link
Author

nollchr commented Jan 12, 2017 via email

@vanjac
Copy link

vanjac commented Jan 18, 2017

Different versions of GRIP 1.5.1 seem to be generating different, incompatible XML files.

Some versions create a file that starts with <grip:Pipeline>. Other versions create a file that starts with <edu.wpi.grip.core.Pipeline> and only work with files like that.

@SamCarlberg
Copy link
Member

It's a bug with the library we're using to generate and read the XML save files. It defaults to use class names like edu.wpi.grip.core.Pipeline, but we have it set up to use more general identifiers (grip:Pipeline) so moving or renaming classes internally won't break save files.

@nollchr has had this problem before. Since he's the only person who's experienced this, there's something weird going on in his computer that causes the XML library to do this.

@nollchr
Copy link
Author

nollchr commented Jan 18, 2017 via email

@vanjac
Copy link

vanjac commented Jan 18, 2017

What causes some installations to behave differently from others?

@vanjac
Copy link

vanjac commented Jan 18, 2017

We have 2 people with the problem

@SamCarlberg
Copy link
Member

Try waiting 5-10 seconds after launching GRIP and see if this still happens.

@vanjac
Copy link

vanjac commented Jan 18, 2017

Doesn't work

@SamCarlberg
Copy link
Member

Can you upload the save file to a gist and share it here?

@vanjac
Copy link

vanjac commented Jan 18, 2017

@JLLeitschuh
Copy link
Member

That explains the problem... The absolute paths are being used instead of the alias.

@SamCarlberg
Copy link
Member

@vanjac can you zip and upload the entire C:\Users\<User>\AppData\GRIP folder from a computer that's experiencing this? Something's most likely weird with the install of GRIP and I'd like to take a look.

@vanjac
Copy link

vanjac commented Jan 19, 2017

I will ask one of the people...

Another problem: after the exception occurs, GRIP completely freezes. Even if this gets fixed it seems like there's a problem with exception handling.

@shipshupe
Copy link

I'm one of the people, can upload later this evening

@SamCarlberg
Copy link
Member

Great.

RE: the freezes. Can you open a separate issue detailing what exactly you did to make it crash?

@vanjac
Copy link

vanjac commented Jan 19, 2017

There's a 10 MB file limit, and the zipped file is 100 MB. Are there specific files that we could upload instead of the whole thing?

@SamCarlberg
Copy link
Member

No, I need the whole install. You could use google drive and share a link.

@Tadtiger13
Copy link

Here you go: https://drive.google.com/file/d/0B2i21SMA63Y3LXN5UUQ0RlJkbHc/view?usp=sharing. I had put it in Program Files instead of AppData.

@SamCarlberg
Copy link
Member

I think that archive is corrupted. 7zip says it's a zip archive, not a 7z, and opening it as either is unsuccessful.

@Tadtiger13
Copy link

I think Google Drive freaked when I uploaded it with drag-and-drop. This link should work: https://drive.google.com/open?id=0B2i21SMA63Y3Y19WQVNMWDdoZVU

@SamCarlberg
Copy link
Member

Definitely not a problem with the install. I didn't encounter your problem using your install.

Are there any user account restrictions?

@nollchr do the other laptops have this problem?

@shipshupe
Copy link

no restrictions to my knowledge, can try uninstall/reinstall

@shipshupe
Copy link

shipshupe commented Jan 19, 2017

ah, the test file that was uploaded does work on my computer but this one initiates the crash (even after uninstall/reinstall of latest release):
crash_test.zip
Thread[Project Open Thread,5,main] threw an exception

Stack Trace:

com.thoughtworks.xstream.mapper.CannotResolveClassException: grip:Pipeline
	at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:81)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
	at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)
	at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133)
	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1230)
	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1214)
	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1085)
	at edu.wpi.grip.core.serialization.Project.open(Project.java:118)
	at edu.wpi.grip.core.serialization.Project.open(Project.java:97)
	at edu.wpi.grip.ui.MainWindowController.lambda$openProject$5(MainWindowController.java:204)
	at java.lang.Thread.run(Thread.java:745)

System Info:

Property Name Property
GRIP Version v1.5.1
java.version 1.8.0_101
javafx.version 8.0.101
os.name Windows 10
os.version 10.0
os.arch amd64

@SamCarlberg
Copy link
Member

crash_test.grip still works with the install that @Tadtiger13 shared.

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

6 participants