bitkit: [Bug]: App crashed when adding/editing/deleting contact
Describe the bug
The app seems to crash in a couple scenarios when dealing with contacts:
- adding a contact makes the added contact’s application crash
- editing a contact crashes the app
- deleting a contact crashes the app
- trying to use slashpay crashes the app (maybe also contact’s)
Note: remote contact was online while testing
Scenario 1:
On two different devices, the application crashed when we tried to delete a contact. After reopening the application, the contact was not deleted. We tried again and the contact was successfully deleted.
Contacts: slash:ui5wxjkcynxjqtkyfpjorak717tdppjggyt34meu3eciicy6r4yy slash:cronhh8adonxidrria9xfzyp7j4zsu8h9jux37n9hdzypartuxeo
Scenario 2:
Once contact is imported, we attempt to change the name of the contact manually, then the app crashes either when we attempting to do that (i.e. whilst we are on the contact profile page) or once the new name saved on local app and we were guided back to the Contacts Menu Page.
Reproduce
Scenario 1:
- Go to ‘Contacts’
- Click on ‘one of you contact’
- Deleted your contact
- App crashes
Scenario 2:
- Go to ‘Contacts’
- Click on ‘Edit Name (once imported already)’
- App crashes
Screenshots / Recording
Operating system
iOS & Android
Bitkit version
51
Log output
Thread 79: "Unhandled JS Exception: TypeError: Cannot read property 'byteLength' of undefined, js engine: hermes, stack:
compare@222136:24
_handleServerConnection@238808:80
emit@46559:18
onConnection@242071:13
onConnection@241217:36
emit@46559:18
recv@231293:38
_recv@231249:34
_decode@231567:23
_ondata@231543:22
emit@46559:18
drain@229411:71
update@229418:18
updateReadNT@229562:15
tryCallOne@53:15
anonymous@139:26
anonymous@14769:25
_callTimer@14699:16
_callReactNativeMicrotasksPass@14721:16
callReactNativeMicrotasks@14881:43
__callReactNativeMicrotasks@4227:45
anonymous@4117:44
__guard@4211:14
flushedQueue@4116:20
callFunctionReturnFlushedQueue@4101:32
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16
I was able to reproduce this issue. I’m on the current master. I’ve created a profile on first bitkit instance, then I’ve tried to add it as a contact on second, at this moment first one throwed
Unhandled JS Exception: TypeError: Cannot read property 'byteLength' of undefined