gflags

unknown command line flag 'logtostderr'

前提是你 提交于 2020-01-06 13:32:09
问题 I am running this SIFT program at this site: https://github.com/sanchom/sjm All the stuffs go well until I run my program: $ python extract_caltech.py --dataset_path=[path_to_your_101_Categories_directory] \ --process_limit [num_processes_to_spawn] --sift_normalization_threshold 2.0 -- sift_discard_unnormalized \ --sift_grid_type FIXED_3X3 --sift_first_level_smoothing 0.66 --sift_fast --sift_multiscale \ --features_directory [path_for_extracted_features] In the output, I see this line

unknown command line flag 'logtostderr'

梦想与她 提交于 2020-01-06 13:29:16
问题 I am running this SIFT program at this site: https://github.com/sanchom/sjm All the stuffs go well until I run my program: $ python extract_caltech.py --dataset_path=[path_to_your_101_Categories_directory] \ --process_limit [num_processes_to_spawn] --sift_normalization_threshold 2.0 -- sift_discard_unnormalized \ --sift_grid_type FIXED_3X3 --sift_first_level_smoothing 0.66 --sift_fast --sift_multiscale \ --features_directory [path_for_extracted_features] In the output, I see this line

GFlags setting to catch heap corruption (other than Page Heap)?

百般思念 提交于 2020-01-01 02:32:47
问题 On one production site our application (*) crashes repeatedly, but non-reproducibly. Analyzing the crash dumps clearly shows that it's a heap corruption: The crashes are at different location, but always access violations inside kernel32!HeapFree / ntdll!RtlpLowFragHeapFree . Win Dbg !analyze -v also reports a heap corruption. What we have tried so far is to run the application with the GFlags option Page Heap. The problem is that the memory overhead of Page Heap is such that the application

google-app-engine : Import works only after a refresh

依然范特西╮ 提交于 2019-12-25 18:13:15
问题 After somes problems with a simple import of httplib2 (see my post here), i meet a different problem with the import of gflags. In fact, on dev server, i have an ImportError the first time that I lanch the apps. But, if i refresh the browser, the apps works ! If i looking in logs, i can see : ... ImportError: No module named gflags [App Instance] [0] [dev_appserver.py:2891] INFO "GET / HTTP/1.1" 500 - [App Instance] [0] [py_zipimport.py:148] INFO zipimporter('/usr/lib/python2.5/site-packages

How to benefit from heap tagging by DLL?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-14 03:45:29
问题 How do I use and benefit from the GFlags setting Enable heap tagging by DLL? I know how to activate the setting for a process, but I did not find useful information in the output of !heap -t in WinDbg. I was expecting some output like this: 0:000> !heap -t Index Address Allocated by 1: 005c0000 MyDll.dll 2: 006b0000 AnotherDll.dll so that I can identify which heap was created by which DLL and then e.g. identify the source of a memory leak. Is this a misunderstanding of the term "heap tagging

accessing a list of integer associated with a command line parameter

谁都会走 提交于 2019-12-11 06:02:46
问题 I'm using gflags in c++ for parsing of command line parameters. I would like to have a command line flag that accepts a list of parameters. For example param in the example below. ./myprog --param 0 1 2 3 How can I access a list of integers associated with this parameter? 回答1: gflags not supported array output, its just skipping unknown data, so you can choose: Choice 1, parse args manually before gFlags,but add param to gflags - for no error parsing, for example: #include <stdio.h> #include

How can one mark a flag as required with gflags?

人盡茶涼 提交于 2019-12-07 07:22:39
问题 I use gflags like this: flags.DEFINE_string('logdir', None, 'Directory where logs are stored.') However, I would like gflags to show the help when somebody does not define --logdir . How can I make this flag required? (This looks a bit as if it should be possible, but I couldn't find any documentation about how to use gflags with Python.) 回答1: Your code should look something like this. The MarkFlagAsRequired must come before FLAGS(argv) call. def main(argv): gflags.MarkFlagAsRequired('logdir'

gflags dialog box doesn't open

萝らか妹 提交于 2019-12-07 05:06:36
问题 I am currently trying to debug a memory leak in one of my applications (yeah, that crap again...), and trying to set gflags settings, but the dialog won't open up. I installed the Windows 10 SDK (I am on Windows 7 x64), but it said it works on Win7 as well in the description, so why can I not use it at all? If I start gflags from command line, nothing at all happens, no error, no feedback, nothing. Anybody an idea as to what might be happening on my system? 回答1: According to http://www