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

Bugsnag issue in AddMemberDetails #1206

Open
mahalakshme opened this issue Nov 27, 2023 · 3 comments
Open

Bugsnag issue in AddMemberDetails #1206

mahalakshme opened this issue Nov 27, 2023 · 3 comments
Labels

Comments

@mahalakshme
Copy link
Contributor

mahalakshme commented Nov 27, 2023

https://app.bugsnag.com/samanvay-research-and-development-foundation/avni-client/errors/655c6a7e1a18f60009886f44?filters%5Bevent.since%5D=7d&filters%5Bapp.release_stage%5D=prod&filters%5Berror.status%5D=for_review&filters%5Bsearch%5D%5B%5D=undefined&filters%5Bsearch%5D%5B%5D=is&filters%5Bsearch%5D%5B%5D=not&filters%5Bsearch%5D%5B%5D=a&filters%5Bsearch%5D%5B%5D=function

TypeError Fatal error: undefined is not a function 
    /home/circleci/avni-client/packages/openchs-android/src/views/groupSubject/AddMemberDetails.js:94:59 render
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:4729:27 finishClassComponent
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:4700:29 updateClassComponent
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7866:28 beginWork$1
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7304:24 performUnitOfWork
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7297:53 workLoopSync
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7279:18 renderRootSync
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6975:33 performSyncWorkOnRoot
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:2145:30 flushSyncCallbacks
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6650:57 scheduleUpdateOnFiber
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:2617:28 enqueueSetState
    /home/circleci/avni-client/packages/openchs-android/node_modules/react/cjs/react.production.min.js:12:251 setState
    /home/circleci/avni-client/packages/openchs-android/src/framework/view/AbstractComponent.js:99:25 refreshState
    /home/circleci/avni-client/packages/openchs-android/node_modules/redux/lib/redux.js:304:30 dispatch
    /home/circleci/avni-client/packages/openchs-android/src/service/BaseService.js:26:39 dispatchAction
    /home/circleci/avni-client/packages/openchs-android/src/service/SyncService.js:374:27 reset
    /home/circleci/avni-client/packages/openchs-android/src/service/SyncService.js:363:39 anonymous
    native apply

Analysis:

  • Issue is happening with chashma and apfodisha
  • I think it is because - some individual in a group(say household) doesn't belong to users catchment -
    - If this is the issue, card already created for this - Managing direct assignments of individual to user avni-server#663 - Add details if any that might help to the card
    - Chalk-out steps/script to be taken/run to prevent sync issue for the user.
@mahalakshme mahalakshme converted this from a draft issue Nov 27, 2023
@mahalakshme mahalakshme moved this from In Analysis to In Analysis Review in Avni Product Nov 27, 2023
@mahalakshme mahalakshme moved this from In Analysis Review to QA Failed in Avni Product Nov 27, 2023
@mahalakshme mahalakshme moved this from QA Failed to Ready in Avni Product Nov 27, 2023
@1t5j0y 1t5j0y moved this from Ready to In Progress in Avni Product Nov 28, 2023
@1t5j0y 1t5j0y self-assigned this Nov 28, 2023
@1t5j0y
Copy link
Contributor

1t5j0y commented Nov 29, 2023

Unable to simulate this with chashma user. Appears to be similar to #1193 (method on state variable is undefined) though this is in a View and other occurrences are in actions.

There is an

 ERROR  Warning: Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.

occurring on display of the AddMemberDetails view (due to setting of the role via dispatch of ON_ROLE_SELECT since there is only a single option) but don't think this would cause a crash.

@1t5j0y 1t5j0y moved this from In Progress to Ready in Avni Product Nov 29, 2023
@1t5j0y 1t5j0y removed their assignment Nov 29, 2023
@mahalakshme mahalakshme moved this from Ready to Hold in Avni Product Nov 29, 2023
@1t5j0y
Copy link
Contributor

1t5j0y commented Dec 5, 2023

@petmongrels does this look like a similar issue to #1193 or does it need to be looked at separately?

@petmongrels
Copy link
Contributor

@1t5j0y This is different from 1193. But reproducing these issues without clear steps and scenarios is not easy.

@mahalakshme mahalakshme moved this from Hold to Ready in Avni Product Dec 5, 2023
@mahalakshme mahalakshme moved this from Ready to In Analysis in Avni Product Dec 12, 2023
@mahalakshme mahalakshme moved this from In Analysis to Focus Items in Avni Product Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Focus Items
Development

No branches or pull requests

3 participants