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 - Dashboard undefined #1540

Closed
Tracked by #1465
mahalakshme opened this issue Oct 28, 2024 · 2 comments
Closed
Tracked by #1465

Bugsnag - Dashboard undefined #1540

mahalakshme opened this issue Oct 28, 2024 · 2 comments
Assignees

Comments

@mahalakshme
Copy link
Contributor

mahalakshme commented Oct 28, 2024

Issue:

10.0.3 users facing this issue:
Bugsnag link

TypeError Cannot read property 'uuid' of undefined

    in CustomDashboardView
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in Navigator
    in Router
    in AvniErrorBoundary
    in App
    in RCTView
    in Unknown
    in Avni
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in AppContainer 
    /home/circleci/avni-client/packages/openchs-android/src/views/customDashboard/CustomDashboardView.js:337:65 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:305:14 dispatch
    /home/circleci/avni-client/packages/openchs-android/src/service/BaseService.js:27:39 dispatchAction
    /home/circleci/avni-client/packages/openchs-android/src/service/SyncService.js:408:27 reset
    /home/circleci/avni-client/packages/openchs-android/src/service/SyncService.js:398:22 resetServicesAfterFullSyncCompletion
    /home/circleci/avni-client/packages/openchs-android/src/task/Sync.js:83:99 anonymous
    /root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/2k3l5153/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16 tryCallOne
    /root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/2k3l5153/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27 anonymous
    native apply
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:247:22 anonymous
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:111:14 _callTimer
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:161:14 _callReactNativeMicrotasksPass
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:415:41 callReactNativeMicrotasks
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:392:41 __callReactNativeMicrotasks
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:132:38 anonymous
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:368:10 __guard
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:131:16 flushedQueue
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:116:28 callFunctionReturnFlushedQueue

Analysis:

  • Unable to reproduce the issue - tried with one of the user who faced the issue
  • Their sync telemetry shows successful sync - looks like the above issue is happening post sync from the logs
  • tried app upgrade from 9.4 to 10.0 with filters saved and then synced manually - didn't cause issue
  • They dont ve fast sync backups
  • May be happens when app update happens when sync completes - and some race condition is happening
  • also tried fresh sync with 10.0.3 - but from sync telemetry looks like that is not happening - still no issue
  • I called one user(who is shown in bugsnag) - they told app is working fine.
  • out of 25 users who are in 10.0.3 version, 4 users have faced the above issue
@mahalakshme mahalakshme converted this from a draft issue Oct 28, 2024
@mahalakshme mahalakshme moved this from In Analysis to Ready in Avni Product Oct 28, 2024
@1t5j0y 1t5j0y changed the title Bugsnag issue Bugsnag - Dashboard undefined Oct 29, 2024
@1t5j0y 1t5j0y self-assigned this Oct 29, 2024
@1t5j0y
Copy link
Contributor

1t5j0y commented Oct 30, 2024

Unable to simulate either. Added a nil check for most likely cause of error.
Leaving in progress for @petmongrels to have a look as well.

petmongrels added a commit that referenced this issue Oct 30, 2024
…So if there are no active dashboards then treat it as no dashboards.
@petmongrels
Copy link
Contributor

  • there is small code change
  • we can do basic sanity test of custom dashboards

@petmongrels petmongrels moved this from In Progress to Code Review Ready in Avni Product Oct 30, 2024
@petmongrels petmongrels removed the status in Avni Product Oct 30, 2024
@1t5j0y 1t5j0y moved this to QA Ready in Avni Product Oct 30, 2024
@dinesh2096 dinesh2096 moved this from QA Ready to Done in Avni Product Nov 6, 2024
@dinesh2096 dinesh2096 moved this from Done to QA Ready in Avni Product Nov 6, 2024
@dinesh2096 dinesh2096 self-assigned this Nov 7, 2024
@dinesh2096 dinesh2096 removed their assignment Nov 7, 2024
@vinayvenu vinayvenu reopened this Nov 7, 2024
@github-project-automation github-project-automation bot moved this from In QA to Triaged in Avni Product Nov 7, 2024
@AchalaBelokar AchalaBelokar moved this from Triaged to In QA in Avni Product Nov 7, 2024
@AchalaBelokar AchalaBelokar moved this from In QA to Done in Avni Product Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

5 participants