Commit Graph

7819 Commits

Author SHA1 Message Date
Charlie Fenton b7484ac6cb Mac Installer: update script for new gridrepublic_ss_logo.jpg file, etc; add .txt extension to copyright files in GUI installer extras
svn path=/trunk/boinc/; revision=20359
2010-02-02 12:25:20 +00:00
Charlie Fenton 9eca858ac7 ss_app: Allow branding for GR in a cross-platform way; add hi-res GR logo.
svn path=/trunk/boinc/; revision=20358
2010-02-02 12:19:01 +00:00
David Anderson 7d229ccf4b - graphics API: if font missing, find one that isn't (from Kevin)
svn path=/trunk/boinc/; revision=20350
2010-02-01 19:18:23 +00:00
David Anderson 4ae68c40ac - manager: move Preferences and Options to Task menu.
Give them more descriptive names.
		Clean up mnemonics

svn path=/trunk/boinc/; revision=20321
2010-01-30 22:55:19 +00:00
David Anderson f7d29f6651 - user web: if Akismet rejects thread reply, show warning
svn path=/trunk/boinc/; revision=20318
2010-01-29 17:00:14 +00:00
David Anderson 09b92f0841 - user web: allow zero resource share
- client: allow zero resource share


svn path=/trunk/boinc/; revision=20315
2010-01-29 15:50:47 +00:00
David Anderson 86ccb6eed3 - client: fix my last checkin
svn path=/trunk/boinc/; revision=20296
2010-01-28 13:29:10 +00:00
Charlie Fenton b42fc5617d Mac Sandbox: clear zombies left by running chmod and chown with special privileges
svn path=/trunk/boinc/; revision=20292
2010-01-28 10:29:56 +00:00
David Anderson f716dcf7ae - client: if a project has zero resource share,
treat it as a "backup project":
    fetch work from it only if there is an idle instance
    and no other projects have work.


svn path=/trunk/boinc/; revision=20286
2010-01-28 05:21:14 +00:00
David Anderson 7d4d65e42c - client: remove debug msgs
svn path=/trunk/boinc/; revision=20285
2010-01-28 04:43:31 +00:00
David Anderson ee889ac9dd svn path=/trunk/boinc/; revision=20284 2010-01-27 19:14:29 +00:00
David Anderson d1a3243f57 - client: fix small bug that could interfere with work fetch
on hosts with both NVIDIA and ATI GPU

svn path=/trunk/boinc/; revision=20283
2010-01-27 19:06:40 +00:00
Charlie Fenton 0402d3a93a GR: Fix minor bugs in Mac accessibility reporting kAXWindowAttribute and kAXTopLevelUIElementAttribute
svn path=/trunk/boinc/; revision=20276
2010-01-27 11:00:32 +00:00
Charlie Fenton 8d597082c3 Update sandbox documentation
svn path=/trunk/boinc/; revision=20275
2010-01-27 08:57:37 +00:00
Charlie Fenton a34e16f3a9 Mac Sandbox: To protect authenticators in init_data.xml files, make slots directory group boinc_project and not world-executable,
svn path=/trunk/boinc/; revision=20272
2010-01-27 07:50:07 +00:00
Charlie Fenton e236d3dc22 Mac Sandbox: To protect authenticators in init_data.xml files, make slots directory group boinc_project and not world-executable,
svn path=/trunk/boinc/; revision=20271
2010-01-27 07:38:29 +00:00
David Anderson 04b8cf965f - web: assume all translation files are UTF-8
svn path=/trunk/boinc/; revision=20270
2010-01-27 04:04:17 +00:00
David Anderson 42683a8a31 svn path=/trunk/boinc/; revision=20269 2010-01-27 03:55:46 +00:00
David Anderson b7a07f87a7 - client: when launching app, delete init_data.xml using switcher
prior to trying to write it,
    in case it's owned by another user (e.g., boinc_project)

svn path=/trunk/boinc/; revision=20267
2010-01-26 00:21:57 +00:00
David Anderson 67e438bc6b - transitioner: fix bug where WUs with error_mask <> 0 keep
transitioning every 10 days, hence never become eligible for purging.
    The problem: the transitioner has a "safety net" where,
    if the WU doesn't have a canonical result,
    it arranges for another transition in 10 days.
    Skip this if error_mask<>0.

svn path=/trunk/boinc/; revision=20265
2010-01-25 23:35:16 +00:00
David Anderson 6b3ea3d339 - user web: don't show "database error" if result refers
to deleted app version

svn path=/trunk/boinc/; revision=20251
2010-01-23 00:36:12 +00:00
David Anderson 974ea0469c - DB purge: allow fractional min_age_days (from Travis Desell)
svn path=/trunk/boinc/; revision=20250
2010-01-22 23:55:50 +00:00
David Anderson 03be4edeab - user web: clean up LANG_NAME_* mess
svn path=/trunk/boinc/; revision=20248
2010-01-22 18:09:05 +00:00
Bernd Machenschalk 994950d83d lib: add cal.h to install headers
svn path=/trunk/boinc/; revision=20245
2010-01-22 13:48:40 +00:00
Charlie Fenton bf2e31b6e9 Mac Sandbox: to hide authenticators, make most *.xml files not world-readable
svn path=/trunk/boinc/; revision=20242
2010-01-22 12:34:04 +00:00
Bernd Machenschalk b254fae6a6 lib: Updated Makefile.mingw to include coproc.cpp/h
svn path=/trunk/boinc/; revision=20228
2010-01-21 14:33:43 +00:00
Charlie Fenton ebf83cdd54 MGR: Implement Mac accessibility for Event Log
svn path=/trunk/boinc/; revision=20227
2010-01-21 12:47:09 +00:00
David Anderson b5124fe729 - client: brute-force attempt at eliminating domino-effect preemption:
if job A is unstarted and EDF,
    and there's a job B that is later in the list,
    is started, has the same app version,
    and has the same arrival time,
    move A after B.
- client: remove the "temp_dcf" mechanism,
    which had the same goal but didn't work.
- client: in computing overall debt for a project,
    subtract a term that reflects pending work.
    This should reduce repeated fetches from the same project.
- client simulator: tweaks

svn path=/trunk/boinc/; revision=20223
2010-01-21 00:14:56 +00:00
David Anderson fe7d8b34f3 - client simulator: done for now
svn path=/trunk/boinc/; revision=20204
2010-01-20 06:35:57 +00:00
David Anderson eeffc6de96 - web: translation fix from Nicolas:
"There is a bug in tra() that causes problems if one of the arguments
    contains a replacement marker itself. For example, if the first
    argument contains an encoded URL, which contains '%2', the second
    argument may appear in the middle of the URL."
- client simulator: further fiddling around.  Not done.

svn path=/trunk/boinc/; revision=20201
2010-01-19 23:01:09 +00:00
David Anderson e8f230b4a3 - API: fix crashing bug. There was a leftover memset(aid, 0)
in boinc_parse_init_data_file()
- client sim: make it work again

svn path=/trunk/boinc/; revision=20199
2010-01-19 18:43:17 +00:00
Rom Walton ad60b45f72 - lib: Don't allow the diagnostics threads to be suspended, if a crash happens within
the remaining thread the process will deadlock.

    lib/
        diagnostics.h
        diagnostics_win.cpp
        win_util.cpp

svn path=/trunk/boinc/; revision=20198
2010-01-19 17:22:46 +00:00
David Anderson e2d3f75eef - client and user web: finish the above.
Should add the Adv Prefs dialog as well.

svn path=/trunk/boinc/; revision=20193
2010-01-19 00:38:31 +00:00
David Anderson 20d6b06f5f - client: initial checkin for "don't compute if CPU usage above X"
svn path=/trunk/boinc/; revision=20192
2010-01-19 00:03:38 +00:00
David Anderson 3db80eb5c1 - API: fix crashing bug. Don't memset(0) APP_INIT_DATA;
it contains HOST_INFO, which now contains COPROCS,
    which has a vector.
    Define a clear() for APP_INIT_DATA.

svn path=/trunk/boinc/; revision=20191
2010-01-18 23:01:43 +00:00
David Anderson 956c955639 - scheduler: use COPROC_REQ instead of COPROC when parsing
anonymous-platform app versions.
    Otherwise fractional GPU requirements get truncated to zero.
    Thanks to Crunch3r for identifying the problem.
    

svn path=/trunk/boinc/; revision=20189
2010-01-18 19:22:03 +00:00
Rytis Slatkevičius d6d8037f5d user web: do SQL escaping before storing prefs in the database as some projects store user-editable strings in the preferences.
svn path=/trunk/boinc/; revision=20188
2010-01-18 15:19:23 +00:00
David Anderson 0c1a1421f8 - scheduler/feeder: if any client version number field
(min_core_version etc.) is < 10000,
    multiply it by 100 and print a warning.

svn path=/trunk/boinc/; revision=20187
2010-01-18 04:52:58 +00:00
Charlie Fenton c19625db3a Mac Installer: fix bug launching client when configured as a service
svn path=/trunk/boinc/; revision=20185
2010-01-17 00:44:01 +00:00
David Anderson 4ab335eb49 - user web: make a bunch of strings translatable (from Nicolas)
svn path=/trunk/boinc/; revision=20180
2010-01-16 06:19:19 +00:00
David Anderson e7dcff182f - web DB code: fix PHP warning when enumeration returns nothing.
From Nicolas. fixes #974
- client: tiny code shuffle

svn path=/trunk/boinc/; revision=20178
2010-01-15 23:08:55 +00:00
Rom Walton efd60237f4 - MGR: Use an event handler, the function overload is deprecated.
clientgui/
        ViewNotices.cpp,h

svn path=/trunk/boinc/; revision=20152
2010-01-14 17:48:39 +00:00
David Anderson dba395d5ce - manager: in Notices tab, direct links to default web browser
svn path=/trunk/boinc/; revision=20151
2010-01-13 19:03:54 +00:00
David Anderson bbe7c2ea08 - scheduler: close DB connection on SIGTERM (from Bernd M.)
svn path=/trunk/boinc/; revision=20150
2010-01-13 18:40:43 +00:00
David Anderson 737952dbb5 - server: client version numbers are represented as
10000*major + 100*minor + release,
    rather than 100*major + minor.
    Sometimes you need release-level resolution.
    This affects:
    - app_version.min_core_version
    - config: min_core_client_version_announced
    - config: min_core_client_version
    Projects using these must multiply them by 100.

svn path=/trunk/boinc/; revision=20149
2010-01-13 17:28:59 +00:00
Charlie Fenton 505d099812 MGR: Fix tools menu when using account manager and switching Simple to Advanced View; update XCode project for ViewNotifications* -> ViewNotices*
svn path=/trunk/boinc/; revision=20147
2010-01-13 09:30:21 +00:00
David Anderson 564cd7cece - Notices: put message bodies inside CDATA
- XML_PARSER: handle CDATA

svn path=/trunk/boinc/; revision=20146
2010-01-13 05:32:11 +00:00
David Anderson ee343cea02 - client: small tweak to work fetch:
if project has crazy DCF, don't automatically request 1 sec;
    only request work if there's a shortfall.
- intermediate checkin for notices stuff

svn path=/trunk/boinc/; revision=20145
2010-01-12 21:53:40 +00:00
David Anderson 92fe442f51 - manager: "Notifications" => "Notices". Consistent terminology.
svn path=/trunk/boinc/; revision=20142
2010-01-12 18:57:38 +00:00
David Anderson f10384af43 - client: add <stderr_head> config option;
sends the first rather than last 64KB of stderr to server.
    This doesn't belong here; this choice should come from the server.
    I may take this out later.
- user web: when add a private message, always add a notification

svn path=/trunk/boinc/; revision=20141
2010-01-12 18:39:59 +00:00
Bernd Machenschalk b207fe88fc - Limit the number of files to be deleted in one 'antique
deletion' pass to 50000 (can be changed with -delete_antiques_limit).
  Previously large number of antiques led to not deleting any at all.
