Repository navigation
[pigeon] 0.1.9 crashes on Windows #67227
Description
Activity
- changed the title
[-][pigeon] 0.1.9 crashes on execution[/-][+][pigeon] 0.1.9 crashes without arguments[/+]on Oct 3, 2020 - changed the title
[-][pigeon] 0.1.9 crashes without arguments[/-][+][pigeon] 0.1.9 crashes on Windows[/+]on Oct 3, 2020 creativecreatorormaybenot commented
on Oct 3, 2020 ContributorAuthorMore actions@gaaclarke
0.1.9crashes for me with this exception all the time actually, even when I specify the--inputargument.0.1.7always works fine.- addedp: pigeonrelated to pigeon messaging codegen toolrelated to pigeon messaging codegen toolplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyc: crashStack traces logged to the consoleStack traces logged to the console
on Oct 5, 2020 Thanks the crash is here somewhere in bin/pigeon.dart:
final String tempFilename = path.join(tempDir.path, '_pigeon_temp_.dart'); await File(tempFilename).writeAsString(code); final ReceivePort receivePort = ReceivePort(); Isolate.spawnUri(Uri.parse(tempFilename), args, receivePort.sendPort);
I'm guessing
Uri.parsemight work on *nix computers but not windows computers. It will take me a minute to get a windows environment setup if you want to play with it in the meantime.Reacted by creativecreatorormaybenotcreativecreatorormaybenot commented
on Oct 5, 2020 ContributorAuthorMore actions@gaaclarke I will try to use https://api.dart.dev/stable/2.10.0/dart-io/File/path.html instead.
Will try to run that later today (currently not on a Windows machine 😅 😂).
Reacted by gaaclarkecreativecreatorormaybenot commented
on Oct 5, 2020 ContributorAuthorMore actions@gaaclarke I was able to fix it 🙌 It turns out, there is
Uri.filefor file paths on Windows :)Here is the fix: flutter/packages#216
Hi,
System: Windows0.1.07 - Working
Change to version 0.1.12
Errorflutter pub run pigeon --input pigeons/messages.dart
Unhandled exception:
IsolateSpawnException: Unable to spawn isolate: ../../../ManuelP1/AppData/Local/Temp/bb5cb0d1/pigeon_temp.dart:1:8: Error: Error when reading '../../../MANUELP1/AppData/Local/Temp/bb5cb0d1/........
..Manuel;%20PerezDocumentssdkpigeonsmessages.dart': The system cannot find the file specified.import '..........\Manuel Perez\Documents\sdk\pigeons\messages.dart';
Reacted by creativecreatorormaybenotThis thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Aug 11, 2021 - addedpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
on Jul 5, 2023
Bug
When executing
flutter pub run pigeon(tested on Windows) with version0.1.8or0.1.9, the command crashes immediately with the following error message:Crash when compiling pigeon_temp_.dart (click to expand)
Flutter versions
Notes
@gaaclarke You noted in the changelog for version
0.1.9that this crash should be fixed:https://github.com/flutter/packages/blame/4b576c0da9814b71db4decc6bbea14b5bb4e63fb/packages/pigeon/CHANGELOG.md#L3
However, it still appears for me.