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

Error in progressEstimate #1753

Open
Bilonik opened this issue Jul 20, 2024 · 7 comments
Open

Error in progressEstimate #1753

Bilonik opened this issue Jul 20, 2024 · 7 comments

Comments

@Bilonik
Copy link

Bilonik commented Jul 20, 2024

What happened?

When attempting to create a loading bar for the login process, the progressEstimate provided by the onProgressCallback of the Realm.open method fluctuates erratically. Instead of providing a smooth progression, the value jumps between 1.0 and lower values (e.g., 0.2, 0.21) repeatedly.

Repro steps

Implement the following code:
dart

final realm = await Realm.open(flexConfig, onProgressCallback: (syncProgress) {
    final processValue = syncProgress.progressEstimate;
    // syncProgress.progressEstimate keeps going to 1.0 then .2 then 1.0 then .21 and so on.
});

Observe the values of syncProgress.progressEstimate during the login process.

Expected Behavior:
progressEstimate should provide a smooth, incrementing progression from 0.0 to 1.0, allowing for the creation of an accurate loading bar.

Actual Behavior:
progressEstimate fluctuates between 1.0 and lower values (e.g., 0.2, 0.21), making it impossible to create a consistent loading bar.

Version

3.3.0

What Atlas Services are you using?

Atlas Device Sync

What type of application is this?

Flutter Application

Client OS and version

3.3.0

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

Copy link

sync-by-unito bot commented Jul 20, 2024

➤ PM Bot commented:

Jira ticket: RDART-1072

@nirinchev
Copy link
Member

Can you provide us with trace level logs from a fresh run of the app?

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Jul 22, 2024
@Bilonik
Copy link
Author

Bilonik commented Jul 22, 2024

@nirinchev can you give me an email to send you the logs (i cant post them here).

It happens:

  1. open a sync realm in a device.
  2. Close the app
  3. Make transactions on another device.
  4. Open again the first device and listen to progressEstimate to create the loading bar.

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Jul 22, 2024
@nirinchev
Copy link
Member

You can send them to [email protected].

@Bilonik
Copy link
Author

Bilonik commented Jul 23, 2024

@nirinchev sent
Thanks

@nirinchev
Copy link
Member

Looking at the logs, I don't see anything from sync - can you share the code you're using to setup the logger?

@nirinchev nirinchev added More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. and removed Needs-Attention Reporter has responded. Review comment. labels Jul 23, 2024
@Bilonik
Copy link
Author

Bilonik commented Jul 24, 2024

Realm.logger.setLogLevel(LogLevel.trace);
Realm.logger.onRecord.listen((event) {
print("Realm log message: '$event'");
});

@github-actions github-actions bot removed the More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants