Debugging on Win

Get help, report and discuss bugs.
Post Reply
Safihre
Posts: 5
Joined: 06 Apr 2016, 11:38

Debugging on Win

Post by Safihre » 06 Apr 2016, 11:46

17.0-testing-r1660 was crashing on one NZB every time, so I wanted to install the debug version to inform you of the problem.
But I think I am doing something wrong?
It installed fine and I can run it, but as soon as it starts downloading I get a popup:
Image
This also appears in the logs:

Code: Select all

Wed Apr  6 13:35:11 2016	8868	2300	INFO	c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector (1232) : std::vector<__int64,std::allocator<__int64> >::operator[]
But I don't have Visual Studio, do I need to install that first before I can use the debug version?

hugbug
Developer & Admin
Posts: 7418
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Debugging on Win

Post by hugbug » 06 Apr 2016, 12:16

You don't need Visual Studio for the debug version. This dialog is probably part of Visual Studio runtime and it's shown when an exception occurs.

This particular exception-bug is already fixed in development. I'm going to release a new testing version soon. If you want I can send you current development version. Please send me a note to nzbget@gmail.com.
Wed Apr 6 13:35:11 2016 8868 2300 INFO c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector (1232) : std::vector<__int64,std::allocator<__int64> >::operator[]
Just wondering, are there more callstack lines or this one only in the log?

Safihre
Posts: 5
Joined: 06 Apr 2016, 11:38

Re: Debugging on Win

Post by Safihre » 06 Apr 2016, 12:36

Aah good to know you were already aware of the problem.

Couldn't find any other callstack lines. But after this one the program freezes, so wasn't able to do more testing :P

hugbug
Developer & Admin
Posts: 7418
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Debugging on Win

Post by hugbug » 06 Apr 2016, 12:45

Safihre wrote:But after this one the program freezes
It should terminate on an exception. If it freezes - well, not bad too.
so wasn't able to do more testing
That's OK. What I meant the callstack should (hopefully) contain more than one line and include the whole call stack trace, not just the last code place where the error happen. The printing of call stack is however not a language feature and is achieved via hacks, may not always work as desired, unfortunately.

Safihre
Posts: 5
Joined: 06 Apr 2016, 11:38

Re: Debugging on Win

Post by Safihre » 06 Apr 2016, 12:49

No just that line in the middle of other output:

Code: Select all

Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	header=Accept: */* (WebServer.cpp:126:WebProcessor::ParseHeaders)
Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	header=Referer: http://127.0.0.1:6789/ (WebServer.cpp:126:WebProcessor::ParseHeaders)
Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	header=Accept-Encoding: gzip, deflate (WebServer.cpp:126:WebProcessor::ParseHeaders)
Wed Apr  6 13:35:11 2016	8868	10140	DEBUG	Destroying Thread (Thread.cpp:88:Thread::~Thread)
Wed Apr  6 13:35:11 2016	8868	2300	INFO	f:\dd\vctools\crt\crtw32\stdcpp\stdthrow.cpp (17) : std::_Debug_message
Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	header=Accept-Language: en-GB,en;q=0.8,nl;q=0.6,de;q=0.4 (WebServer.cpp:126:WebProcessor::ParseHeaders)
Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	header= (WebServer.cpp:126:WebProcessor::ParseHeaders)
Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	URL=/jsonrpc (WebServer.cpp:160:WebProcessor::ParseHeaders)
Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	Authorization= (WebServer.cpp:161:WebProcessor::ParseHeaders)
Wed Apr  6 13:35:11 2016	8868	2300	INFO	c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector (1232) : std::vector<__int64,std::allocator<__int64> >::operator[]
Wed Apr  6 13:35:11 2016	8868	10984	DEBUG	Checking cache, Allocated: 11520000, FlushEverything: 0 (ArticleWriter.cpp:858:ArticleCache::CheckFlush)
Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	X-Auth-Token=fZQOmIMnI8w2GQZBUAIB2xnh6Weu8wDwiX1q2hp3YmJ4BJOT (WebServer.cpp:162:WebProcessor::ParseHeaders)
Wed Apr  6 13:35:11 2016	8868	2300	INFO	\daemon\nntp\statmeter.cpp (85) : ServerVolume::AddData
Wed Apr  6 13:35:11 2016	8868	10984	DEBUG	Checking cache... nothing to flush (ArticleWriter.cpp:890:ArticleCache::CheckFlush)
Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	Final URL=/jsonrpc (WebServer.cpp:202:WebProcessor::ParseUrl)
Wed Apr  6 13:35:11 2016	8868	2300	INFO	\daemon\nntp\statmeter.cpp (412) : StatMeter::AddServerData
Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	Receiving data (full buffer) (Connection.cpp:477:Connection::Recv)
Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	Request={"nocache":1459942511013,"method":"listgroups","params":[]} (WebServer.cpp:110:WebProcessor::Execute)
Wed Apr  6 13:35:11 2016	8868	2300	INFO	\daemon\nntp\articledownloader.cpp (675) : ArticleDownloader::AddServerData
Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	request received from 127.0.0.1 (WebServer.cpp:113:WebProcessor::Execute)
Wed Apr  6 13:35:11 2016	8868	2300	INFO	\daemon\nntp\articledownloader.cpp (349) : ArticleDownloader::Download
Wed Apr  6 13:35:11 2016	8868	12148	DEBUG	MethodName=listgroups (XmlRpc.cpp:396:XmlRpcProcessor::Dispatch)
Wed Apr  6 13:35:11 2016	8868	2300	INFO	\daemon\nntp\articledownloader.cpp (146) : ArticleDownloader::Run

hugbug
Developer & Admin
Posts: 7418
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Debugging on Win

Post by hugbug » 06 Apr 2016, 12:59

That's looking good. When filtering the log by thread-id (2300) it shows the full stack trace with unit names and line numbers:

Code: Select all

Wed Apr  6 13:35:11 2016   8868   2300   INFO   f:\dd\vctools\crt\crtw32\stdcpp\stdthrow.cpp (17) : std::_Debug_message
Wed Apr  6 13:35:11 2016   8868   2300   INFO   c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector (1232) : std::vector<__int64,std::allocator<__int64> >::operator[]
Wed Apr  6 13:35:11 2016   8868   2300   INFO   \daemon\nntp\statmeter.cpp (85) : ServerVolume::AddData
Wed Apr  6 13:35:11 2016   8868   2300   INFO   \daemon\nntp\statmeter.cpp (412) : StatMeter::AddServerData
Wed Apr  6 13:35:11 2016   8868   2300   INFO   \daemon\nntp\articledownloader.cpp (675) : ArticleDownloader::AddServerData
Wed Apr  6 13:35:11 2016   8868   2300   INFO   \daemon\nntp\articledownloader.cpp (349) : ArticleDownloader::Download
Wed Apr  6 13:35:11 2016   8868   2300   INFO   \daemon\nntp\articledownloader.cpp (146) : ArticleDownloader::Run
As for the problem with an error specific to certain nzb, it can be something else, unrelated to this bug.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests