Wordpress-android: JSApplicationIllegalArgumentException: Error while updating property 'lineHeight' in shadow node of type: RCTAztecView

Created on 17 Jun 2020  路  4Comments  路  Source: wordpress-mobile/WordPress-Android

Sentry Url: https://sentry.io/share/issue/0244926c0adf4aeda025bc36bae98d3e/
User Count: 936
Count: 4073
First Release: org.wordpress.android-14.9-rc-1
First Seen: 2020-05-21T22:24:51Z
Last Seen: 2020-06-16T22:57:57Z
24 Hours: 224
30 Days: 4030

JSApplicationIllegalArgumentException: Error while updating property 'lineHeight' in shadow node of type: RCTAztecView
     at com.facebook.react.uimanager.ViewManagersPropertyCache$FloatPropSetter.getValueOrDefault(ViewManagersPropertyCache.java:223)
     at com.facebook.react.uimanager.ViewManagersPropertyCache$PropSetter.updateShadowNodeProp(ViewManagersPropertyCache.java:106)
     at com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackShadowNodeSetter.setProperty(ViewManagerPropertyUpdater.java:159)
     at com.facebook.react.uimanager.ViewManagerPropertyUpdater.updateProps(ViewManagerPropertyUpdater.java:63)
     at com.facebook.react.uimanager.ReactShadowNodeImpl.updateProperties(ReactShadowNodeImpl.java:318)
     at com.facebook.react.uimanager.UIImplementation.createView(UIImplementation.java:249)
     at com.facebook.react.uimanager.UIManagerModule.createView(UIManagerModule.java:465)
     at java.lang.reflect.Method.invoke(Method.java:null)
     at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:371)
     at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:150)
...
(7 additional frame(s) were not displayed)
[Type] Crash gutenberg-mobile

All 4 comments

@maxme or @hypest any thoughts here? (ref: RCTAztecView)

Took me a bit but managed to replicate the issue. Happens when the a block has the line-height css property set.

Example html:

<!-- wp:heading {"align":"left","level":4,"className":"has-primary-background-color has-background","style":{"typography":{"lineHeight":"2.5"}}} -->
<h4 class="has-text-align-left has-primary-background-color has-background" style="line-height:2.5">Heading with line-height set</h4>
<!-- /wp:heading -->

@marecar3 , can you please prioritize working on this? line-height is not currently supported by the Aztec Wrapper (RCTAztecView) and we need to somehow guard or add support for it so the app doesn't crash when the block has that prop from the web.

Edit: for added context, the same html works OK on the iOS gb-mobile demo app so, this is an Android side issue only.

Took me a bit but managed to replicate the issue. Happens when the a block has the line-height css property set.

Example html:

<!-- wp:heading {"align":"left","level":4,"className":"has-primary-background-color has-background","style":{"typography":{"lineHeight":"2.5"}}} -->
<h4 class="has-text-align-left has-primary-background-color has-background" style="line-height:2.5">Heading with line-height set</h4>
<!-- /wp:heading -->

@marecar3 , can you please prioritize working on this? line-height is not currently supported by the Aztec Wrapper (RCTAztecView) and we need to somehow guard or add support for it so the app doesn't crash when the block has that prop from the web.

Will do, thanks!

Fix will be included in editor release v1.31.0, due to land in v15.2 of WPAndroid.

Was this page helpful?
0 / 5 - 0 ratings