question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.52.0-rc.0: Yoga Value Conversion Issue preventing build

See original GitHub issue

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Steps to Reproduce

(Write your steps here:)

  1. Try to build app in xCode
  2. Receive Error Implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const uint32_t' (aka 'const unsigned int') line 208 in YGNodePrint.cpp const uint32_t childCount = node->children.size();

Not sure if this is related but Line 201 and 293 of Yoga.cpp are also throwing logic errors of Null pointer argument in call to memory copy function

Expected Behavior

I expected my app to work. It had hung up at the splash screen with no errors except the yoga logic errors and I assumed the newer version would resolve them.

Actual Behavior

The app is unable to build due to the yoga issue and xCodes says there are two other logic errors in Yoga.

Reproducible Demo

I would imagine this would just show up in any new project; however, any suggested steps to resolve it would be appreciated.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:82
  • Comments:76 (28 by maintainers)

github_iconTop GitHub Comments

57reactions
dlukszacommented, Jan 9, 2018

In my case, I also need to disable GCC_WARN_64_TO_32_BIT_CONVERSION for yoga and now my project compiles and runs perfectly.

The full workaround for this issue if you are using cocoapods:

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == 'yoga'
            target.build_configurations.each do |config|
                config.build_settings['GCC_TREAT_WARNINGS_AS_ERRORS'] = 'NO'
                config.build_settings['GCC_WARN_64_TO_32_BIT_CONVERSION'] = 'NO'
            end
        end
    end
end
31reactions
gabrielbullcommented, Jan 8, 2018

Version 0.52.0 was released with this bug still present. I bet there’s going to be an influx of people having this issue now. We really should have resolved this issue before releasing 0.52.0 😬.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Value Conversion Issue error on app build - ios - Stack Overflow
I am trying to test my app in Xcode but every time I try to build it I get several Value Conversion Issues....
Read more >
unable to resolve your shell environment in a reasonable time
Actual Behavior. The app is unable to build due to the yoga issue and xCodes says there are two other logic errors in...
Read more >
react-native-codegen | Yarn - Package Manager
Values in old renderer (2f58e52006 by @javache); Revert "Fix TextInput dropping text when used as uncontrolled component with defaultValue " to fix ...
Read more >
Untitled
George johnstone stoney wikipedia, Zuzana tinova, Speed stick advert, Pili airport location, Healing broken heart quotes, Build outdoor natural gas fire pit ...
Read more >
pinentry bug fix and enhancement update - Oracle Linux Yum Server
Fix trailing whitespace - Add some patches to fix issues with ignoring DP MST ... executable - Resolves: #1277849 [2.1.11-36] - lib: prevent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found