Skip to content

[Bug] "IllegalStateException: Already Closed" when render interlaced #14

@mezhgano

Description

@mezhgano

I'm trying to export interlaced project that always causes exception somewhere around 55.5%

Log:

---- LOG ----
14725 [GlobalThreadPool] INFO Ghostscript - GPL Ghostscript 10.04.0 (2024-09-18)
14730 [GlobalThreadPool] INFO Ghostscript - Copyright (C) 2024 Artifex Software, Inc.  All rights reserved.
14730 [GlobalThreadPool] INFO Ghostscript - This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
14730 [GlobalThreadPool] INFO Ghostscript - see the file COPYING for details.
14764 [GlobalThreadPool] INFO Ghostscript - Processing pages 1 through 1.
14765 [GlobalThreadPool] INFO Ghostscript - Page 1
14953 [GlobalThreadPool] WARNING org.apache.pdfbox.pdmodel.graphics.color.PDICCBased - ICC profile is Perceptual, ignoring, treating as Display class
15101 [GlobalThreadPool] INFO Ghostscript - GPL Ghostscript 10.04.0 (2024-09-18)
15102 [GlobalThreadPool] INFO Ghostscript - Copyright (C) 2024 Artifex Software, Inc.  All rights reserved.
15102 [GlobalThreadPool] INFO Ghostscript - This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
15102 [GlobalThreadPool] INFO Ghostscript - see the file COPYING for details.
15140 [GlobalThreadPool] INFO Ghostscript - Processing pages 1 through 1.
15141 [GlobalThreadPool] INFO Ghostscript - Page 1
3714649 [VideoFrameMaterializer] SEVERE Cinecred - Uncaught exception. Will terminate the program.
java.lang.IllegalStateException: Already closed
	at java.base/jdk.internal.foreign.MemorySessionImpl.alreadyClosed(Unknown Source)
	at java.base/jdk.internal.misc.ScopedMemoryAccess$ScopedAccessError.newRuntimeException(Unknown Source)
	at java.base/jdk.internal.misc.ScopedMemoryAccess.copyMemory(Unknown Source)
	at java.base/jdk.internal.foreign.AbstractMemorySegmentImpl.copy(Unknown Source)
	at java.base/java.lang.foreign.MemorySegment.copy(Unknown Source)
	at java.base/java.lang.foreign.MemorySegment.copy(Unknown Source)
	at com.loadingbyte.cinecred.imaging.Bitmap.blit(Bitmap.kt:353)
	at com.loadingbyte.cinecred.imaging.DeferredVideo$BitmapBackend.obtainStaticInterlacedFrame(DeferredVideo.kt:461)
	at com.loadingbyte.cinecred.imaging.DeferredVideo$BitmapBackend.obtainDynamicInterlacedFrame(DeferredVideo.kt:496)
	at com.loadingbyte.cinecred.imaging.DeferredVideo$BitmapBackend.materializeFrame(DeferredVideo.kt:319)
	at com.loadingbyte.cinecred.delivery.VideoContainerRenderJob.render$lambda$2(VideoContainerRenderJob.kt:135)
	at java.base/java.lang.Thread.run(Unknown Source)

Export Settings:

Actually i export this to ProRes 422 HQ, but switch to PNG because it faster to check if it crash again or not :)

Screenshot 2024-11-03 23-10-40 CineCred_–Delivery–_Cinecred

Last rendered frame (always somewhere around this section):

Render_2 0002135

Projects Archive

CineCred_Exception_Project.zip

I'm tried to figure out what exactly causing this and notice that it only crash if i set Scroll Per Frame [px] to 4 px, but that exactly speed it needed to be... Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions