sgminer-dev / sgminer

Scrypt GPU miner
GNU General Public License v3.0
629 stars 825 forks source link

Black screen (when using Windows/pdcurses) #78

Open sological opened 10 years ago

sological commented 10 years ago

I think this patch will help those getting a black screen when using curses (like me)

Edit: Perhaps I spoke too soon. Can't seem to replicate my first results... Need to investigate more. It's an annoying problem. It works with --compact (and -T of course)

diff --git a/sgminer.c b/sgminer.c
index 9f793b1..40d5007 100644
--- a/sgminer.c
+++ b/sgminer.c
@@ -2233,6 +2233,7 @@ static void curses_print_devstatus(struct cgpu_info *cgpu, int count)
        cg_wprintw(statuswin, "%s", logline);

        wclrtoeol(statuswin);
+       refresh();
 }
 #endif
veox commented 10 years ago

It would be best if you described the issue which the patch is for.

sological commented 10 years ago

Of course. For me and others I've seen on forums the command windows turns black when curses initializes. I'm getting output before switch and after I press Q to quit. If I use --compact or -T I have visible text all the time. This is true like 95% of the times I try, sometimes it actually works anyway. I'm running a MinGW version on windows.

gdevenyi commented 10 years ago

Sounds like a bug in some curses versions. Does this change add CPU load to sgminer though?

sological commented 10 years ago

No change you can measure.

sological commented 10 years ago

Ok, disregard everything above. It's obvious now that there are bugs in pdcurses making this happen. At least on Win 8.1 64bit. I've found a work around though. Start with --compact to get to program to start without black window and then change to non-compact with commands 'D' and 'M'. I have seen others with this problem so perhaps it could be mentioned in the docs?

pjones02 commented 10 years ago

I had the black screen with both windows and linux using the ATI 13 driver. The issue was not with curses there is something funny with the driver. The issues only happened if I had more then one video card in my system. I upgraded to the v14 beta driver and issues had gone away.

eightsixeight commented 10 years ago

i can say i have same problems, latest build, after a while 1-2 hours mining anything i get bsod, Black screen of death.. computer unresponsive, on reboot in event log i see this

Faulting application name: sgminer.exe, version: 0.0.0.0, time stamp: 0x53315d5b Faulting module name: libpdcurses.dll, version: 0.0.0.0, time stamp: 0x4c11ea2e Exception code: 0xc0000005 Fault offset: 0x000012fe Faulting process id: 0x23f4 Faulting application start time: 0x01cf5735f6177c91 Faulting application path: C:\cgi\go\sgminer.exe Faulting module path: C:\cgi\go\libpdcurses.dll Report Id: 350c727f-c329-11e3-9367-005056c00001

libpdcurses.dll seems o be compiled 6/11/2010 thats all i can see

Bllacky commented 10 years ago

All my rigs run 24/7 without an issue.

eightsixeight commented 10 years ago

it seems that issue is caused by nscrypt with powertune > then -10, like 0 or 20...

ran for 12 hours straight at -10...still should not be pdcurses related right ?

Bllacky commented 10 years ago

No, this is related to your video card probably. Curses is more or less just for displaying the information as far as I know.