Menu

#84 1.01.win32.all-in-one does not start - 1.00 does

MComix_1.02
closed-fixed
nobody
None
5
2015-09-17
2015-04-11
Soukyuu
No

The 1.01 all in one windows version does not start. There are no error messages at all, the window simply does not appear. Downloaded the 1.00 version and everything works.

Related

Bugs: #85
Bugs: #89

Discussion

1 2 > >> (Page 1 of 2)
  • Benoit Pierre

    Benoit Pierre - 2015-04-11

    So you tried starting it from the command line, and there are no errors?

     
  • Soukyuu

    Soukyuu - 2015-04-11

    Exactly. win+x -> command line -> navigate to mcomix folder -> MComix.exe shows and empty line and returns to the command prompt. I can see the exe pop up for a second in task manager, it then goes away.
    Win8.1 x64

     
  • Benoit Pierre

    Benoit Pierre - 2015-04-11

    Anything in MComix.exe.log?

     
  • Soukyuu

    Soukyuu - 2015-04-11

    There is no such file created in the MComix directory. Checked %appdata% as well, but nothing MComix related there either.

     
  • Benoit Pierre

    Benoit Pierre - 2015-04-12

    OK, can you replace library.zip in the MComix folder with the attached one, and see if a MComix.exe.log is created?

    Difference with the original file: I replaced one file (mcomix/portability.pyc), to disable a hack that remove stdout/stderr redirection to the MComix.exe.log file.

     
  • Soukyuu

    Soukyuu - 2015-04-13

    Yes, this time a log is created, see attachment.

     
  • Benoit Pierre

    Benoit Pierre - 2015-04-13

    Progress! Apparently this is a Python bug: https://bugs.python.org/issue23371

    Does using the attached library.zip fix the issue?

    (I replaced mimetypes.pyc by the version from MComix-1.0)

     
  • Soukyuu

    Soukyuu - 2015-04-13

    Yes, that fixes it.

     
  • Benoit Pierre

    Benoit Pierre - 2015-04-13

    @Ark: should we create a new mcomix-1.01-2.win32.all-in-one.zip archive with this patched library?

     
  • Soukyuu

    Soukyuu - 2015-04-13

    ..is 1.02 that far off? I'll stay on 1.00 for now anyway because of that auto-rotate bug I've reported before (bug#80)

     
  • Ark

    Ark - 2015-04-13

    Actually, I like both ideas. My main concern regarding a hot-fixed version is that I can't tell which SVN revision is supposed to reflect the source code this hot-fixed version would be based on. Also, simply moving some compiled files around might break more things than it fixes. Despite that, I don't want to ask Oddegamra too often to test things.

    Therefore, I prefer 1.2. However, we would need some help here, especially from you, Soukyuu: Could you please check whether the bug (or similar bugs) also appears in https://github.com/benoit-pierre/mcomix/tree/bpierre (the current head of the bpierre branch of the Github repository)?

     
  • Benoit Pierre

    Benoit Pierre - 2015-04-13

    The bug is a Python issue, it's independent of the version of MComix, but related to the environment used to generate the Windows distribution:

    • version 1.00 use Python 2.7.4
    • version 1.01 use Python 2.7.9

    The bug is present in 2.7.9, and not 2.7.4.

    So the hotfix would not be a new MComix version, but a new version of the Windows package.

    On the subject of the Windows version, what I would not mind is for someone to test the package I generate with my script on a real Windows machine :).

     
  • Ark

    Ark - 2015-04-13

    So the hotfix would not be a new MComix version, but a new version of the Windows package.

    I see. So it would be a Windows-only rebuilt package version with no MComix source code changed.

    On the subject of the Windows version, what I would not mind is for someone to test the package I generate with my script on a real Windows machine :).

    @Benoit Pierre: Do you have an environment at hand where you could build an mcomix-1.01-2.win32.all-in-one.zip package? Maybe Soukyuu wouldn't mind testing it.

    @Soukyuu: Thank you very much for reporting this bug. Would you mind testing a bit more? You would implicitly test the script Benoit Pierre made. The same script is supposed to build 1.2 so testing now might help us building 1.2, too.

     
  • Benoit Pierre

    Benoit Pierre - 2015-04-13

    The following steps can be done to create mcomix-1.01-2.win32.all-in-one.zip with the hotfix:

    That's all there is to it.

     
  • Soukyuu

    Soukyuu - 2015-04-13

    @Ark: sure, I can do some more testing. Are there instructions on building mcomix on windows somewhere? I used the archlinux mcomix-git aur package to build it on arch, but I have no idea on how to build it on windows.

     
  • Benoit Pierre

    Benoit Pierre - 2015-04-13

    @Soukyuu: can you do another test with the attached library.zip? I changed mimetypes.pyc with the latest source from the Python Mercurial repository, as there was some recent changes related to this (https://hg.python.org/cpython/rev/bf2016a1911f), so this might already be fixed (and available in the next Python release).

     
  • Ark

    Ark - 2015-04-13

    @Soukyuu: Thank you very much. At the moment, for the proposed mcomix-1.01-2.win32.all-in-one.zip package, playing around a bit with the fixes Benoit Pierre introduces here should be already helpful. That is, open various archive formats (including RAR and PDF), open passworded archives, open images of various formats, navigate using various ways (space bar, PgDown/PgUp, Cursor keys, clicking on thumbnailer, etc), enter and leave fullscreen, use the library, zoom, use the "Enhance image" dialog, etc.

     
  • Soukyuu

    Soukyuu - 2015-04-13

    @Benoit Pierre: the latest library.zip works fine, so I guess the fix is already in.

    @Ark:

    • PDF doesn't work, says non-supported format.
    • at one point the thumbnailer wasn't working for some reason (no images displayed) but after opening the same archive again everything worked.
    • regular RAR works fine, including password protected + encrypted filenames
    • RAR5 does not work. updated unrar.dll from the rarlab site and then it works.
    • 7zip does not work if password protected - says no images in archive
    • zip seems to work
    • each time an archive can not be opened, mcomix remains running even after you close it, locking access to the archive in question
    • several image formats work, except gif animation (but that's intended afaik)
    • navigation works as expected
    • enhance image works
    • image transformations work, except for auto-rotate
    • zoom works
    • rotations work (though I expected double page to rotate two pages as one, not individually)
    • bookmarks work
    • library seems to be working as well
    • many strings seem to be stuck on localized ones even if using another language (see bug#85)
     
  • Soukyuu

    Soukyuu - 2015-04-13

    One more thing: programs on windows are supposed to use the %appdata% folder to store their settings, so %appdata%\MComix in this case, not %homepath%\MComix as it does now.

     
  • Benoit Pierre

    Benoit Pierre - 2015-04-14

    Thanks for the feedback.

    • PDF doesn't work, says non-supported format.

    You need the MuPDF tools for PDF support.

      • RAR5 does not work. updated unrar.dll from the rarlab site and then it works.

    Looks like indeed the version included is not up-to-date.

    • 7zip does not work if password protected - says no images in archive

    Yeah, that's a known issue: password protected archive are not supported when using an external executable for decompression.

    • several image formats work, except gif animation (but that's intended afaik)

    Correct, animations are not supported.

    • rotations work (though I expected double page to rotate two pages as one, not individually)

    Agreed.

    • many strings seem to be stuck on localized ones even if using another language (see bug#85)

    This one is really strange...

    One more thing: programs on windows are supposed to use the %appdata% folder to store their settings, so %appdata%\MComix in this case, not %homepath%\MComix as it does now.

    I see. That would be something like "C:\Documents and Settings\<user>\Application Data\Local Settings\MComix"</user> or "C:\Documents and Settings\<user>\Application Data\Mcomix"</user>, right? Maybe we should include a copy of appdirs, to use in place of the current code.

    Back to the Windows package, would mind testing the version in attachment? It's generated using my script (which is Linux only, to answer your earlier question). It uses a different method for generating (pyinstaller instead of py2exe) and includes a few additional things:

    • MuPDF tools for PDF support
    • 7z executable and DLL for 7z archives support
    • the Unrar DLL version is the last one
    • patched mimetypes module
    • more recent version of Pillow (2.8.1)
     
  • Soukyuu

    Soukyuu - 2015-04-14

    @Benoit Pierre:

    • It appears the new windows build does not have the localized strings issue anymore. All strings are in English now (interestingly, the British variant, judging by stuff like "Behaviour" and "colour").
    • PDF now works
    • pass protected .7z now shows a red X icon instead of saying no images. It does show 165 files, but no password prompt is displayed. Encrypting filenames additionally, shows "no image files" as before.
    • any reason you included both the 7z.exe and the .dll? Removing the .exe does not seem to change 7z behavior.
    • thumbnailer does not seem to work on 7z archives
    • if "start in fullscreen" is enabled, unticking rightclick->view->fullscreen has the same behavior as "hide all toolbars" (shortcut I) instead of leaving fullscreen. If started as windowed, both F and (un)ticking view->fullscreen behave the same.
    • image auto-rotation does not work still
    • rotations of double pages still don't rotate as one
    • RAR5 works now

    Everything else seems to be working.

    I see. That would be something like "C:\Documents and Settings\<user>\Application Data\Local Settings\MComix" or "C:\Documents and Settings\<user>\Application Data\Mcomix", right? Maybe we should include a copy of appdirs, to use in place of the current code.</user></user>

    Actually, ever since vista the dirs are "C:\Users\<username>\Appdata\Local" for local settings and "C:\Users\<username>\Appdata\Roaming" for the roaming profile settings. I am not sure what the difference between those two is, but most applications store settings in the "\Roaming" folder. I think there is still some redirection for apps that use the old paths, but I wouldn't rely on it.</username></username>

     
  • Benoit Pierre

    Benoit Pierre - 2015-04-14

    Just to clarify, the MComix version is the same as 1.01, the numbering change to 1.1 is for PEP compliance (easier to generate the package). I think the next MComix version will probably be numbered 1.2.

    • It appears the new windows build does not have the localized strings issue anymore. All strings are in English now (interestingly, the British variant, judging by stuff like "Behaviour" and "colour").

    Okay.

    • any reason you included both the 7z.exe and the .dll? Removing the .exe does not seem to change 7z behavior.

    It's needed by the executable. Don't you already have 7z installed? So the DLL is already present in your PATH.

    I see. That would be something like "C:\Documents and Settings\<user>\Application Data\Local Settings\MComix" or "C:\Documents and Settings\<user>\Application Data\Mcomix", right? Maybe we should include a copy of appdirs, to use in place of the current code.</user></user>

    Actually, ever since vista the dirs are "C:\Users\<username>\Appdata\Local" for local settings and "C:\Users\<username>\Appdata\Roaming" for the roaming profile settings. I am not sure what the difference between those two is, but most applications store settings in the "\Roaming" folder. I think there is still some redirection for apps that use the old paths, but I wouldn't rely on it.</username></username>

    Right, the appdirs module seems to be handling this correctly then:

        Win 7  (not roaming):   C:\Users\<username>\AppData\Local\<AppAuthor>\<AppName>
        Win 7  (roaming):       C:\Users\<username>\AppData\Roaming\<AppAuthor>\<AppName>
    

    Thanks for testing!

     
  • Soukyuu

    Soukyuu - 2015-04-14

    It's needed by the executable. Don't you already have 7z installed? So the DLL is already present in your PATH.

    Yes, I have it installed. Did not know it was added to the PATH automatically on windows, but apparently it is. I'm taking it the 7z issues are because mcomix is using the .exe and not the .dll directly?

    Thanks for testing!

    You're welcome~

     

    Last edit: Soukyuu 2015-04-14
  • Benoit Pierre

    Benoit Pierre - 2015-04-14

    I'm taking it the 7z issues are because mcomix is using the .exe and not the .dll directly?

    Correct.

     
  • Ark

    Ark - 2015-04-15

    I attached an mcomix-1.01-2.win32.all-in-one.zip based on https://sourceforge.net/p/mcomix/bugs/84/#3286.

    @Soukyuu: Please check whether the attached version works on Windows 8.1, again. (Just make sure that it starts without crashing.)

    I will ask Oddegamra to test it for XP as well. If it works there and with 8.1, let us hope that the Windows versions between them work as well.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB