Skip to content

Old pack file were not replaced correctly #155

Description

@qpshot

Windows, v4.13

[CliBatchApp] Start processing atlases: cursors
[SystemUtils] Recognized system configuration is Windows (x64)
Packing is started for "cursors"
PackingWriting 512x128: E:\path\cursors.libgdx2.png
[text-red]Exception occurred:[] A region with the name "file_cursor" has already been packed: file_cursor
[text-red]Stack trace:[]
com.badlogic.gdx.utils.GdxRuntimeException: A region with the name "file_cursor" has already been packed: file_cursor
        at com.badlogic.gdx.tools.texturepacker.TexturePacker.writePackFile(TexturePacker.java:354)
        at com.badlogic.gdx.tools.texturepacker.TexturePacker.pack(TexturePacker.java:182)
        at com.crashinvaders.texturepackergui.controllers.packing.processors.PackingProcessor.performPacking(PackingProcessor.java:66)
        at com.crashinvaders.texturepackergui.controllers.packing.processors.PackingProcessor.processPackage(PackingProcessor.java:42)
        at com.crashinvaders.texturepackergui.utils.packprocessing.CompositePackProcessor.processPackage(CompositePackProcessor.java:20)
        at com.crashinvaders.texturepackergui.utils.packprocessing.PackProcessingManager.lambda$execute$0(PackProcessingManager.java:58)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:835)

The problem seems to be with the expansion name. I used *.libgdx.atlas. If I remove extension or just use .atlas, it don't get error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    crash reportCrash reports sent from a built-in issue constructor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions