Bug No image loading

Cloudless

New member
Running Mafia 20.7, Win 10 Home, Java 1.8.0.
Seems to be independent of browser; not displaying images in the main interface either.
Mafia isn't caching anything but I tried clearing anyway.
Only other thing I can think to add is that the exe incorrectly returns 'No java?' while the jar runs fine.

Don't spose anyone knows of a fix? Wasn't sure whether to file as a bug report but since I'm not doing anything I wouldn't usually...
images.png
 

MCroft

Developer
Staff member
Are you running a nightly build of Mafia or the 20.7 release from SourceForge?

If you go to the About window, it should give you a more complete version information page. The r20747 in my case is a nightly build from revision 20747.
About KoLmafia.png
If you don't have that, or the Copyright says 2005-2020, you should try a recent jar from https://ci.kolmafia.us

There have been changes in KoL that the July 2020 release may not be compatible with.
 

Veracity

Developer
Staff member
Just noticed it is not caching images for me any more, either.
When did that change?
*puzzled*
 

MCroft

Developer
Staff member
Just noticed it is not caching images for me any more, either.
When did that change?
*puzzled*
The most recent item in my images folder is thwaitquantum.gif from May 14. I may not have seen anything new more recently than that.
 

MCroft

Developer
Staff member
Do either of you have an alias for your mafia user folder? Not sure it's related, but there was some work on file opening commands.
 

Rinn

Developer
I'm not sure what you're asking, but only thing non-standard I'm doing is running on a linux host with -DuseCWDasROOT=true to use the current working directory instead of ~/.kolmafia.
 

heeheehee

Developer
Staff member
I too have some images last modified today:

adventureimages/hellion.gif and itemimages/goldmonkey.gif.

The former is odd because I don't recall encountering any hellions recently, and anecdotally when I went to check whether I was hit by this yesterday, I saw the same thing (where hellion.gif was last updated that day).

(I too am using Linux, but am using the default ~/.kolmafia.)

I ran a more sophisticated series of steps to try to reproduce incontrovertibly.

I first backed up my images/ directory (`cp -r images images.bak`).

I then opened up Mafia, and ran `cache clear` in the CLI, which clears the image cache.

I confirmed that my images/ directory then just had some chit files, and was otherwise empty.

I then opened up the relay browser. I saw images show up in the relay browser.

I then looked into my images/ directory, and indeed, there were a bunch of images.

An observation, from looking at one of the files:

Bash:
$ stat images/otherimages/main/island.gif                                         
  File: images/otherimages/main/island.gif
  Size: 1249          Blocks: 8          IO Block: 4096   regular file
Device: 10306h/66310d    Inode: 4325437     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/   <my username>)   Gid: (  985/   users)
Access: 2021-06-04 08:35:50.194234498 -0400
Modify: 2016-03-28 16:14:52.000000000 -0400
Change: 2021-06-04 08:35:50.194234498 -0400
 Birth: 2021-06-04 08:35:50.194234498 -0400

Note that the mtime is much older than the other times. Presumably we propagate that from whatever KoL sends to us.
 

heeheehee

Developer
Staff member
I tried the same thing, with ~/.kolmafia now as a symlink to ~/.kolmafia2:
Bash:
$ cd ~
$ mv  .kolmafia{,.bak}
$ ln -s .kolmafia{.bak,}

Initially, I thought I could partially reproduce, since when I refreshed the relay browser, it had only generated one file (for my current class avatar).

Alas, it was actually just my browser caching the images for me. Force-refreshing (ctrl-shift-r) populated ~/.kolmafia/images with all the other ones.
 

heeheehee

Developer
Staff member
Cloudless, Veracity -- can you reproduce this with r20742 (Jenkins build page if you don't want to blindly click a link that downloads a file)?

That should determine whether the change that MCroft alluded to is at fault.
 
Top