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
Windows build - Lost connection with device #687
Comments
What version of Isar are you using? What version of Flutter are you using? Do you also see this issue for other platforms? Is it a specific string or does it happen for any? Is the string indexed? |
Sorry for the lack of detail. I was previously using 3.0.0-dev.8, issues occurred after upgrade to 3.0.0. I have switched back to dev-8 to fix the issue for now.
I'm sorry for posting this with a lack of detail. I'll test a bit more later to try and figure out what's happening, I'm up against it right now so reverting to previous version and continuing my work for the day. I'll try it on another laptop as well. |
Thank a lot! Really appreciate your help! |
I can confirm this error also within an iOS Simulator AND Android Emulator. For me the error also happens with
And in
Furthermore: I am using |
@i-dentify but is it somehow related to the 7500 character issue or a new error? What error message do you see in iOS or Android logs? Your error does not sound like an Isar issue to me 🤔 |
@leisim Oh damn - I see, that there was this more detailed info in the initial post... I just replied as I have the same final error behaviour then. I do not see ANY error except the message |
Android locgat shows more information since it does not stop on error. The iOS simulator would show a crash report if Isar was killing the app |
I've done a bit more testing though I'm a bit rushed so haven't had time to make an example app - I've been on this current app about 2 months so its a bit of a code swamp... I suspected that the json strings I was storing might of contained an unusual character or some other encoding issue, but my quick testing has confirmed that the issue exists with any string - my additional test cases were simple strings (AaaaBbbb etc up to 7500) and a base64 encoded image, both crashed the app. With no errors being output (only the "lost connection" warning), it's hard to trace back. It seems like String columns have a character limit, but since previous versions of Isar did not have any limitations I would hazard a guess and say it feels like a memory issue. I'll put together a small test app this weekend to test further since my current code examples are not useful for replicating the issue. |
OK - I tried multiple things as well and I'd finally go along which @nelchael730 guess on a memory issue. The error occurs on my side, since I moved from (btw: the reason why I switched to |
@nelchael730 a few lines of test code that show the error would be super helpful. thanks so much! |
Windows here. When trying to store 10869 bytes the app silently crashes. Specifically this is the last line of code to run before the silent crash: int isar_put_all(
ffi.Pointer<CIsarCollection> collection,
ffi.Pointer<CIsarTxn> txn,
ffi.Pointer<CObjectSet> objects,
) {
return _isar_put_all(
collection,
txn,
objects,
);
} The param values are: |
@noga-dev do you have a sample that reproduces this error? I fail to find one on my machine :( |
Could you please remove the database and try disabling Windows Security temporarily? It kills my build sometimes |
OK, i'm back... Sorry I wasn't able to provide any example code, I was ill most of last month. I've done more testing. From what I can determine it is either not related to string length or I've found a separate issue that is resulting in the same "Lost connection to device." issue. How to replicate:
You can restart the app etc and it will always crash. The only way to get it working again is to deleteFromDisk and restart the app. It will work until you delete rows and then forever crashes. main.dart
bigdata.dart
|
Is there any progress with this? To be honest I'm fine using the dev version but i'm now at a point where i'm struggling with not having access to the isar inspector since it stopped working when version 3 was released... Is ther any way at all to use the inspector with the dev versions anymore? |
I'm having the same issue. Can't run on windows because my data is very large. |
A fix is ready. I'll release a new version very soon! |
@leisim I've updated Isar version 3.0.3 for this example and run a Window build, it crashes the first time you open an Isar instance. Please check your new version with the example above. |
I also confirm, that the fix did not solve the problem either with my example #827 |
It appears as though storing a string over 7500 characters long (an encoded json string in this case) silently crashes Windows builds. The only message logged is "Lost connection with device".
The text was updated successfully, but these errors were encountered: