Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by EigenPuff · Apr 04, 2011 at 11:18 PM · crashmacosxbatchmode

Unity3d crashes in batchmode from a null string

Howdy all, I've got an interesting one for you.

I'm working on creating an continuous integration / automated deployment server for our game using Hudson to manage the automation. The way it works is that we have an ant script that hudson will run every hour or so, tell unity to update the project through the asset server, and then start a batchmode build.

However, I'm not even getting that far. It turns out that if I try to launch Unity batchmode (without even doing anything else) from within Hudson, it immediately dies with:

[echo] Building Unity project.
[echo] /Applications/Unity/Unity.app/Contents/MacOS/Unity -batchmode -quit -projectPath /workspace/hudson/jobs/DailyBuild/workspace/project/ -executeMethod BuildEditor.Build
[exec] terminate called after throwing an instance of 'std::logic_error'
[exec]   what():  basic_string::_S_construct NULL not valid

Which, after a lot of researching I have come to find means that somebody tried to assign a null to a std::string, and which might have something to do with missing environment parameters that Unity assumes is there.

Every other attempt to isolate the problem by running Unity3d in batchmode succeeds, and calling the ant script directly from outside of hudson also succeeds.

I realize that what I have there might not be enough information straight up to diagnose the problem, so my first question is: what other information do I need to provide to help narrow things down? I'll start with the fact that I'm new to MacOSX, so I've already run afoul permissions problems and will probably do so again.

Thanks!

Details:

Unity Version: 3.30f4

Operating System: MacOSX 1.6.4

Hudson Version: 1.396

Tomcat: 7.0.8

Ant 1.7.1

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by EigenPuff · Apr 05, 2011 at 05:42 PM

I let our company IT Ninja bang on it for a bit and it turns out that it's an artifact of running Tomcat/Hudson under launchctl as a Daemon. If we launch the whole thing from a shell instead of as a service, then everything works well.

A theory that our IT Ninja is looking into is that it might be related having no terminal display context to use, but it hasn't been verified yet.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image eheimburg · Jul 01, 2013 at 08:07 AM 0
Share

Did you ever find a way to make it run as a service?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Mac Symbol not found: _pthread_attr_set_qos_class_np Crash 0 Answers

Running Mac Standalone Player In Batchmode 1 Answer

When I create a script on mac, unity crashes! 1 Answer

[SOLVED] Unity 5.3.1 MacOS X Build Crashes 1 Answer

MacOS build crashing with SIGABRT error 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges