-
Notifications
You must be signed in to change notification settings - Fork 7
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
Error with Severe hang after multiple barcode readers #41
Comments
@badbeoti |
As you can see occur severe hang when call getTimeOfDay. And I have some question.
Currently experiencing inconvenience due to bugs. |
@Dynamsoft-Henry |
Working on it now |
Hi @badbeoti For the 3 questions: Question:
Answer: What do you mean by "every single time" actually? You can Question:
Answer: "So many threads" is not a problem. At least, we also have that many threads when running our sample. This is not the reason for the hang. Based on the code snippet, there are some suggestions from our developer. We suggest you to make some modifications on the "useEffect": useEffect(() => { We can't run your code snippet because it seems to be not completed and includes some third-party components. We are not sure whether the above suggestions can solve your issue. |
The following question we can't understand. Are there any relations between getTimeOfDay and our startScanning? As you can see occur severe hang when call getTimeOfDay. |
First, We fixed the problem by modifying the DYSCameraView.m And "What it's mean every single time". You need to know multiple scan page we have. Test attempted without const Scan = observer(() => {
return (
<Layout collapsable={false}>
<DCVCameraView
style={{flex: 1, justifyContent: 'space-between'}}
ref={DCVRef}
overlayVisible={true}
// @ts-ignore
torchButton={{visible: true}}
torchState={EnumTorchState.OFF}
scanRegionVisible={true}
scanRegion={ScanRegion}
>
</DCVCameraView>
</Layout>
);
});
export default Scan; And we got same result(severe hang). We also tried a different code. Similar to what you suggested like clearFn inside We checked the error log more accurately using Sentry. if ([StaticClass instance].dce == nil) {
[StaticClass instance].dce = [[DynamsoftCameraEnhancer alloc] init];
} Anyway we solve problem use this. If this way is wrong choice. Please leave a comment. |
Your change is correct. |
@Dynamsoft-Henry |
@badbeoti |
Actually which version are you working on? Our latest version is v1.1.12. Would you like to try the latest version? Our developers said they have fixed this issue in the v1.1.12 version. "dynamsoft-capture-vision-react-native": "^1.1.12", |
Hi,
I am using the same version but that code change is not there
…On Thu, 7 Sept 2023 at 11:23, Dynamsoft-Henry ***@***.***> wrote:
Hi @tousif-p99soft <https://github.com/tousif-p99soft>
Actually which version are you working on? Our latest version is v1.1.12.
Would you like to try the latest version? Our developers said they have
fixed this issue in the v1.1.12 version.
"dynamsoft-capture-vision-react-native": "^1.1.12",
—
Reply to this email directly, view it on GitHub
<#41 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4TTLCIKYRCO3ARANU3475TXZFOL5ANCNFSM6AAAAAAZISW3OM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@tousif-p99soft |
@tousif-p99soft Since we can't reproduce the frozen. We need your code snippet to make more tests so that we can confirm the bugs are fixed before release. |
@tousif-p99soft |
It only happens on iOS(I use RN: iOS-13.0, device: 16.4)
Using package version
"dynamsoft-capture-vision-react-native": "^1.1.7",
"react": "18.2.0",
"react-native": "0.71.7",
Unfortunately, this is not my code, so I don't know the reason for writing etc. in detail.
So if there is a problem, I think it needs to be fixed.
I would like to know the cause of Severe Hang additionally. Is there a logic that intentionally triggers Hang?
The text was updated successfully, but these errors were encountered: