安装版本是4.2的,日常使用中会使用一些其他版本比如3.8的命令行来处理一些文件,比如批量导入导出,切图。发现有时候会有重新下载版本的问题,但是之前已经下载过能正常打开其他版本。
请问这种情况是在什么情况下发生的?是不是遇到报错后会重新下载版本?看了下会有一些报错处理信息比如版本不对的情况。

正在处理 .\100635\100635.json...
Spine Launcher 4.2.01
Esoteric Software LLC (C) 2013-2022 | http://esotericsoftware.com
Windows 10 Pro amd64 10.0
Waiting for download...

    Related Discussions
    ...

    yianti I'm sorry to hear that you're having problems. Unfortunately, I'm not sure what problem you're referring to. Are you saying that even though you have already downloaded Spine 3.8 and try to run it from the CLI, it may ask you to download the Spine editor? If your situation is that you are only using the latest 3.8 (3.8.99), but you are still being prompted to download when you run Spine via the CLI, that is indeed weird.
    If I understand correctly, could you also tell us what commands you are running?

    感谢回复。
    我的spine安装包是最新的4.2版本,并且从spine的启动界面已经成功下载了3.8的版本和其他版本,并且成功运行。但是当我使用CMD命令行,调用spine3.8(或者其他版本,3.7以上)进行批量导入json或者skel的时候。有时候就会遇到需要重新下载3.8版本软件的问题。这个问题不一定是针对3.8版本,其他版本都遇到过。
    我使用的命令一般为:文件导入: Spine -u 3.8.99 -i xxx -o xxx -r xxx,
    有时候用的批量处理: for /f "usebackq tokens=*" %%i in (dir /s /b *.skel) do Spine...

      yianti Thanks for elaborating! This is really weird. I will try to see if I can reproduce the problem, but it may take some time as I have also been using the CLI recently and have not encountered a similar problem. If you have discovered anything new about the conditions under which the re-download happened, we would appreciate it if you could let us know.

      感谢回复!
      提供2个思路方向以便参考:
      1,遇到不符合版本的文件报错。比如用3.8的版本执行命令,导入了不同于3.8版本导出的文件,这个时候会发生报错。
      2,多进程命令。比如同时在多个不同的文件夹内同时执行多个进程的命令,比如在一个文件夹内进行atlas裁切,另外一个进程执行导入。或者在命令里使用多个进程同时进行,比如每次10个文件一起处理。
      个人猜测2的问题出现错的的几率会更大一些。

        yianti It is the correct behavior to have an error in the first way. You are using -r, this parameter is used to import a skeleton. When importing a skeleton from a Spine project, it is not an error if the version of that Spine project is older than the editor version. (The import will fail if the project is saved in a newer version). However, you mentioned you are importing a json or .skel file, so in this case you need to import using the same version of Spine that was used to export the data. This will be the same result if you try to do it on the editor's UI, regardless of whether you run Spine via the CLI:

        However, it is strange that you have to download the spine editor again because of this error. Does the problem always reproduce when you try to import a .json or .skel file saved in a different version? Or does it only reproduce occasionally?

        ERROR: An error occurred starting 3.7.94: C:\Users\Administrator\Spine\updates\3.7.94
        [error] Update file integrity check failed [0x17].
        at s.cVU.(:632)
        at s.cVU.(:488)
        at s.cVU.(:137)
        at s.cVU.(:486)
        at s.QAf.S(:145)
        at s.QAf.
        (:128)
        at s.QAf.S(
        :72)
        at s.QAf.V(_:29)
        at java.lang.Thread.run(Unknown Source)
        Downloading: Spine 3.7.94 Professional
        Downloading: Spine 3.7.94 Professional
        Downloading: Spine 3.7.94 Professional
        版本不符合的报错应该不会出现重复下载的问题。这个问题应该由于多线程导致的,因为我尝试了同时使用多个线程进行spine的命令操作。当出现报错的时候,就很容易发生这个行为。应该可以确认是跟多线程有关系,因为我重复操作用单线程的时候,就没有发生报错和重复下载的行为。
        因为spine的命令行是单线程,一次处理一个文件,依次处理。为了提高效率,我尝试使用多个线程一起操作,有时候就会发生这样的问题,有时候又是完美工作的。

          yianti Thank you for your reply. I am looking into how to reproduce the problem, so please wait a while for our response.

          yianti I have tried running 16 instances of Spine 3.8.99 with Spine Launcher 4.2.00 and running the command to export a Spine project, but I have not been able to reproduce the problem of being asked to re-download the editor. Could you please provide us via email with the entire script that can reproduce the problem?: contact@esotericsoftware.com