-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Mudlet Crashing When Using Package Exporter #1790
Comments
It seems to me that you are NOT trying to include any other files (fonts, images, etc) in a sub-directory - that still doesn't work IIRC as it creates all the files needed in the "staging" are (a sub-directory with the created package name inside a In fact there is a number of missing error messages from the current package/module exporter code so something could have gone wrong and the user would not know about it. I had some fixes lined up (as PR #1355) but that grown too large, had stalled and then drifted off my radar... 🙁 Superficially it looks like the package exported code has failed to write the Mudlet item data into the Is the file |
🤔 Yeah, what I am wondering is whether that ... Lemme take a look. |
Oh dear, @vadi2 I do not grok the
line ( Of course - with the current lack of error detection/handling - there is also little/no provision to abort the latter if the former fails for any reason. Setting this bug to high priority because it is causing crashes in the field - and because of the mechanism, (part of the code base that was not checked/fixed perhaps when another part that it used was changed) I guess this also makes it a regression. I do not think I can fix it because I do not fully understand how the new asynchronous saving code works... 😢 |
@ImpZyv actually, can you do a |
I have no idea what 'doing a diff' means. The xml in the 'actual' file has nothing in it, though. The xml file in the tmp folder has everything it's meant to, judging from when I opened it the first time. |
I guess you are not on a *nix-like OS - so would not be familiar with the |
W8.1! |
I can reproduce this issue on Win7. A zip file is written with contents: config.lua and test.xml (as I named my package test), both have a file size of 1kb and config.lua has just one line as may be expected. However test.xml has a very basic structure and does not have all my triggers, etc. inside which I did check mark in the aforementioned popup window before clicking "export" with no additional files included. Here are the xml file's contents:
|
Following above instructions, after clicking "export" nothing seems to happen anymore. No Mudlet crash at least. Also no error/success messages, etc. Checking the specified file directory (navigating there myself in a new window, as no link was pointing me there) I found the file with the given name. The contents seem to be as expected. |
IIRC That is another Hindenbug in the module exporter code, I think it is caused by the
|
That's how it worked before... not great but I'll leave the redesign of it to SlySven#4
I'll adjust that given that @SlySven's already done the investigative work above! |
@Kebap does https://ci.appveyor.com/api/buildjobs/gaspbd6ehobx4ykj/artifacts/src%2Fmudlet.zip work with an already existing package ok? |
Testing this version on Win7, it did not crash, but it did not export properly. The test.xml file in the test.zip was created with 0kb size and no contents, even though I did check contents to export. |
Hm, you sure? It worked on Ubuntu and Win10. Could you test again? |
Retried with the same setup, received the same result. The above error may have to do with #1616 as my Win7 user has non-ASCII name. |
Yes, ok. So this issue is fixed, some outstanding ones no. |
#1847 will address the non-ASCII path. |
Brief summary of issue / Description of requested feature:
As the title says, for no apparent reason Mudlet will get the 'Mudlet has stopped working' window when attempting to export a package. The package will 'export' but it's just the config.lua, and a blank xml file, like so:
Steps to reproduce the issue / Reasons for adding feature:
Error output / Expected result of feature
"Mudlet has stopped working"
Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:
I got around it just by using the 'export' button, and 'packaging' things the old fashioned way... I'd prefer to use the package manager, as installation is much smoother that way... But it works for now, I guess.
Yes, I've tried running as admin. Yes, it's allowed through my firewall / anti-virus. Yes, it's still producing the error/crash after doing all of that.
Version 3.10.1
OS8.1
The text was updated successfully, but these errors were encountered: