flutter-permission-handler
flutter-permission-handler copied to clipboard
Crash on windows server
🐛 Bug Report
The app crashes when opening it on Windows Server 2012 if it uses this plugin. If I remove the dependency to the plugin the app opens without a problem.
Expected behavior
Open the app without crashing.
Reproduction steps
- Create a new flutter project and just add in the pubspec.yaml the dependency to permission_handler: ^10.2.0. There is no need to add any extra code.
- Execute the command
flutter build windows. - Copy the files at
build\windows\runner\Release\to the Windows Server 2012. - Execute the app and it crashes.
- If we repeat the steps removing the dependency it doesnt' crash.
Configuration
Version: 10.2.0
Platform:
- [ ] Windows
More error info from report.wer:
Version=1 EventType=BEX64 EventTime=133186821357858022 ReportType=2 Consent=1 ReportIdentifier=95594514-98a8-11ed-9435-ecb1d7f493d5 IntegratorReportIdentifier=95594513-98a8-11ed-9435-ecb1d7f493d5 NsAppName=flutter_desktop.exe Response.type=4 Sig[0].Name=Nombre de la aplicación Sig[0].Value=flutter_desktop.exe Sig[1].Name=Versión de la aplicación Sig[1].Value=1.0.0.1 Sig[2].Name=Marca de tiempo de la aplicación Sig[2].Value=63ca5aac Sig[3].Name=Nombre del módulo con errores Sig[3].Value=ucrtbase.DLL Sig[4].Name=Versión del módulo con errores Sig[4].Value=10.0.14393.2990 Sig[5].Name=Marca de tiempo del módulo con errores Sig[5].Value=5caeb96f Sig[6].Name=Desplazamiento de excepción Sig[6].Value=000000000006e00e Sig[7].Name=Código de excepción Sig[7].Value=c0000409 Sig[8].Name=Datos de excepción Sig[8].Value=0000000000000007 DynamicSig[1].Name=Versión del sistema operativo DynamicSig[1].Value=6.2.9200.2.0.0.272.33 DynamicSig[2].Name=Id. de configuración regional DynamicSig[2].Value=3082 DynamicSig[22].Name=Información adicional 1 DynamicSig[22].Value=8905 DynamicSig[23].Name=Información adicional 2 DynamicSig[23].Value=8905890bf15a1fd75004b4cbb4d013ec DynamicSig[24].Name=Información adicional 3 DynamicSig[24].Value=feac DynamicSig[25].Name=Información adicional 4 DynamicSig[25].Value=feacf5b11faa4535085cb0bb716c3634 UI[2]=D:\SOFTWARE\Nueva carpeta\flutter_desktop.exe UI[3]=flutter_desktop dejó de funcionar UI[4]=Windows puede buscar una solución en línea al problema. UI[5]=Buscar una solución en línea y cerrar el programa UI[6]=Buscar una solución en línea más tarde y cerrar el programa UI[7]=Cerrar el programa LoadedModule[0]=D:\SOFTWARE\Nueva carpeta\flutter_desktop.exe LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll LoadedModule[2]=C:\Windows\system32\KERNEL32.DLL LoadedModule[3]=C:\Windows\system32\KERNELBASE.dll LoadedModule[4]=D:\SOFTWARE\Nueva carpeta\connectivity_plus_plugin.dll LoadedModule[5]=D:\SOFTWARE\Nueva carpeta\permission_handler_windows_plugin.dll LoadedModule[6]=D:\SOFTWARE\Nueva carpeta\url_launcher_windows_plugin.dll LoadedModule[7]=D:\SOFTWARE\Nueva carpeta\flutter_windows.dll LoadedModule[8]=C:\Windows\system32\USER32.dll LoadedModule[9]=C:\Windows\system32\SHELL32.dll LoadedModule[10]=C:\Windows\system32\ole32.dll LoadedModule[11]=C:\Windows\SYSTEM32\MSVCP140.dll LoadedModule[12]=C:\Windows\SYSTEM32\VCRUNTIME140_1.dll LoadedModule[13]=C:\Windows\SYSTEM32\VCRUNTIME140.dll LoadedModule[14]=C:\Windows\SYSTEM32\api-ms-win-crt-runtime-l1-1-0.dll LoadedModule[15]=C:\Windows\SYSTEM32\api-ms-win-crt-stdio-l1-1-0.dll LoadedModule[16]=C:\Windows\SYSTEM32\api-ms-win-crt-heap-l1-1-0.dll LoadedModule[17]=C:\Windows\SYSTEM32\api-ms-win-crt-math-l1-1-0.dll LoadedModule[18]=C:\Windows\SYSTEM32\api-ms-win-crt-locale-l1-1-0.dll LoadedModule[19]=C:\Windows\SYSTEM32\IPHLPAPI.DLL LoadedModule[20]=C:\Windows\SYSTEM32\api-ms-win-crt-string-l1-1-0.dll LoadedModule[21]=C:\Windows\system32\OLEAUT32.dll LoadedModule[22]=C:\Windows\system32\ADVAPI32.dll LoadedModule[23]=C:\Windows\system32\PSAPI.DLL LoadedModule[24]=C:\Windows\system32\SHLWAPI.dll LoadedModule[25]=C:\Windows\system32\RPCRT4.dll LoadedModule[26]=C:\Windows\SYSTEM32\WINMM.dll LoadedModule[27]=C:\Windows\system32\WS2_32.dll LoadedModule[28]=C:\Windows\system32\IMM32.dll LoadedModule[29]=C:\Windows\system32\GDI32.dll LoadedModule[30]=C:\Windows\SYSTEM32\OPENGL32.dll LoadedModule[31]=C:\Windows\SYSTEM32\bcrypt.dll LoadedModule[32]=C:\Windows\SYSTEM32\OLEACC.dll LoadedModule[33]=C:\Windows\SYSTEM32\UIAutomationCore.DLL LoadedModule[34]=C:\Windows\SYSTEM32\dxgi.dll LoadedModule[35]=C:\Windows\SYSTEM32\d3d9.dll LoadedModule[36]=C:\Windows\system32\CRYPT32.dll LoadedModule[37]=C:\Windows\system32\msvcrt.dll LoadedModule[38]=C:\Windows\SYSTEM32\combase.dll LoadedModule[39]=C:\Windows\SYSTEM32\sechost.dll LoadedModule[40]=C:\Windows\SYSTEM32\api-ms-win-crt-convert-l1-1-0.dll LoadedModule[41]=C:\Windows\SYSTEM32\api-ms-win-crt-filesystem-l1-1-0.dll LoadedModule[42]=C:\Windows\SYSTEM32\api-ms-win-crt-time-l1-1-0.dll LoadedModule[43]=C:\Windows\SYSTEM32\api-ms-win-crt-environment-l1-1-0.dll LoadedModule[44]=C:\Windows\SYSTEM32\api-ms-win-crt-utility-l1-1-0.dll LoadedModule[45]=C:\Windows\system32\NSI.dll LoadedModule[46]=C:\Windows\SYSTEM32\WINNSI.DLL LoadedModule[47]=C:\Windows\SYSTEM32\WINMMBASE.dll LoadedModule[48]=C:\Windows\system32\MSCTF.dll LoadedModule[49]=C:\Windows\SYSTEM32\GLU32.dll LoadedModule[50]=C:\Windows\SYSTEM32\DDRAW.dll LoadedModule[51]=C:\Windows\SYSTEM32\VERSION.dll LoadedModule[52]=C:\Windows\SYSTEM32\dwmapi.dll LoadedModule[53]=C:\Windows\system32\MSASN1.dll LoadedModule[54]=C:\Windows\SYSTEM32\ucrtbase.DLL LoadedModule[55]=C:\Windows\SYSTEM32\cfgmgr32.dll LoadedModule[56]=C:\Windows\system32\DEVOBJ.dll LoadedModule[57]=C:\Windows\SYSTEM32\DCIMAN32.dll LoadedModule[58]=C:\Windows\SYSTEM32\api-ms-win-core-localization-l1-2-1.DLL LoadedModule[59]=C:\Windows\SYSTEM32\CRYPTBASE.dll LoadedModule[60]=C:\Windows\SYSTEM32\bcryptPrimitives.dll LoadedModule[61]=C:\Windows\system32\uxtheme.dll LoadedModule[62]=C:\Windows\SYSTEM32\shcore.dll LoadedModule[63]=C:\Windows\SYSTEM32\d3d11.dll LoadedModule[64]=C:\Windows\SYSTEM32\dcomp.dll LoadedModule[65]=C:\Windows\SYSTEM32\d3d10warp.dll LoadedModule[66]=C:\Windows\SYSTEM32\clbcatq.dll LoadedModule[67]=C:\Windows\SYSTEM32\dbghelp.dll LoadedModule[68]=C:\Windows\SYSTEM32\dwrite.dll LoadedModule[69]=C:\Windows\System32\netprofm.dll FriendlyEventName=Dejó de funcionar ConsentKey=BEX64 AppName=flutter_desktop AppPath=D:\SOFTWARE\Nueva carpeta\flutter_desktop.exe NsPartner=windows NsGroup=windows8
We're seeing crashes on Windows across multiple versions, not just Windows Server.
The vast majority of the errors are INVALID_POINTER_READ_LEAK_c0000005_permission_handler_windows_plugin.dll!Unknown, changing to version 9.1.0 (which is one version before Windows support was added) has resolved the issue for us.

Changing to version 9.1.0 won't crash because it does not generate the dll, but then if I need to check permissions on windows it will not work.
Hi, how to install 9.1.0 and is this the only solution to the problem? Will there be any fixes in the next versions?