This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 150011 - profiler delets files!
Summary: profiler delets files!
Status: RESOLVED DUPLICATE of bug 150009
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-14 08:09 UTC by ivan
Modified: 2008-10-14 08:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ivan 2008-10-14 08:09:18 UTC
Apologies for filing this as a P1, but I believe its's justified because
a lot of _source_ files got _deleted_!

<drama>
Just to get it off my chest ... this has been my worst NB experience ever!
I am _VERY_ mad ... because running (or ^C'ing the NB running ...)
the profiler somehow ended up deleting a whole bunch of files including 
.java and .mf files! Now I have to spend, who knows how long, recovering
stuff. And, no, LocalHistory->RevertDeleted doesn't help
</drama>

After running and interrupting the profiler the Projects view ended up falling
back on CNB's instead of project names. As I dug deeper I discovered
that a whole bunch of files are missing. Whole .java files wre gone!
.mf files were gone! If I opened Project Properties and chosen Display
I'd get a blank anle with a red error:
    There is not localized bundle for this module.
the Bundle file was there but the .mf file referring to it was missing!

Lucky for me I had backed up all the files under lib.terminalemulator
tonight but I can't quite say that I lost one evenings worth of work
because files which I hadn't modified had vanished as well!
I can provide a "diff -r" of before and after upon request.

At the moment my first priority is to recover my work :-(
I'll only be in position to try an reproduce the problem and verify
that it's not "user error" after that ... although i'd like someone to
show how the before-after diffs demonstrate a user error.

To reproduce ...

I had a suite with a combination of NB modules, plain java libraries
and library wrappers. Some of the plain java libraries depended on
JNA-based code.

I chose project-context-menu->Profile on the suite.
There were a few "calibrating CPU" dialogs followed by a lot of
errors about something I can't remember. Eventually the profiled 
NB hung and I somehow cancelled the run. After that the first 
visible symptom was that a bunch of my open projects, including
some that didn't belong to the suite, showed pkg names
instead of project names. This I eventually traced to missing .mf files,
_after_ discovering that whole .java files were missing.

I ^C'ed out of that NB (hoping to deny it saving it's corrupted project data)
and cleaned my userdir before restarting. It didn't help and unfortunately it blew away
any precise record of gestures.

I googled a bunch of patters and looked through the NB bug database but
didn't run into anything similar.
Comment 1 J Bachorik 2008-10-14 08:13:06 UTC

*** This issue has been marked as a duplicate of 150009 ***