mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2019-03-28, 19:36   #12
pokemonlover123
 
pokemonlover123's Avatar
 
Mar 2016

5·11 Posts
Default No Dice

SFC returned no integrity violation and the no tray selection didn't do anything. I'll continue doing research.
pokemonlover123 is online now   Reply With Quote
Old 2019-03-28, 19:58   #13
pokemonlover123
 
pokemonlover123's Avatar
 
Mar 2016

678 Posts
Default

Okay so I found something weird. It seems that the process starts Prime95 fine, because it shows up in task manager and it disappears properly when I unplug (I have it set to stop when I switch back to battery power). The process starts, and it isn't a ghost process. However, the access violation keeps it from ever actually doing stuff. The icon never appears and it never does any calculations, and then it stops after about 10-15 seconds. All this leads me to think it's either a windows bug or a prime95 bug. Trying to come up with a way to debug.

Last fiddled with by pokemonlover123 on 2019-03-28 at 20:00
pokemonlover123 is online now   Reply With Quote
Old 2019-03-28, 22:15   #14
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

2·4,909 Posts
Default

Where are your data files for Prime95? If they are in Program Files, that might be your issue.
Uncwilly is offline   Reply With Quote
Old 2019-03-28, 22:32   #15
pokemonlover123
 
pokemonlover123's Avatar
 
Mar 2016

678 Posts
Default

All of the data files are in a folder on my desktop. The task scheduler has working dir set to that folder. All files are owned by my user account, which is also the account the task is run under.
pokemonlover123 is online now   Reply With Quote
Old 2019-03-28, 22:37   #16
pokemonlover123
 
pokemonlover123's Avatar
 
Mar 2016

5×11 Posts
Default This is most likely a bug

At this point I'm convinced this is a bug and not a problem with my computer or my configuration. I think I'm gonna email a bug report to George Woltmann tomorrow (as specified on the bottom of the software download page) and get some developer input on this. Hopefully they can figure out what's actually going wrong.
pokemonlover123 is online now   Reply With Quote
Old 2019-03-28, 22:39   #17
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

265A16 Posts
Default

He is here on the forum. He just might not have logged in yet.
Uncwilly is offline   Reply With Quote
Old 2019-03-28, 22:41   #18
pokemonlover123
 
pokemonlover123's Avatar
 
Mar 2016

3716 Posts
Default

Oh yeah. He's the Prime95 account right? Hopefully he'll see this and offer input
pokemonlover123 is online now   Reply With Quote
Old 2019-03-29, 02:12   #19
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

1D6F16 Posts
Default

You are well beyond Windows internals that I am familiar with.

My guess is that it may have something to do with being able to run prime95 as either a normal app or as a service (until Microsoft broke this cool feature several years ago).

The relevant code is:

Code:
	GetStartupInfo (&sui);
	if (sui.dwFlags == 0 || (sui.dwFlags & STARTF_USESHOWWINDOW)) {
		return (WinMainCRTStartup ());
	}
If STARTF_USESHOWWINDOW is not set prime95 tries to run as a service.

Good luck!
Prime95 is online now   Reply With Quote
Old 2019-03-29, 03:33   #20
sdbardwick
 
sdbardwick's Avatar
 
Aug 2002
North San Diego County

5·137 Posts
Default

I wonder if using the service version and putting NET START and NET STOP in batch files would work...
sdbardwick is offline   Reply With Quote
Old 2019-03-29, 09:45   #21
pokemonlover123
 
pokemonlover123's Avatar
 
Mar 2016

3716 Posts
Default

Quote:
Originally Posted by Prime95 View Post
You are well beyond Windows internals that I am familiar with.

My guess is that it may have something to do with being able to run prime95 as either a normal app or as a service (until Microsoft broke this cool feature several years ago).

The relevant code is:

Code:
	GetStartupInfo (&sui);
	if (sui.dwFlags == 0 || (sui.dwFlags & STARTF_USESHOWWINDOW)) {
		return (WinMainCRTStartup ());
	}
If STARTF_USESHOWWINDOW is not set prime95 tries to run as a service.

Good luck!
I suppose that it might be that task scheduler doesnt pass STARTF_USESHOWWINDOW to the programs it runs! That may be causing prime95 to try to run as a service, causing the access violation. I've found a workaround for now, that doesnt require batch files. Have the task run cmd, then parameters are /C path/to/prine95
pokemonlover123 is online now   Reply With Quote
Old 2019-03-29, 13:18   #22
pokemonlover123
 
pokemonlover123's Avatar
 
Mar 2016

5510 Posts
Default

What would happen if the flag STARTF_USESHOWWINDOWS wasn't set and the program still tried to run as a program rather than a service? Would building from source and changing that part to remove the check for that flag work? Or would another error occur from not being passed that flag?
pokemonlover123 is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop and restart assigned Prime95 task? rgirard1 Information & Answers 8 2019-01-14 15:18
Prime95 v29.2 multi-task question Bananarama Software 4 2017-08-25 14:28
Tea Party In Action R.D. Silverman Soap Box 12 2011-09-13 23:03
GPUs in action? davieddy PrimeNet 21 2011-04-02 12:33
Our Courts in Action R.D. Silverman Soap Box 17 2009-05-03 13:01

All times are UTC. The time now is 18:39.


Sun Aug 1 18:39:09 UTC 2021 up 9 days, 13:08, 0 users, load averages: 1.79, 2.05, 2.24

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.