keybase / keybase/client

The application crashes when clicking the image being Encrypting

Open
#11,979 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
9.2k
Forks
1.3k
Avg merge
12h 58m
Merged PRs (30d)
56

Description

#### Expected behavior
Supposedly, when I click on the image being encrypted the application will not crash.

#### Actual behavior
Initially, when I send a picture via "Choose from Library" and still in Encrypting process, I click on the image to ensure it, the application suddenly crashes and exits by itself.

#### How to reproduce
1. Install apps and lists
2. Next go to the team menu, and do "Create team" or "Join the team".
3. Next go to the chat page
4. Next do image sending via "Choose from Library"
5. While the image is in the process of Encrypting, click on the image, then the application will crash.

----
- Device: Xiaomi Redmi 4X
- Operating system: Marshmallow, 6.0.1 mmb29m (CPU: Octa-core Max 1.9 GHz, RAM: 2 GB)
- Application Version:

#### Recording Of The Bug
https://www.youtube.com/watch?v=0Pf_zIqPdbk

#### Logcat
```
05-23 01:31:43.529 32016 32072 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
05-23 01:31:43.529 32016 32072 E AndroidRuntime: Process: io.keybase.ossifrage, PID: 32016
05-23 01:31:43.529 32016 32072 E AndroidRuntime: java.lang.RuntimeException: Cannot add a child that doesn't have a YogaNode to a parent without a measure function! (Trying to add a 'ReactRawTextShadowNode' to a 'LayoutShadowNode')
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at com.facebook.react.uimanager.ReactShadowNodeImpl.addChildAt(ReactShadowNodeImpl.java:199)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at com.facebook.react.uimanager.ReactShadowNodeImpl.addChildAt(ReactShadowNodeImpl.java:54)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at com.facebook.react.uimanager.UIImplementation.setChildren(UIImplementation.java:482)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at com.facebook.react.uimanager.UIManagerModule.setChildren(UIManagerModule.java:439)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:374)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:162)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:742)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:194)
05-23 01:31:43.529 32016 32072 E AndroidRuntime: at java.lang.Thread.run(Thread.java:818)
05-23 01:31:43.576 32016 32072 E MQSEventManagerDelegate: failed to get MQSService.
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the chat image-send flow and reproduce the crash while the image is encrypting, using the supplied recording and Android Logcat trace. The React Native stack points to a raw-text child being added during layout; done means clicking the in-progress image no longer crashes the application.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.