- Allow to change the interval between passes with -delete_antiques_interval.

svn path=/trunk/boinc/; revision=20138
2010-01-12 12:31:23 +00:00
Charlie Fenton 28c3b28fd8 Fix typo in checkin notes
svn path=/trunk/boinc/; revision=20133
2010-01-12 11:37:58 +00:00
Charlie Fenton fcf85c9c83 client sandbox: set LD_LIBRARY_PATH and DYLD_LIBRARY_PATH in switcher
svn path=/trunk/boinc/; revision=20131
2010-01-12 11:34:15 +00:00
David Anderson 0255297345 - API: if app can't acquire lock file, tell the client not
to restart app for 10 minutes.
    Hopefully what will happen is:
    - another instance of app is running in slot dir
        (shouldn't happen, but sometimes does)
    - that app will eventually finish, and will write
        a checkpoint file saying so.
        It will call boinc_finish(0), but the client won't notice
        that it has exited.
    - the next time the client starts the app,
        it will acquire lock, see that it's done,
        and call boinc_finish(0).
        This time the client will notice,
        and the job will be reported as correct.
    The downside to all this is that the client won't know
    that the CPU is in use, and will schedule NCPUS jobs.

svn path=/trunk/boinc/; revision=20128
2010-01-11 20:52:55 +00:00
David Anderson c27f2486e7 - fix python deprecation warning (from Jeremy Cowles)
svn path=/trunk/boinc/; revision=20122
2010-01-11 06:10:17 +00:00
David Anderson da6b6b33fe - client: fix notification display logic
svn path=/trunk/boinc/; revision=20119
2010-01-10 21:57:15 +00:00
David Anderson 335f5506a9 - user web: make user search translatable
svn path=/trunk/boinc/; revision=20118
2010-01-10 04:28:54 +00:00
David Anderson d6b6f8d5db - client (Mac): append /usr/local/cuda/lib to LD_LIBRARY_PATH
and DYLD_LIBRARY_PATH
- client simulator: compile fixes

svn path=/trunk/boinc/; revision=20117
2010-01-09 16:41:17 +00:00
Charlie Fenton 8b3e60d8e6 MGR: When Event Log is open, do get_messages RPC once per second but do view-specific periodic RPCs at their normal View refresh rate
svn path=/trunk/boinc/; revision=20111
2010-01-09 02:52:48 +00:00
Charlie Fenton f8e7683427 MGR: Separate refresh of Event Log from refresh of tabs; Update Notices tab only when data changed; Clean up some async RPC logic
svn path=/trunk/boinc/; revision=20110
2010-01-09 01:42:46 +00:00
Charlie Fenton 10a8041371 client: Fix another crash bug due to calling memset(this, 0, sizeof(*this)) when the data contains a std::string
svn path=/trunk/boinc/; revision=20109
2010-01-09 00:13:12 +00:00
Rom Walton 4efa403795 - MGR: Prevent timer events from causing recursive ui issues.
clientgui/
        ViewNotifications.cpp

svn path=/trunk/boinc/; revision=20103
2010-01-08 00:04:19 +00:00
David Anderson d800ae43eb - client: work fetch fix: avoid sending null request in certain cases.
- client: fix crash in notices code

svn path=/trunk/boinc/; revision=20101
2010-01-07 21:00:42 +00:00
David Anderson 76e778a44d - manager: tweak notice appearance
svn path=/trunk/boinc/; revision=20100
2010-01-07 17:12:56 +00:00
Charlie Fenton 3c426465f8 Mac installer: Add CUDA information to Mac ReadMe files
svn path=/trunk/boinc/; revision=20098
2010-01-07 12:34:15 +00:00
Charlie Fenton 727d356e2c Mac: Fix bug in backtrace code
svn path=/trunk/boinc/; revision=20090
2010-01-07 11:29:48 +00:00
David Anderson 0388c6d7e0 - boinccmd: add --get_notices option
svn path=/trunk/boinc/; revision=20089
2010-01-07 04:55:11 +00:00
Charlie Fenton 2ac1ae43cf client: Fix crash bug due to calling memset() on a std::string.
svn path=/trunk/boinc/; revision=20088
2010-01-07 03:09:03 +00:00
Charlie Fenton 91567b526b client: Fix compiler warning
svn path=/trunk/boinc/; revision=20087
2010-01-07 02:06:41 +00:00
David Anderson 31ca27bf6b - admin web: allow setting per-app HR class
svn path=/trunk/boinc/; revision=20086
2010-01-06 21:47:24 +00:00
David Anderson ac3adff1d7 - client: notice fixes
svn path=/trunk/boinc/; revision=20085
2010-01-06 21:39:31 +00:00
David Anderson 21ff6cadea - client: bug in ACTIVE_TASK::est_dur()
svn path=/trunk/boinc/; revision=20084
2010-01-06 17:08:07 +00:00
Charlie Fenton 3aa9a57072 MGR: Rebuild menus after connecting to client to show GPU activity items if needed
svn path=/trunk/boinc/; revision=20082
2010-01-06 12:41:26 +00:00
Charlie Fenton efce090466 client: Async get_state RPC was not updating state.have_ati field
svn path=/trunk/boinc/; revision=20080
2010-01-06 11:56:05 +00:00
David Anderson 37aae854f3 - client: scheduling problem:
- a project overestimates job FLOP counts
    - the client starts jobs in EDF mode
    - as job progresses and fraction done increases,
        its completion time estimate decreases until
        it's no longer a deadline miss.
    - job gets preempted by other job from that project;
        you end up with lots of partly completed jobs.
    Solution (I hope): if an app version has running jobs,
        compute a "temp DCF" for the app version,
        which is the min of dynamic/static estimates for its jobs.
        Apply this scaling factor to completion time estimates
        for unstarted jobs in RR simulation
- client: the estimation of remaining time of running jobs was wrong
    (how did this bug survive so long?)

svn path=/trunk/boinc/; revision=20077
2010-01-06 06:01:23 +00:00
David Anderson bf65c8ab30 - client: fix format strings for ninstances (can be fraction now)
svn path=/trunk/boinc/; revision=20075
2010-01-05 16:36:42 +00:00
Bernd Machenschalk fbf3ca1450 a couple of locality scheduling fixes:
- remove obsolete and buggy code from transitioner (create_result() in backend_lib)
    - account for 'mixed' scheduling in explain_to_user() in sched_send.cpp
    - finish transition to configurable patterns for distinguishing files reported by the client
      in the Einstein@home-specific part of send_work_locality in sched_locality
      (removed previous hardcoded strcmps)

svn path=/trunk/boinc/; revision=20074
2010-01-05 11:03:10 +00:00
Rom Walton 2154d27fe9 - MGR: Present the newest notices first.
clientgui/
        MainDocument.cpp
    lib/
        gui_rpc_client_ops.cpp

svn path=/trunk/boinc/; revision=20073
2010-01-05 02:21:33 +00:00
David Anderson bd93c0dde2 - GUI RPC: return notices in order of increasing seqno, not decreasing
svn path=/trunk/boinc/; revision=20072
2010-01-05 01:56:30 +00:00
Rom Walton 9bff57e3b8 Quick Updates
svn path=/trunk/boinc/; revision=20071
2010-01-05 01:12:59 +00:00
Rom Walton a9ccfecd7c - MGR: Display each notice in the notices tab.
clientgui/
        MainDocument.cpp
        ViewNotifications.cpp, .h

svn path=/trunk/boinc/; revision=20070
2010-01-04 21:10:05 +00:00
Rom Walton c2799eaa95 - MGR: Implement UI plumbing for notices
clientgui/
        ViewNotifications.cpp, .h

svn path=/trunk/boinc/; revision=20068
2010-01-04 19:04:29 +00:00
Rom Walton 014569af1f - MGR: Implement Notice RPC infrastructure.
clientgui/
        AsyncRPC.cpp, .h
        MainDocument.cpp, .h

svn path=/trunk/boinc/; revision=20066
2010-01-04 18:09:29 +00:00
Rom Walton 56391da25a - lib: fixup notice RPCs to make them manager compatible.
- lib: remove memset from notice constructor, bad things can happen
        when you null out a std::string structure.
        
    lib/
        gui_rpc_client.h
        gui_rpc_client_ops.cpp
        notice.cpp, .h
        

svn path=/trunk/boinc/; revision=20065
2010-01-04 17:43:18 +00:00
David Anderson 3530f59d73 - client: RSS feed stuff
svn path=/trunk/boinc/; revision=20064
2010-01-04 17:08:46 +00:00
David Anderson 2e6e97cfe6 - web: don't show news items if they're hidden
svn path=/trunk/boinc/; revision=20063
2010-01-04 17:06:54 +00:00
David Anderson 8d4906e4f1 svn path=/trunk/boinc/; revision=20062 2010-01-03 17:47:40 +00:00
David Anderson 10ed3004c6 - client: ATI available RAM wasn't being detected correctly
svn path=/trunk/boinc/; revision=20061
2010-01-03 17:46:11 +00:00
David Anderson 1c127cd122 - example multi-thread app: change to use boinc_init_parallel().
It's way simpler now.


svn path=/trunk/boinc/; revision=20058
2010-01-01 06:03:08 +00:00
David Anderson d5a8f6f1e1 - API: add boinc_init_parallel().
This is like boinc_init() but for multithread apps.
    Unlike boinc_init(), it suspends/resumes all threads in the app,
    not just one.
    In Unix, this is done by forking,
    and having the parent process handle suspend/resume messages
    and suspend/resume the child using signals
    On Win, there's some nasty code that enumerates all
    threads in the whole system, and suspends/resumes
    those in a particular process.


svn path=/trunk/boinc/; revision=20054
2010-01-01 02:50:56 +00:00
David Anderson 36dc2bfaf5 - user web: set user.has_profile when user edits profile
(shouldn't be necessary, but will fix problem cases)

svn path=/trunk/boinc/; revision=20053
2009-12-31 06:30:43 +00:00
David Anderson 437087a053 - upgrade: add --server_only option
(updates scheduler and back-end programs, but not web code)
    fixes #968

svn path=/trunk/boinc/; revision=20052
2009-12-31 02:37:16 +00:00
David Anderson fd1d46d17f - client: Unix: if can't create client lock file,
report ERR_OPEN rather than ERR_ALREADY_RUNNING
    fixes #970

svn path=/trunk/boinc/; revision=20051
2009-12-31 02:15:26 +00:00
David Anderson 98df3052c5 - web: if someone edits their profile, remove it from the cache
so that they and others will see the new version.

svn path=/trunk/boinc/; revision=20039
2009-12-25 04:23:48 +00:00
David Anderson 876522c6aa - client: add logic to work fetch so that each project
will have enough jobs to use its share of resource instances.
    This avoids situations where e.g. on a 2-CPU system
    a project has 75% resource share and 1 CPU job,
    and its STD increases without bound.
    
    Did a general cleanup of the logic for computing
    work request sizes (seconds and instances).

svn path=/trunk/boinc/; revision=20036
2009-12-24 20:40:27 +00:00
David Anderson 868c18d2b2 svn path=/trunk/boinc/; revision=20035 2009-12-24 17:19:25 +00:00
David Anderson c145a143b1 - client: divide LTD deltas by ninstances, same as for STD.
This is cosmetic - it won't affect work fetch,
    but it will prevent LTD from changing faster than real time

svn path=/trunk/boinc/; revision=20034
2009-12-24 17:09:27 +00:00
Charlie Fenton 75f2e451e4 Mac MGR: Call Mac accessibility announces localized tab names
svn path=/trunk/boinc/; revision=20033
2009-12-24 01:22:43 +00:00
David Anderson 4569b258c5 - client: more work on notices.
Create notices for client and scheduler user alerts

svn path=/trunk/boinc/; revision=20030
2009-12-23 21:22:24 +00:00
David Anderson 13fe6a468c - client: code cleanup: most message code into a class
svn path=/trunk/boinc/; revision=20029
2009-12-23 19:52:34 +00:00