-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🐛 [cloud_firestore] Windows app crashes with Unhandled exception at 0x00007FF637C02EEA in my_app.exe: 0xC000001D: Illegal Instruction
#12216
Comments
Hi @sharathGowda12, I can't seem to reproduce the crash using the plugin example app. What actions do you perform in the app and is there any additional information that you can provide? |
Any call to I think, it happens only in few devices, as reported earlier here, so might not be able to reproduce in you system. |
That would likely explain it. I tried several calls to firestore but it did not crash on my device. Dell XPS 13 7390 running windows 11 home Labeling based on the information provided above. cc @Lyokone |
Same issue! it happens only in few devices |
I am also facing this issue, it is a major blocker for our team. We are building a cross-platform application, and we require firestore support for our application on windows, as most of our customer base is on windows only. |
I have similar issue, it worked once on old sdk version |
Same here. My Flutter windows app crashes on some devices because of firestore. Any solution or firestore version that works? |
Same here. |
Any updates? |
Hello, couldn't reproduce this issue using my the example app with those:
|
Hey @sharathGowda12. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
@google-oss-bot I don't think, there is more information, I could possibly provide. This is such an issue, that happens only on a few devices (probably older PCs which support Windows 10). And it is confirmed by other commentators too. If the Firebase team is checking it only on newer models, I don't think, there is a possibility to reproduce this bug. |
Hello @sharathGowda12, if the issue is only happening on older device, it's probably due to the underlying C++ SDK, you can report the issue here with: https://github.com/firebase/firebase-cpp-sdk |
In my experience, the problem occurs not only in older devices. I think this problem should not be overlooked. Several users of my app in production can no longer use the program with relatively new PCs |
Hey @sharathGowda12. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Hi @Lyokone, Please try with below code it is crashing on Windows 11
|
Same here, but no firebase. |
The issue 0xc000001d means that Flutter uses some CPU instruction from an instruction set (AVX, FMA3, SSE, MMX, ...) which the CPU does not support. The correct way is to check the supported CPU instruction sets first, before running instructions from that instruction set - or if the instruction is mandatory and critical - mark the CPU as unsupported. This seems to be a bug in Flutter itself. RustDesk crashes with the following CPU if Flutter 3.16.9 is used (3.10.6 worked fine): AMD Phenom(tm) II X4 955 Processor which supports the following instruction sets:
Important question to the people having the same issue here in flutterfire: Can you please post which CPUs you are having on the systems which crash? Maybe you could even find the exact instruction using WinDbg or any possibility to see a stack trace to machine code. |
I am facing this issue on a hp laptop, with i7 8th generation intel
processor
…On Mon, 1 Apr 2024, 4:45 pm Daniel Marschall, ***@***.***> wrote:
The issue 0xc000001d means that Flutter uses some CPU instruction from an
instruction set (AVX, FMA3, SSE, MMX, ...) which the CPU does not support.
The correct way is to check the supported CPU instruction sets first,
before running instructions from that instruction set - or if the
instruction is mandatory and critical - mark the CPU as unsupported.
This seems to be a bug in Flutter itself.
RustDesk crashes with the following CPU if Flutter 3.16.9 is used (3.10.6
worked fine): AMD Phenom(tm) II X4 955 Processor
<https://www.cpu-world.com/CPUs/K10/AMD-Phenom%20II%20X4%20955%20-%20HDX955WFK4DGM.html>
which supports the following instruction sets:
- MMX instructions
- Extensions to MMX
- 3DNow! technology
- Extensions to 3DNow!
- SSE / Streaming SIMD Extensions
- SSE2 / Streaming SIMD Extensions 2
- SSE3 / Streaming SIMD Extensions 3
- SSE4a
- AMD64 / AMD 64-bit technology
- AMD-V / AMD Virtualization technology
*Important question to the people having the same issue here in
flutterfire: Can you please post which CPUs you are having on the systems
which crash? Maybe you could even find the exact instruction using WinDbg
or any possibility to see a stack trace to machine code.*
—
Reply to this email directly, view it on GitHub
<#12216 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMWY3GSPQL32UQDGXJRNUPTY3E6VLAVCNFSM6AAAAABCQVW7Y6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRZGYYDCOJYGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Thank you for the quick reply. Can you please send me the exact name of the CPU as shown in the Windows "system information" tool? |
I currently do not have the laptop in my possession, but here is the exact
model: HP Pavilion x360 Convertible Laptop PC 14-dh0045tx
…On Mon, 1 Apr 2024 at 17:14, Daniel Marschall ***@***.***> wrote:
Thank you for the quick reply. Can you please send me the exact name of
the CPU as shown in the Windows "system information" tool?
—
Reply to this email directly, view it on GitHub
<#12216 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMWY3GQ5IX4UCEWBW42WFJDY3FCCJAVCNFSM6AAAAABCQVW7Y6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRZGYZTGMRZGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Ok, in this case, the CPU seems to be "Intel® Core™ i7 8565U" which DOES supports SSE 4.1 . There is a very recently discovered bug in Flutter/Dart which causes Flutter to crash on old CPUs which DO NOT support SSE 4.1 . Although your CPU is newer (so you might not be affected by this bug), you might still want to try the new Flutter version once you have the ability. |
Hey @sharathGowda12. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @sharathGowda12 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
This bug seems to happen only on debug mode, I have my app crash right after access a firebase document, but when i release the app to store and run it on the same device, the bug no longer happens. |
Same issue Windows 10 CPU i7-3740QM bug in debug and release mode. SDK 3.3.4 |
@tranhuudang @Nimo11, this issue is closed. Please open new issues or upvote (by adding a 👍) on issue #12707 if it matches your problem. |
Bug report
Describe the bug
As the title says.
Steps to reproduce
Steps to reproduce the behavior:
await FirebaseFirestore.instance.collection('anyCollection').doc('anyId').get();
(where
,whereIn
also generate the same crash) from the example app.Lost Connection to device
with no error logs in the terminal. However, if you generate the.sln
file (Thanks to) and run the app with the Visual Studio you could see the crash with messageUnhandled exception at 0x00007FF637C02EEA in my_app.exe: 0xC000001D: Illegal Instruction.
Following is the Disassembly generated by the Visual Studio
Disassembly.md
Expected behavior
App shouldn't crash
Sample project
flutterfire example project with a live firebase project details will create the same crash.
Additional context
OS - Windows 10 Pro
Processor - Intel(R) Core(TM) i5-3340M CPU @ 2.70GHz, 2701 Mhz, 2 Core(s), 4 Logical Processor(s)
System Model - Dell Latitude E5430 non-vPro
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: