Content-Length: 277464 | pFad | http://github.com/flutter/flutter/issues/89252

1F Handle "The file or directory is corrupted and unreadable, errno = 1392" in error handling io during file creation · Issue #89252 · flutter/flutter · GitHub
Skip to content

Handle "The file or directory is corrupted and unreadable, errno = 1392" in error handling io during file creation #89252

@zanderso

Description

@zanderso

Seen in crash logging during flutter packages get while rendering a generated plugin registrant from a template. The tool can likely not recover from this, so it should be added to error handling io to throw a tool exit to ask the user to fix it.

On version 2.6.0-0.0.pre dev

Thread 0 main threadFileSystemException: FileSystemException: Cannot create file, path = 'E:\appName\ios\Runner\GeneratedPluginRegistrant.h' (OS Error: The file or directory is corrupted and unreadable.
, errno = 1392)
at _File.throwIfError(file_impl.dart:635)
at _File.createSync(file_impl.dart:273)
at ForwardingFile.createSync(forwarding_file.dart:23)
at ErrorHandlingFile.createSync.<anonymous closure>(error_handling_io.dart:286)
at _runSync(error_handling_io.dart:597)
at ErrorHandlingFile.createSync(error_handling_io.dart:285)
at _renderTemplateToFile(flutter_plugins.dart:31)
at _writeIOSPluginRegistrant(flutter_plugins.dart:752)
at injectPlugins(flutter_plugins.dart:1068)
at <asynchronous gap>(async)
at FlutterProject.ensureReadyForPlatformSpecificTooling(project.dart:338)
at <asynchronous gap>(async)
at PackagesGetCommand.runCommand(packages.dart:173)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1125)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at CommandRunner.runCommand(command_runner.dart:209)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand.<anonymous closure>(flutter_command_runner.dart:288)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:236)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:62)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at main(executable.dart:92)
at <asynchronous gap>(async)

/cc @christopherfujino

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: crashStack traces logged to the consoleteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/flutter/flutter/issues/89252

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy