mjrgh / PinballY

A table browser and launcher ("front end") for virtual pinball cabinets.
Other
47 stars 22 forks source link

Must run as Administrator if installed in read-only folder, otherwise crashes on media load #32

Open gate001 opened 5 years ago

gate001 commented 5 years ago

Hi,

When I run PinballY and display a table without media there is no problem but if I display a table with media the application PinballY closes. I am forced to run PinballY in Administrator mode to not have this problem.

mjrgh commented 5 years ago

You definitely should not be running in Administrator mode.

Please read https://github.com/mjrgh/PinballY/wiki/How-to-write-a-good-bug-report in the Wiki for tips on how to get this resolved.

gate001 commented 5 years ago

I do not know why but my folders were all read only (the files were Ok). I selected the pinballY folder, property, uncheck read only and applied to all sub-folders. My problem is solved.

This is my first front-end that I installed, so I don’t know all the sub-folder possible in the Media folder. Do you have a list of all the possible folder?

mjrgh commented 5 years ago

I do not know why but my folders were all read only (the files were Ok).

Ah, that explains it.

I selected the pinballY folder, property, uncheck read only and applied to all sub-folders. My problem is solved.

Great - glad you found the solution.

Did you install from the MSI or the ZIP? I can't think of any reason either one should be creating read-only folders, but that must be what happened. Is there any possibility that the root folder where you installed everything was somehow protected (so that Windows would have added the read-only property to everything)?

This is my first front-end that I installed, so I don’t know all the sub-folder possible in the Media folder. Do you have a list of all the possible folder?

If you look in the help files under Files & Folders, that has an explanation of the folder structures for the media and database files. Take a look at that and let me know if that helps.

You can also use the "Show Media Files" command on the Game Setup menu to see the full set of media files for a particular game. Press "0" (that's the digit zero) to bring up the Operator Menu, select Game Setup, then select Show Media Files. That lets you see the exact name and location of each media file for the current game.

gate001 commented 5 years ago

I used the MSI file. After checking my C: \ Pinball folder (I installed everything in this folder), it was in read-only. When I installed PinballY, the folder probably inherited from the parent folder.

I looked in the help file under Files and Folders and all my questions are answered .... good job MRJ

mjrgh commented 5 years ago

That makes sense. I'll do some tests and see if I can get the same thing to happen with the read-only folders. It would be good to detect when this happens at some point (in the installer, perhaps, or when first running the program) and show an explanatory error about the problem.

mjrgh commented 5 years ago

Hi again! I haven't had any luck reproducing the permissions issue, so I'm guessing it's some combination of the owner or security settings that I haven't tried. Assuming you haven't made any changes to the root drive permissions, could you take a screen shot of the Security tab from the Windows desktop Properties window for your C:\ drive? You'll probably actually have to take screen shots with each "Group or user name" selection highlighted, since it only shows the permission settings for one group/user at a time. It might also be good to include the Advanced settings box (opened by the "Advanced" button).

It would be nice to figure out what was going on so I can at least add some kind of detection and warning about the condition, so that it's not as mysterious the next time someone runs into the same thing, but if it's not easily reproducible with your current system setup then I can just wait until it comes up again, if it ever does.

gate001 commented 5 years ago

Here they are, in an attachment, is that what you wanted?

If it's not that, you have to be more precise in how to get the information because I only have computers with Ubuntu, my only computer with Windows is my Pincab. untitled1 untitled2 untitled3 untitled4

mjrgh commented 5 years ago

Thanks! Those screen caps are exactly what I had in mind. I'll try contriving a similar set of permissions and see if that triggers the read-only install for me.

mjrgh commented 5 years ago

One more question. I tried setting up a folder mimicking those permissions, and I can't run the MSI setup in regular user mode because of the permissions. Did you have to run Setup in Admin mode when you installed? If not, then I'm probably missing something in replicating the permissions, so I wanted to double-check.

gate001 commented 5 years ago

It's been a few months since I installed PinballY. I had installed all the other software at the same time (VPX, FP, DOF, Pinscape, Pinvol) so I do not really remember what I did for PinballY, but what you say rings a bell. I probably created the folder manually before installation.

mjrgh commented 5 years ago

Just a quick update - I haven't had any luck hitting upon the "right" combination of permissions/attributes to trigger this. I'm going to leave it open and mark it as "unsolved", since I'm sure there's some problem here that should be addressed if we can just figure out what the right conditions are. If anyone else comes across the same symptoms, please post here - and please preserve the folder exhibiting the problem so that we can figure out what the key feature is.