Giter Club home page Giter Club logo

Comments (5)

Wunkolo avatar Wunkolo commented on May 28, 2024

I'm curious if this is because of the apparent space/line-break in the user's path name between Dark(space)Matter02 causing path resolution issues? I wonder if this is how others have been encountering DUMP folder issues.

from uwpdumper.

DiamondSphinx avatar DiamondSphinx commented on May 28, 2024

Im afraid that regediting to make a user folder w/o a space is a bit more in-depth than what I am comfortable with.
Do you have any other ideas I could test out?

from uwpdumper.

Wunkolo avatar Wunkolo commented on May 28, 2024

The code seems to be failing here in particular:

if( fs::create_directories(WritePath.parent_path(), ErrorCode) == false && ErrorCode )
{
const std::string ErrorMessage(ErrorCode.message());
std::wstring WErrorMessage;
WErrorMessage.assign(ErrorMessage.begin(), ErrorMessage.end());
IPC::PushMessage(
L"Error creating subfolder: %s\n\t%s\n",
WritePath.parent_path().c_str(),
WErrorMessage.c_str()
);
continue;
}

And I can only fathom that it is due to the fact that your username has a space in it. Though in my testing it seems to work just fine to have spaces and . characters and such mixed into the path.

#include <filesystem>
namespace fs = std::filesystem;

int main()
{
    fs::path WritePath = L".\\Test Space\\Path.With.Dot\\File";
    std::wprintf(L"Writing to path: %s\n", WritePath.c_str());
    std::error_code ErrorCode;
    if( fs::create_directories(WritePath.parent_path(), ErrorCode) == false && ErrorCode )
    {
        const std::string ErrorMessage(ErrorCode.message());
        std::wstring WErrorMessage;
        WErrorMessage.assign(ErrorMessage.begin(), ErrorMessage.end());
        std::wprintf(
            L"Error creating subfolder: %s\n\t%s\n",
            WritePath.parent_path().c_str(),
            WErrorMessage.c_str()
        );
    }
}

So this is likely not the case.. I'm at a bit of a loss as to what part of the path it is failing to resolve. Somewhere in the MSVC implementation of create_directories is causing ERROR_CANT_RESOLVE_FILENAME to be called when resolving paths such as C:\Users\Dark Matter02\AppData\Local\Packages\Microsoft.WindowsCalculator_8wekyb3d8bbwe\TempState\DUMP. At least from within UWP...

from uwpdumper.

DiamondSphinx avatar DiamondSphinx commented on May 28, 2024

On a whim I tried to dump calculator again today and it worked. I have no clue why it works now. I have made no changes to anything at all.
Update: It worked twice before failing again.
Update2: After rebooting it is working consistently....

from uwpdumper.

Wunkolo avatar Wunkolo commented on May 28, 2024

Curious if there is any kind of consistency to pick out from this in case anyone else runs into this. Def don't want to have an rng-based dumper.

from uwpdumper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.