il2cpp::vm::Method::GetParamCount: Unity 5.1.1f and Xcode beta 7

Hi,

I’m having issues with building my game to iOS. I keep getting the
il2cpp::vm::Method::GetParamCount: error in XCode. I checkt the issue tracker where it says this is solved but mine seem to prove the opposite. I’ve tried several combinations of the build settings (but il2cpp and universal architecture are constant) and fixed all Null reference errors in my code (actually using playmaker, but with my custom actions). I will add all the errors i get in debug mode (with symlink) (but not in release mode).

Output Error

2015-07-06 01:03:24.014 Tap4Time[704:287989] → registered mono modules 0x1ab6610

→ applicationDidFinishLaunching()

PlayerConnection initialized from /private/var/mobile/Containers/Bundle/Application/8F4C4B8B-2574-4DF7-AAC5-04BF179E3CC6/Tap4Time.app/Data (debug = 0)

PlayerConnection initialized network socket : 0.0.0.0 55000

Multi-casting “[IP] 192.168.0.149 [Port] 55000 [Flags] 2 [Guid] 769170249 [EditorId] 3530946884 [Version] 1048832 [Id] iPhonePlayer(iPad-van-Kristin):56000 [Debug] 0” to [225.0.0.222:54997]…

→ applicationDidBecomeActive()

Requesting Resolution: 768x1024

Renderer: PowerVR SGX 543

Vendor: Imagination Technologies

Version: OpenGL ES 2.0 IMGSGX543-113.3

GLES: 2

GL_OES_depth_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_read_format GL_IMG_texture_comp

ression_pvrtc

OPENGL LOG: Creating OpenGL ES 2.0 graphics device

Initialize engine version: 5.1.1f1 (2046fc06d4d8)

The resource Internal-ErrorShader.shader could not be loaded from the resource file!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Misc/ResourceManager.cpp Line: 1062)

The resource Sprites-Default.mat could not be loaded from the resource file!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Misc/ResourceManager.cpp Line: 1062)

The resource Soft.psd could not be loaded from the resource file!

System.InternalEnumerator`1:get_Current()

[/Users/builduser/buildslave/unity/build/Runtime/Misc/ResourceManager.cpp line 1062]

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Misc/ResourceManager.cpp Line: 1062)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1562)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1562)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1562)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1562)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1562)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1562)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1562)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1562)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1715)

A script behaviour has a different serialization layout when loading. (Read 32 bytes but expected 52 bytes)

Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Serialize/SerializedFile.cpp Line: 1652)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1715)

A script behaviour has a different serialization layout when loading. (Read 32 bytes but expected 64 bytes)

Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Serialize/SerializedFile.cpp Line: 1652)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1715)

A script behaviour has a different serialization layout when loading. (Read 32 bytes but expected 44 bytes)

Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Serialize/SerializedFile.cpp Line: 1652)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1715)

A script behaviour has a different serialization layout when loading. (Read 32 bytes but expected 76 bytes)

Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Serialize/SerializedFile.cpp Line: 1652)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1715)

A script behaviour has a different serialization layout when loading. (Read 32 bytes but expected 172 bytes)

Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Serialize/SerializedFile.cpp Line: 1652)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1715)

A script behaviour has a different serialization layout when loading. (Read 32 bytes but expected 1652 bytes)

Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Serialize/SerializedFile.cpp Line: 1652)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1715)

A script behaviour has a different serialization layout when loading. (Read 32 bytes but expected 36 bytes)

Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Serialize/SerializedFile.cpp Line: 1652)

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1715)

A script behaviour has a different serialization layout when loading. (Read 32 bytes but expected 96 bytes)

Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Serialize/SerializedFile.cpp Line: 1652)

The resource Soft.psd could not be loaded from the resource file!

System.InternalEnumerator`1:get_Current()

[/Users/builduser/buildslave/unity/build/Runtime/Misc/ResourceManager.cpp line 1062]

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Misc/ResourceManager.cpp Line: 1062)

(lldb)

For the record: this is a IL2CPP specific problem as the app has no issue to work on Mono.

Does anyone know what this even means because I have absolutely no knowledge on how to work in obj C.

Regards,
Cuttlefish Creations

Could someone please also explain to me why i’m having 400+ warnings with IL2CPP en none with mono. This probably has to do that playmaker is written in mono??

@cuttlefish-creations

This error looks like a bug in the Unity code. Can you submit a bug report on this issue? We would love to be able to isolate it and correct it.

Without knowing too much about the issue specifically, I’ll recommend that you might be able to work around it by checking the “Stripping Level” option in the Player Settings. Sometimes changing it to “Disabled” will correct issues like this.

As for the warnings, then should be benign. They are C++ warnings in the generated C++ code, but they don’t cause any actual problems which we are aware of.

1 Like

@JoshPeterson

I already have disabled to stripping options as this breaks my project. I have also tried to build a new project with just a cube and untouched settings and this one works fine. So might be a project specific issue, I’ll try a few more things and then file a bug report.

Another issue that might be known is that the ‘build and run’ option, gives an error while starting up Xcode, this probably has something to do with beta 7 not being officially supported in the Unity4XC.xcplugin.

regards
.

@cuttlefish-creations

Thanks, please let em know if you are able to submit a bug report.

The issue with Unity4XC.xcplugin is a known one, which we are working on. I don’t think that it is related to this specific crash though.

I have send the bug report. Could not replicate it though with a clean project and a cube, that worked fine. So I have sent the whole project.

@cuttlefish-creations

Thanks. Please let me know the bug report number when you get it.

We had the same issue…the GetParamCount crash. The Unity Analytics team reported an iOS crash issue with Unity 5.1 but didn’t explain what the error message was associated with the Unity Analytics crash. They did say the issue was fixed in a 5.1 patch release. So…we just tried 5.1.1p3 with success, no more GetParamCount crash on start.

1 Like

Ahh, thanks,
I did read that during the unity analytics setup but I must have tought I had the right version, even checked the update window.