Uploaded image for project: 'SongKong'
  1. SONGKONG-1548

SongChanges section of Report running out of memory on large folder containing all files

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.8
    • Fix Version/s: 5.9
    • Component/s: Matching
    • Labels:
      None
    • Forum Username:
      rickWolfer

      Description

      SongChanges section of Report running out of memory on large folder contaning all files
      28/08/2018 02.53.34:MDT:SongCache:findCoverImageByDataKey:SEVERE: Java heap space
      java.lang.OutOfMemoryError: Java heap space
      at java.base/java.util.Arrays.copyOf(Unknown Source)
      at java.base/java.io.ByteArrayOutputStream.grow(Unknown Source)
      at java.base/java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)
      at java.base/java.io.ByteArrayOutputStream.write(Unknown Source)
      at org.hibernate.type.descriptor.java.DataHelper.extractBytes(DataHelper.java:187)
      at org.hibernate.type.descriptor.java.PrimitiveByteArrayTypeDescriptor.wrap(PrimitiveByteArrayTypeDescriptor.java:125)
      at org.hibernate.type.descriptor.java.PrimitiveByteArrayTypeDescriptor.wrap(PrimitiveByteArrayTypeDescriptor.java:42)
      at org.hibernate.type.descriptor.sql.BlobTypeDescriptor$1.doExtract(BlobTypeDescriptor.java:65)
      at org.hibernate.type.descriptor.sql.BasicExtractor.extract(BasicExtractor.java:64)
      at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:267)
      at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:263)
      at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:253)
      at org.hibernate.type.AbstractStandardBasicType.hydrate(AbstractStandardBasicType.java:338)
      at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2969)
      at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1696)
      at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1628)
      at org.hibernate.loader.Loader.getRow(Loader.java:1515)
      at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:726)
      at org.hibernate.loader.Loader.processResultSet(Loader.java:953)
      at org.hibernate.loader.Loader.doQuery(Loader.java:921)
      at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:355)
      at org.hibernate.loader.Loader.doList(Loader.java:2554)
      at org.hibernate.loader.Loader.doList(Loader.java:2540)
      at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2370)
      at org.hibernate.loader.Loader.list(Loader.java:2365)
      at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:497)
      at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:387)
      at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:236)
      at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1300)
      at org.hibernate.internal.QueryImpl.list(QueryImpl.java:103)
      at org.hibernate.internal.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:966)
      at com.jthink.songkong.db.SongCache.findCoverImageByDataKey(SongCache.java:397)
      28/08/2018 02.53.37:MDT:SongChangesDetailSection:outputSongChangedDetails:SEVERE: Unable to do complete SongChanges Report:Java heap space
      java.lang.OutOfMemoryError: Java heap space
      28/08/2018 02.53.37:MDT:Errors:addError:SEVERE: Adding Error:Unable to do complete SongChanges Report:Java heap space
      java.lang.Exception
      at com.jthink.songkong.analyse.general.Errors.addError(Errors.java:28)
      at com.jthink.songkong.reports.fixsongsreport.SongChangesDetailSection.outputSongChangedDetails(SongChangesDetailSection.java:268)
      at com.jthink.songkong.reports.FixSongsReport.outputSongChangedDetails(FixSongsReport.java:1020)
      at com.jthink.songkong.reports.FixSongsReportCreator.createReport(FixSongsReportCreator.java:111)
      at com.jthink.songkong.analyse.toplevelanalyzer.FixSongsController.start(FixSongsController.java:304)
      at com.jthink.songkong.ui.swingworker.FixSongs.doInBackground(FixSongs.java:49)
      at com.jthink.songkong.ui.swingworker.FixSongs.doInBackground(FixSongs.java:18)
      at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
      at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
      at java.desktop/javax.swing.SwingWorker.run(Unknown Source)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.base/java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

            • Reporter:
              ijabz IJabz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: