+1
Cannot Reproduce

This message parameter has to be of type: [UNREGISTERED]

hiroaoki 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 24

When executing unity's project on iPhone terminal the following error will occur.

This project imported Bolt and just added the cube object to the scene.

Xcode 9.1 : Unity 2017.1.2.p2  :  Bolt 1.1.3
Xcode Log
2017-11-06 23:51:32.428080+0900 unitytest[11372:4082733] Metal GPU Frame Capture Enabled
2017-11-06 23:51:32.428301+0900 unitytest[11372:4082733] Metal API Validation Disabled
2017-11-06 23:51:32.508098+0900 unitytest[11372:4082733] libMobileGestalt MobileGestaltSupport.m:153: pid 11372 (unitytest) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
2017-11-06 23:51:32.508345+0900 unitytest[11372:4082733] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A10 GPU
Initialize engine version: 2017.1.2p2 (eba6bfec1bb2)
Script error: OnTriggerEnter2D
This message parameter has to be of type: [UNREGISTERED]
The message will be ignored.
 
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoScriptCache.cpp Line: 248)
Script error: OnTriggerExit2D
This message parameter has to be of type: [UNREGISTERED]
The message will be ignored.
 
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoScriptCache.cpp Line: 248)
Script error: OnTriggerStay2D
This message parameter has to be of type: [UNREGISTERED]
The message will be ignored.
 
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoScriptCache.cpp Line: 248)
UnloadTime: 6.062083 ms
Setting up 1 worker threads for Enlighten.
  Thread -> id: 16f347000 -> priority: 1
Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
GOOD, I'M SATISFIED
Satisfaction mark by hiroaoki 3 years ago
Pending Review

Hi hiroaoki, welcome to the community!

Sorry you're experiencing this issue. Let's verify some possible causes:

  1. Have you run AOT pre-build before compiling for iOS? (Tools > Ludiq > AOT Pre-Build)
  2. Do you have a custom script called Collider2D somewhere in your project?

Sorry for my late reply !

  • Have you run AOT pre-build before compiling for iOS? (Tools > Ludiq > AOT Pre-Build)

   No, I have not done it.
   However, when AOT Pre-Build was done, the result was the same.

  • Do you have a custom script called Collider2D somewhere in your project?

   I created a new project and tested it.
   Before importing Bolt, there was not any error in Xcode.
   However, I get an error when building with Bolt imported.

   Of course, I did not add any custom scripts.


Does this error cause actual issues in your game's execution, or is it just a warning?

If this error occurs, it will not operate normally.

The flow that just rotates the cube rotates without problems with the editor, but it does not rotate if it is a real iPhone.

Unfortunately I've found no one else with this warning anywhere, so I had to ask on the Unity Answers website. Hopefully someone will know more about this.

https://answers.unity.com/questions/1433971/this-parameter-has-to-be-of-type-unregistered.html

When updating Unity and Bolt and doing the build, the error message so far has ceased to appear, but Bolt's script is not working properly and the operation set by Flow is not done.
The editor works fine.

Unity 2017.2.0.p1
Bolt 1.2.1

Here is the output of Xcode.

2017-11-24 23:37:58.876625+0900 testunity[24870:9211365] [DYMTLInitPlatform] platform initialization successful
2017-11-24 23:37:58.918365+0900 testunity[24870:9211237] -> registered mono modules 0x100f4aa70
-> applicationDidFinishLaunching()
Player data archive not found at `/var/containers/Bundle/Application/93E77213-B303-482A-A383-296968985AA8/testunity.app/Data/data.unity3d`, using local filesystem
2017-11-24 23:37:59.237359+0900 testunity[24870:9211237] Metal GPU Frame Capture Enabled
2017-11-24 23:37:59.237560+0900 testunity[24870:9211237] Metal API Validation Disabled
2017-11-24 23:37:59.273937+0900 testunity[24870:9211237] libMobileGestalt MobileGestaltSupport.m:153: pid 24870 (testunity) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
2017-11-24 23:37:59.274008+0900 testunity[24870:9211237] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A10 GPU
Initialize engine version: 2017.2.0p2 (dbc2eb12ac98)
Setting up 1 worker threads for Enlighten.
  Thread -> id: 16f287000 -> priority: 1 
UnloadTime: 5.400958 ms

There is no error nor warning in this log. Do you get any console error or warning?

I upgraded MacOS to the latest state and tried the build again, but a message different from the previous one was output.

iPhone7Plus iOS10.3.3

2017-11-25 19:50:49.510120+0900 testunity[25508:9449504] -> registered mono modules 0x10103abd0
-> applicationDidFinishLaunching()
Player data archive not found at `/var/containers/Bundle/Application/1B211CA5-F739-4E33-8568-AE2A62355125/testunity.app/Data/data.unity3d`, using local filesystem
2017-11-25 19:50:51.139026+0900 testunity[25508:9449504] Metal GPU Frame Capture Enabled
2017-11-25 19:50:51.139567+0900 testunity[25508:9449504] Metal API Validation Disabled
2017-11-25 19:50:51.244380+0900 testunity[25508:9449504] libMobileGestalt MobileGestaltSupport.m:153: pid 25508 (testunity) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
2017-11-25 19:50:51.244514+0900 testunity[25508:9449504] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A10 GPU
Initialize engine version: 2017.2.0p2 (dbc2eb12ac98)
2017-11-25 19:51:06.297577+0900 testunity[25508:9449504] [Common] _BSMachError: port d0f; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2017-11-25 19:51:06.299550+0900 testunity[25508:9449504] [Common] _BSMachError: port d0f; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
Setting up 1 worker threads for Enlighten.
  Thread -> id: 16f1f3000 -> priority: 1 
UnloadTime: 1.513666 ms


While building some projects, there were some builds that work on real machines.
However, I do not know what is different from other projects.
The Unity, Bolt versions are the same, and the Flow to rotate the cube is the same.

Can you find out what is wrong if you see a project that works normally and a project that does not work properly?


Log of successful project

2017-11-25 20:39:23.956409+0900 testunity[25611:9464295] [DYMTLInitPlatform] platform initialization successful

2017-11-25 20:39:24.557220+0900 testunity[25611:9464116] -> registered mono modules 0x100ff8d90
-> applicationDidFinishLaunching()
Player data archive not found at `/var/containers/Bundle/Application/332BBFB5-A621-4752-9A21-D8868F58DE0B/testunity.app/Data/data.unity3d`, using local filesystem
2017-11-25 20:39:25.648867+0900 testunity[25611:9464116] Metal GPU Frame Capture Enabled
2017-11-25 20:39:25.649166+0900 testunity[25611:9464116] Metal API Validation Disabled
2017-11-25 20:39:25.780541+0900 testunity[25611:9464116] libMobileGestalt MobileGestaltSupport.m:153: pid 25611 (testunity) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
2017-11-25 20:39:25.780680+0900 testunity[25611:9464116] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A10 GPU
Initialize engine version: 2017.2.0p2 (dbc2eb12ac98)
Setting up 1 worker threads for Enlighten.
  Thread -> id: 16f293000 -> priority: 1 
UnloadTime: 1.319500 ms

As I mentioned in a previous comment, these logs do not seem to contain any error related to Bolt. 

Do you get any error or waning in the Unity console? (Debug.Log(), NOT the build log from Xcode)

The logs output when building with Unity are as follows.

When Bolt is imported into the project, the following error is output.


NullReferenceException: Object reference not set to an instance of an object
UnityEngine.GUILayout.FlexibleSpace () (at /Users/builduser/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayout.cs:282)
Bolt.TypeOptionsPage.OnContentGUI () (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Windows/TypeOptionsPage.cs:87)
Ludiq.Page.DrawContent () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Page.cs:56)
Ludiq.Wizard.OnGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Wizard.cs:103)
Ludiq.WrappedEditorWindow.OnGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/WrappedEditorWindow.cs:41)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:285)
UnityEditor.HostView.Invoke (System.String methodName) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:278)
UnityEditor.HostView.OldOnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:107)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at /Users/builduser/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:127)

These warnings do not seem like they would block Bolt from functioning.

Calling for other users: do you get this error? When exactly? Does it stop Bolt from functioning, or your game from building? 

I need more reports for this one!

I had this warning but it went away after I ran AOT Pre-Build. Fresh project, nothing but Bolt in it.

Thank you for your report!
Did Bolt work without any problems before you pre-built it?

Hiroaoki, could you please send me a project on which this issue happens in private? Either through a private ticket or in a direct message on Discord.

Hi lazlo,
I tried pre-build again.
I was able to confirm the operation on the actual machine safely this time.

It may be because there was a problem with Pre-build method when we tried last time.

Do I need to do Pre-build every time?
Is it okay only at the time of the first build of the project?

You need to pre-build every time before building for an AOT platform, not just at the first build.

Thanks Lazlo !!

Not sure I understand, is your problem fixed now?

Does the error always disappear when you pre-build right before build?

Yes, My Problem is Fixed !

I have no error, after pre-build.

Thanks Lazlo .