-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building Play Bundle throws ThreadAbortException #102
Comments
Hi @joonjoonjoon, thanks for reporting this issue. I just tried a build while the Editor was unfocused and wasn't able to reproduce the error. What operating system are you using? What version of Unity are you using? |
macOS on an M1, using Unity 2020 LTS
…On Fri, Apr 30, 2021 at 5:44 PM Nathaniel Williams ***@***.***> wrote:
Hi @joonjoonjoon <https://github.com/joonjoonjoon>, thanks for reporting
this issue.
I just tried a build while the Editor was unfocused and wasn't able to
reproduce the error.
What operating system are you using? What version of Unity are you using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIJJK645PO5EZBJALM3HZ3TLLT77ANCNFSM4344L4VQ>
.
|
My workaround did not work, I am still getting ThreadAbort errors when building, and the result is that the bundle is not signed and the progress window shows me "Importing Assets" and never finishes. The debug line above this reads "Signing bundle..."
|
I wasn't able to reproduce this on an Intel Mac with Unity 2020.3.3f1. Since you mentioned that this may be due to the Editor not having focus, I tried adding the following code to
I found that even when I opened another program while the build was running and saw I unfortunately don't have an M1 Mac to test on. |
Yes, I believe you are right and my original assumption that this was related was wrong.
It might be an M1 specific issue then?
|
Hi, I have the same problem, For infomation, I use Unity 2021.1.3f1 on Windows 10 [EDIT] |
Hi! I have the same problem, Windows10, Unity 2020.3, definitely not an M1 issue. In my case, I believe the problem is that when I use This theory is somehow confirmed by the fact that everything works fine if I use @binouze May I ask for more details on how exactly did you solve this? Are you using the static Action instead of OnPostprocessBuild to 'manually' know when the build is ready? @thanwah It would be nice to have a |
@davidejones88 Yes, that's it. |
@binouze Yes, thanks! It worked like a charm to solve the post-process issue.
@thanwah This idea from @binouze should be really taken into consideration for next updates! |
When trying to build my app through the Google > Build App Bundle command in Unity, it often does not reach signing stage, and throws an error
I think using EditorApplication.Update (in AppBundleBuilder, line 336) as a loop cycle for the postbuild stuff is really bad, since it requries that I have the Editor focused, or the script will stall on each step until the editor was focused.
I added an extra line to try and make sure it doesn't stall, and after that my build started getting to the signing stage more frequently, but I'm not sure this is a real solution...
SceneView.duringSceneGui += (x) => {HandleUpdate();};
The text was updated successfully, but these errors were encountered: