Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2301

Save of solution files fails for large tsp input

    XMLWordPrintable

Details

    • Undefined
    • NEW
    • NEW

    Description

      When I import a .png into TSP , let the planner in the examples solve it and then save as solution, saving either fails or creates incomplete xml (see attachment)

      For a .png which results in >14k locations, the following stack trace shows (which goes on forever)

      [WARNING] 
      java.lang.StackOverflowError
       at com.thoughtworks.xstream.mapper.AttributeMapper.shouldLookForSingleValueConverter (AttributeMapper.java:105)
       at com.thoughtworks.xstream.mapper.AttributeMapper.getConverterFromItemType (AttributeMapper.java:95)
       at com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemType (MapperWrapper.java:210)
       at com.thoughtworks.xstream.mapper.EnumMapper.getConverterFromItemType (EnumMapper.java:84)
       at com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemType (MapperWrapper.java:210)
       at com.thoughtworks.xstream.mapper.LocalConversionMapper.getConverterFromItemType (LocalConversionMapper.java:65)
       at com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemType (MapperWrapper.java:210)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$1.visit (AbstractReflectionConverter.java:119)
       at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields (PureJavaReflectionProvider.java:150)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java:101)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java:90)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java:68)
       at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java:58)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:83)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField (AbstractReflectionConverter.java:270)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField (AbstractReflectionConverter.java:174)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java:262)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java:90)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java:68)
       at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java:58)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:83)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField (AbstractReflectionConverter.java:270)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField (AbstractReflectionConverter.java:174)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java:262)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java:90)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java:68)
       at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java:58)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:83)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField (AbstractReflectionConverter.java:270)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField (AbstractReflectionConverter.java:174)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java:262)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java:90)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java:68)
       at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java:58)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:83)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField (AbstractReflectionConverter.java:270)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField (AbstractReflectionConverter.java:174)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java:262)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java:90)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java:68)
       at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java:58)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:83)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField (AbstractReflectionConverter.java:270)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField (AbstractReflectionConverter.java:174)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java:262)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java:90)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java:68)
       at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java:58)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:83)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField (AbstractReflectionConverter.java:270)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField (AbstractReflectionConverter.java:174)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java:262)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java:90)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java:68)
       at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java:58)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:83)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField (AbstractReflectionConverter.java:270)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField (AbstractReflectionConverter.java:174)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java:262)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java:90)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java:68)
       at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java:58)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:83)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField (AbstractReflectionConverter.java:270)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField (AbstractReflectionConverter.java:174)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java:262)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java:90)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java:68)
       at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java:58)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:83)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField (AbstractReflectionConverter.java:270)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField (AbstractReflectionConverter.java:174)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java:262)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java:90)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java:68)
       at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java:58)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:83)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField (AbstractReflectionConverter.java:270)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField (AbstractReflectionConverter.java:174)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java:262)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java:90)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java:68)
       at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java:58)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:83)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField (AbstractReflectionConverter.java:270)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField (AbstractReflectionConverter.java:174)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java:262)
       at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java:90)
       at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java:68)
       at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java:58)
      

      Attachments

        Issue Links

          Activity

            People

              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              pilhuhn Heiko Rupp
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: