mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2017-03-29, 00:45   #1
ThomRuley
 
ThomRuley's Avatar
 
May 2003

13×19 Posts
Default Weird error message

Just started getting a really strange error message with factmsieve.py. I've already run over 400 composites since loading this up.

-> ________________________________________________________________
-> | Running factmsieve.py, a Python driver for MSIEVE with GGNFS |
-> | sieving support. It is Copyright, 2010, Brian Gladman and is |
-> | a conversion of factmsieve.pl that is Copyright, 2004, Chris |
-> | Monico. Version 0.76 (Python 2.6 or later) 10th Nov 2010. |
-> |______________________________________________________________|
-> This is client 1 of 1
-> Running on 4 Cores with 1 hyper-thread per Core
-> Working with NAME = 28Mar
-> Selected default factorization parameters for 112 digit level.
-> Selected lattice siever: gnfs-lasieve4I13e
-> No parameter change detected, resuming...
-> Running setup ...
-> Estimated minimum relations needed: 7.95e+06
-> resuming a block for q from 1750000 to 1850000
-> Running lattice siever ...
-> entering sieving loop
-> making sieve job for q = 1750000 in 1750000 .. 1775000 as file 28Mar.job.T0
-> making sieve job for q = 1775000 in 1775000 .. 1800000 as file 28Mar.job.T1
-> making sieve job for q = 1800000 in 1800000 .. 1825000 as file 28Mar.job.T2
-> making sieve job for q = 1825000 in 1825000 .. 1850000 as file 28Mar.job.T3
-> Lattice sieving algebraic q from 1750000 to 1850000.
-> gnfs-lasieve4I13e -k -o spairs.out.T0 -v -n0 -a 28Mar.job.T0
-> gnfs-lasieve4I13e -k -o spairs.out.T1 -v -n1 -a 28Mar.job.T1
gnfs-lasieve4I13e: L1_BITS=15, SVN $Revision: 406 $
-> gnfs-lasieve4I13e -k -o spairs.out.T2 -v -n2 -a 28Mar.job.T2
gnfs-lasieve4I13e: L1_BITS=15, SVN $Revision: 406 $
-> gnfs-lasieve4I13e -k -o spairs.out.T3 -v -n3 -a 28Mar.job.T3
Traceback (most recent call last):
File "C:\ggnfs\example\factmsieve.py", line 2066, in <module>
run_siever(client_id, num_clients, SV_THREADS, fact_p, lats_p)
File "C:\ggnfs\example\factmsieve.py", line 1701, in run_siever
ret = monitor_sieve_threads()
File "C:\ggnfs\example\factmsieve.py", line 1650, in monitor_sieve_threads
read_spq(fact_p)
File "C:\ggnfs\example\factmsieve.py", line 1638, in read_spq
t = int(chomp(tmp))
ValueError: invalid literal for int() with base 10: ''
siever terminated

C:\ggnfs\example>

I tried changing the composite to see if starting fresh would help. Exact same error. I don't have enough experience in Python to make much sense of the error message. Any ideas?
ThomRuley is offline   Reply With Quote
Old 2017-03-29, 00:50   #2
ThomRuley
 
ThomRuley's Avatar
 
May 2003

F716 Posts
Default

Not sure if this helps or not, but factmsieve is still able to find polynomials just fine.
ThomRuley is offline   Reply With Quote
Old 2017-03-29, 11:23   #3
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

722110 Posts
Default

First, please use [code] tags.

Second, the error is that the script has a variable that's an empty string '' where instead it's expecting a number (and the error is saying the empty string is not a valid [base 10] number). As for what's causing that, I couldn't tell you, I know nothing about factmsieve.py. Looks like something's going wrong when it creates sieving threads?
Dubslow is offline   Reply With Quote
Old 2017-03-29, 12:26   #4
ThomRuley
 
ThomRuley's Avatar
 
May 2003

13·19 Posts
Default

You want something even more bizarre? I reinstalled the program - recopied every file to the working directory from the zips I used at the beginning. Exact same error message. Input files were formatted exactly the same as the last 400+ tests.

Really the only thing different was that I came home yesterday to find a momentary power outage had turned the machine off. When I turned it back on everything ran fine.
ThomRuley is offline   Reply With Quote
Old 2017-03-29, 12:30   #5
ThomRuley
 
ThomRuley's Avatar
 
May 2003

13·19 Posts
Default

Quote:
Originally Posted by Dubslow View Post
First, please use [code] tags.

Second, the error is that the script has a variable that's an empty string '' where instead it's expecting a number (and the error is saying the empty string is not a valid [base 10] number). As for what's causing that, I couldn't tell you, I know nothing about factmsieve.py. Looks like something's going wrong when it creates sieving threads?
Code tags?
ThomRuley is offline   Reply With Quote
Old 2017-03-29, 12:33   #6
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by ThomRuley View Post
Code tags?
the one I squared off in red in the attachment.
Attached Thumbnails
Click image for larger version

Name:	codetags.png
Views:	92
Size:	38.2 KB
ID:	15834  
science_man_88 is offline   Reply With Quote
Old 2017-03-29, 14:03   #7
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

52·7·53 Posts
Default

Quote:
Originally Posted by ThomRuley View Post
Code tags?
yes, they make your
Code:
output text
     look
        like
        this
     i.e. nice
and aligned
instead of lo
oking like t
his
(broken an
d misa
ligned)


Last fiddled with by LaurV on 2017-03-29 at 14:04
LaurV is offline   Reply With Quote
Old 2017-03-29, 17:11   #8
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Quote:
Originally Posted by LaurV View Post
yes, they make your
Code:
output text
     look
        like
        this
     i.e. nice
and aligned
instead of lo
oking like t
his
(broken an
d misa
ligned)

And more importantly, they put the text in question inside a scroll-bar'd box, thus significantly reducing pain-to-read levels of the thread.

OP, certainly *seems* like a bug, though like I said I'm of no use in debugging it.
Dubslow is offline   Reply With Quote
Old 2017-03-29, 19:02   #9
ThomRuley
 
ThomRuley's Avatar
 
May 2003

13·19 Posts
Default

Code:
-> ________________________________________________________________
-> | Running factmsieve.py, a Python driver for MSIEVE with GGNFS |
-> | sieving support. It is Copyright, 2010, Brian Gladman and is |
-> | a conversion of factmsieve.pl that is Copyright, 2004, Chris |
-> | Monico. Version 0.76 (Python 2.6 or later) 10th Nov 2010. |
-> |______________________________________________________________|
-> This is client 1 of 1
-> Running on 4 Cores with 1 hyper-thread per Core
-> Working with NAME = 28Mar
-> Selected default factorization parameters for 112 digit level.
-> Selected lattice siever: gnfs-lasieve4I13e
-> No parameter change detected, resuming...
-> Running setup ...
-> Estimated minimum relations needed: 7.95e+06
-> resuming a block for q from 1750000 to 1850000
-> Running lattice siever ...
-> entering sieving loop
-> making sieve job for q = 1750000 in 1750000 .. 1775000 as file 28Mar.job.T0
-> making sieve job for q = 1775000 in 1775000 .. 1800000 as file 28Mar.job.T1
-> making sieve job for q = 1800000 in 1800000 .. 1825000 as file 28Mar.job.T2
-> making sieve job for q = 1825000 in 1825000 .. 1850000 as file 28Mar.job.T3
-> Lattice sieving algebraic q from 1750000 to 1850000.
-> gnfs-lasieve4I13e -k -o spairs.out.T0 -v -n0 -a 28Mar.job.T0
-> gnfs-lasieve4I13e -k -o spairs.out.T1 -v -n1 -a 28Mar.job.T1
gnfs-lasieve4I13e: L1_BITS=15, SVN $Revision: 406 $
-> gnfs-lasieve4I13e -k -o spairs.out.T2 -v -n2 -a 28Mar.job.T2
gnfs-lasieve4I13e: L1_BITS=15, SVN $Revision: 406 $
-> gnfs-lasieve4I13e -k -o spairs.out.T3 -v -n3 -a 28Mar.job.T3
Traceback (most recent call last):
File "C:\ggnfs\example\factmsieve.py", line 2066, in <module>
run_siever(client_id, num_clients, SV_THREADS, fact_p, lats_p)
File "C:\ggnfs\example\factmsieve.py", line 1701, in run_siever
ret = monitor_sieve_threads()
File "C:\ggnfs\example\factmsieve.py", line 1650, in monitor_sieve_threads
read_spq(fact_p)
File "C:\ggnfs\example\factmsieve.py", line 1638, in read_spq
t = int(chomp(tmp))
ValueError: invalid literal for int() with base 10: ''
siever terminated

C:\ggnfs\example>
Like this?
ThomRuley is offline   Reply With Quote
Old 2017-03-29, 20:08   #10
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

10168 Posts
Default

Quote:
Originally Posted by ThomRuley View Post
Just started getting a really strange error message with factmsieve.py. I've already run over 400 composites since loading this up.

-> ________________________________________________________________
-> | Running factmsieve.py, a Python driver for MSIEVE with GGNFS |
-> | sieving support. It is Copyright, 2010, Brian Gladman and is |
-> | a conversion of factmsieve.pl that is Copyright, 2004, Chris |
-> | Monico. Version 0.76 (Python 2.6 or later) 10th Nov 2010. |
-> |______________________________________________________________|
-> This is client 1 of 1
-> Running on 4 Cores with 1 hyper-thread per Core
-> Working with NAME = 28Mar
-> Selected default factorization parameters for 112 digit level.
-> Selected lattice siever: gnfs-lasieve4I13e
-> No parameter change detected, resuming...
-> Running setup ...
-> Estimated minimum relations needed: 7.95e+06
-> resuming a block for q from 1750000 to 1850000
-> Running lattice siever ...
-> entering sieving loop
-> making sieve job for q = 1750000 in 1750000 .. 1775000 as file 28Mar.job.T0
-> making sieve job for q = 1775000 in 1775000 .. 1800000 as file 28Mar.job.T1
-> making sieve job for q = 1800000 in 1800000 .. 1825000 as file 28Mar.job.T2
-> making sieve job for q = 1825000 in 1825000 .. 1850000 as file 28Mar.job.T3
-> Lattice sieving algebraic q from 1750000 to 1850000.
-> gnfs-lasieve4I13e -k -o spairs.out.T0 -v -n0 -a 28Mar.job.T0
-> gnfs-lasieve4I13e -k -o spairs.out.T1 -v -n1 -a 28Mar.job.T1
gnfs-lasieve4I13e: L1_BITS=15, SVN $Revision: 406 $
-> gnfs-lasieve4I13e -k -o spairs.out.T2 -v -n2 -a 28Mar.job.T2
gnfs-lasieve4I13e: L1_BITS=15, SVN $Revision: 406 $
-> gnfs-lasieve4I13e -k -o spairs.out.T3 -v -n3 -a 28Mar.job.T3
Traceback (most recent call last):
File "C:\ggnfs\example\factmsieve.py", line 2066, in <module>
run_siever(client_id, num_clients, SV_THREADS, fact_p, lats_p)
File "C:\ggnfs\example\factmsieve.py", line 1701, in run_siever
ret = monitor_sieve_threads()
File "C:\ggnfs\example\factmsieve.py", line 1650, in monitor_sieve_threads
read_spq(fact_p)
File "C:\ggnfs\example\factmsieve.py", line 1638, in read_spq
t = int(chomp(tmp))
ValueError: invalid literal for int() with base 10: ''
siever terminated

C:\ggnfs\example>

I tried changing the composite to see if starting fresh would help. Exact same error. I don't have enough experience in Python to make much sense of the error message. Any ideas?
It appears that factmsieve.py has successfully started four sieve threads and is in a loop waiting for these threads to complete. When they do so they are supposed to write a file '.last_spq<n> where <n> is the thread number that should contain a single line containing an integer. The script seems to have found and opened such a file but the line where it expects to find an integer is either missing or empty.

Can you see the .last_spq<n> files where <n> is 0, 1, 2 and 3? If so, what do they contain?
Brian Gladman is offline   Reply With Quote
Old 2017-03-29, 21:58   #11
ThomRuley
 
ThomRuley's Avatar
 
May 2003

13×19 Posts
Default

Just opened them up. All four files 0, 1, 2, and 3 - have null eight times, all on one line
ThomRuley is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird error message in small fft and blend samhot84 Information & Answers 4 2014-04-20 19:40
error message help? AurKayne Hardware 3 2005-08-29 09:13
Strange error message FeLiNe Software 7 2005-06-06 05:18
Error message... Xyzzy GMP-ECM 2 2005-03-04 20:17
Error message McBryce NFSNET Discussion 2 2003-07-07 11:35

All times are UTC. The time now is 16:36.

Thu Mar 4 16:36:40 UTC 2021 up 91 days, 12:47, 0 users, load averages: 2.42, 2.25, 2.26

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.