Skip to content
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

Forced Closing #16

Open
Cruzan80 opened this issue Dec 9, 2023 · 9 comments
Open

Forced Closing #16

Cruzan80 opened this issue Dec 9, 2023 · 9 comments

Comments

@Cruzan80
Copy link

Cruzan80 commented Dec 9, 2023

When I load the program, it force closes almost immediately. It does not matter if the Kindle is plugged in or not. Kindle Scribe, Windows 10.

@weto91
Copy link
Owner

weto91 commented Dec 9, 2023

Hello, have you installed Calibre with any Calibre library and books in it?

@Cruzan80
Copy link
Author

Cruzan80 commented Dec 9, 2023 via email

@weto91
Copy link
Owner

weto91 commented Dec 9, 2023

Okey, maybe thats the problem. The application does not manage network mappings... So you must transfer the library to one of the local partitions to run this application...

Regards.

@Cruzan80
Copy link
Author

Cruzan80 commented Dec 9, 2023 via email

@weto91
Copy link
Owner

weto91 commented Dec 10, 2023

No, if is mapped with drive letter, thats not the problem. Can you attach :%APPDATA%/Calibre/gui.json file? in this file, are listed all Calibre libraries, That way I see how it is exposed and we start looking for the problem from there.

Thanks.

@Cruzan80
Copy link
Author

Cruzan80 commented Dec 13, 2023 via email

@weto91
Copy link
Owner

weto91 commented Dec 13, 2023

If you have titles with strange symbols, it is possible that the application could crash. During development, tests were carried out with a wide variety of titles, but it is possible that there is a title that contains a symbol that we have not handled and fails.

In principle, it doesn't matter how long the title is, if caliber allows a length, so does this application.

If it fails again, send me the application log file and we can try to figure out what's happening (%APPDATA%/Kindle Cover Fixer/*.log)

Thank you.

@SlowWap
Copy link

SlowWap commented Mar 5, 2024

Fixed by adding a 'connection.open' test in the Libraries.cs file. Test is valid database can be opened (mapped drive, network URL, etc...). Quick and dirty code so expection is not thrown in ImageCover.cs...

//test if library can be opened
try
{
//
string data = string.Empty;
string cs = @"URI=file:" + library + @"\metadata.db";
using SQLiteConnection connection = new(cs);
connection.Open();
//
connection.Close();

//Add library to list
if (!library.Contains("[ERROR]"))
{
    libraryPath.Items.Add(library);
}
else
{
    DisableControl(findBooks);
    DisableControl(generateButton);
    MessageBox.Show(Strings.CheckLibrary, Strings.CheckLibraryTitle, MessageBoxButton.OK, MessageBoxImage.Error);
}
LogLine("LIBRARY", "Library: " + library + " loaded.");

}
catch (Exception)
{
//don't add lib to list
;
}

@SlowWap
Copy link

SlowWap commented Mar 5, 2024

Also need a busy wait on... CheckKindleType() timed event, so that is does not fire when in FindBookTasks or TransferFilesToKindle because MTP devices will throw an exception if busy doing file transfer while an enumeration is attempted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants