Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Android Pie #56

Closed
ncuthbert opened this issue Apr 18, 2019 · 2 comments
Closed

Crash on Android Pie #56

ncuthbert opened this issue Apr 18, 2019 · 2 comments

Comments

@ncuthbert
Copy link

ncuthbert commented Apr 18, 2019

App is crashing when running on Android Pie on emulator.

Appears to be related to clipPath and clipRect being deprecated since Android 26:
https://developer.android.com/reference/android/graphics/Canvas#clipPath(android.graphics.Path,%20android.graphics.Region.Op)

Could also be related to this issue with react-native-svg:
software-mansion/react-native-svg#766

Getting the following error when rendering a QR code:

Invalid Region.Op - only INTERSECT and DIFFERENCE are allowed
checkValidClipOp
Canvas.java:779
clipPath
Canvas.java:1007
clip
VirtualNode.java:263
draw
RenderableShadowNode.java:213
run
GroupShadowNode.java:82
traverseChildren
VirtualNode.java:349
drawGroup
GroupShadowNode.java:73
draw
GroupShadowNode.java:64
run
SvgViewShadowNode.java:193
traverseChildren
SvgViewShadowNode.java:282
drawChildren
SvgViewShadowNode.java:188
drawOutput
SvgViewShadowNode.java:140
onCollectExtraUpdates
SvgViewShadowNode.java:122
dispatchUpdates
ReactShadowNodeImpl.java:325
applyUpdatesRecursive
UIImplementation.java:968
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
applyUpdatesRecursive
UIImplementation.java:959
updateViewHierarchy
UIImplementation.java:700
dispatchViewUpdates
UIImplementation.java:654
onBatchComplete
UIManagerModule.java:663
onBatchComplete
NativeModuleRegistry.java:136
onBatchComplete
CatalystInstanceImpl.java:145
run
NativeRunnable.java
handleCallback
Handler.java:873
dispatchMessage
Handler.java:99
dispatchMessage
MessageQueueThreadHandler.java:31
loop
Looper.java:193
run
MessageQueueThreadImpl.java:194
run
Thread.java:764

@ncuthbert
Copy link
Author

Updated react-native-svg to latest in my dependencies

@iwashi1t
Copy link

I also faced the same problem. The problem seems to be fixed in react-native-svg version 7.0.0, but react-native-qrcode-svg has a version 6.5.2 dependency.

Could you please update and publish a new version updating react-native-svg dependency?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants