Did anybody ever figure out a fix to the split binary issue? I haven’t been able to get TMP working when using split binary.
Reproduced on 2017.1.2p2
Crash on empty scene with Text Mesh Pro component.
@Stephan_B need help!
@Stephan_B steps for 2017.1.2p2:
- Create new project
- Add canvas
- Add TextMeshProUGUI component
- Enable Split Binary in PlayerProfile
- Install only APK
Result:
NullReferenceException: Object reference not set to an instance of an object
at TMPro.TMP_Settings.get_defaultStyleSheet () [0x00000] in <filename unknown>:0
at TMPro.TMP_StyleSheet.get_instance () [0x00000] in <filename unknown>:0
at TMPro.TMP_StyleSheet.LoadDefaultStyleSheet () [0x00000] in <filename unknown>:0
at TMPro.TextMeshProUGUI.Awake () [0x00000] in <filename unknown>:0
TMP cause crashes if Split Binary is checked.
I reproduced the issue on Android, Unity 2018.2.
Did anybody figure out this?
@Stephan_B need help, can’t update my game due to this unsolved text mesh pro issue.
Text Mesh Pro from Package Manager, version 1.2.4
Unity version 2018.2
Split binary checked
Platform: Android
NullReferenceException: Object reference not set to an instance of an object.
E/Unity (17401): at TMPro.TMP_Settings.get_defaultStyleSheet ()
E/Unity (17401): at TMPro.TMP_StyleSheet.get_instance ()
E/Unity (17401): at TMPro.TextMeshProUGUI.Awake ()
I solved the issue by adding TMP Settings, Font Asset, and Default Sprite Sheet Asset to Preloaded Assets in Player Settings.
I need to look into what specifically causes the issue with split binary to see if I can get around the issue without the user having to take any action.
At the time I took a different solution (for other reasons besides this issue) by not using the “Split APK” option from Unity, but now I’m forced to reconsider again.
Having tried it again, I just noticed that Text Mesh Pro is attempting to load objects from Resources which are put into the OBB as well. (as mentioned in the Unity documentation: Unity - Manual: Support for APK expansion files (OBB) )
By making an object in the first scene that references the files in the “TextMesh Pro/Resources” it does work. This is similar to AaronSaron’s solution. I’m not sure if this causes asset duplication though (that the files are included in both the main APK as well as the OBB).
Is is possible to register on the legacy TMP forum? I’m trying to get a legacy version of TMP (trying to upgrade from .5.6.5f but having a hell of a time with the package manager simply not appearing in Unity 2018.4.10, so I can’t get the new version of TMP) So for now I’m going to go ‘down’ to 2017.4 and get that version stable before giving it another go. But when I try to register it says ‘registration disabled’. What can I do?
-Steve
The Legacy versions are not longer being updated and registration to the TMP forum is no longer possible.
What specific issues are you having in migrating from 5.6 to 2018.4?
Are you following the steps outlined in the sticky post at the top of this forum about this topic?
Although there can be some potential snags in the migration process, there is not a single project that could not be migrated thus far and I am certainly here to help.
Well, the good news is that I finally got the package manager to show up (it was a tortured process involving cleaning out the Unity Cache which finally did the trick) and everything imported in, but it looks like I somehow lost all of my pivot/layout data - every single TMP object now has the pivot point in the middle of the prefab, so everything is to the right of center of the object! Guess I’ll just have to manually hand-fix it. Frankly, I’m surprised there weren’t more issues… Thank you for the reply!
-Steve
Glad you were able to resolve the Package Manager issues.
There is an issue with version 1.4.1 which was fixed in version 1.5.0-preview.1 which is current available via the package manager. Upgrading to the latest release should resolve the alignment issues.
Oh thank Jesus you wrote back. I have over 1,100 unique text objects in the UI/tooltips. You saved me days of work. Did the update and it worked like a charm!!!
Well, spoke too soon. It did fix all the alignment issues, but it caused the game to crash super hard (lock in editor screen; had to reboot) when it tried to move to a new setup screen. Made absolutely no changes to the code, Rolled it back to 1.4.1 and it worked fine again (but with the alignment issues unfortunately) Maybe it was because I had started to manually fix the elements and then upgraded? Not sure.
Can you please submit a bug report with the project as you have it in 1.5.0?
I realize this can be a pain to deal with but it be most helpful as I would like to take a look at the conditions of that crash. Please include the step to reproduce the issue.
Sending the report now. Do you think I should roll back to 1.4.1 and just fix everything manually or look for a fix in the next day or so? It would be about 8 hours of work to manually repair all the alignment/anchor issues.
As soon as you get the email back from Unity with the Case #, please provide it to me.
Stick to the latest release. Assuming I get the Case #, I’ll take a look at the project later today / tonight. Once I know the cause of the issue, I’ll be able to provide better insight on the next course of action.
Yeah, I’ve tried 3 times to send a bug report - it gets to 100%, then gives me a error window saying ‘Connection Closed’. I never got a confirmation email from Unity. Question: does the error report need the entire project folder? It’s 7.8 GB - that might be causing an issue.
EDIT: Third time’s the charm, apparently! The case number is 1188867. Thanks for anything you can do!
-Steve
That project size should be fine as I have had projects submitted in the upwards of 60 gig.
If that doesn’t work, you can always zip up the project. Perhaps remove the Library folder which does increase the size overall. Upload that to some private place and send me a private link via PM.
Did you get the case number with my edit? 1188867. Thanks!