rtyley / bfg-repo-cleaner

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
https://rtyley.github.io/bfg-repo-cleaner/
GNU General Public License v3.0
11k stars 547 forks source link

Uninitialized object exists on backward branch #295

Open aphofstede opened 5 years ago

aphofstede commented 5 years ago

Following instructions from https://medium.com/@rhoprhh/removing-keys-passwords-and-other-sensitive-data-from-old-github-commits-on-osx-2fb903604a56

When I run bfg --replace-text replacements.txt

Error: Option --replace-text failed when given 'replacements.txt'. Uninitialized object exists on backward branch 209
Exception Details:
  Location:
    scala/collection/immutable/HashMap$HashTrieMap.split()Lscala/collection/immutable/Seq; @249: goto
  Reason:
    Error exists in the bytecode
  Bytecode:
   [...snip...]                      
  Stackmap Table:
    same_frame(@35)
    full_frame(@141,{Object[#2],Integer,Integer,Integer,Integer,Integer,Object[#114]},{})
    append_frame(@151,Object[#134],Object[#134])
    full_frame(@209,{Object[#2],Integer,Integer,Integer,Integer,Integer,Object[#114],Object[#134],Object[#134],Object[#134],Object[#134],Top,Top,Object[#25],Object[#60],Integer,Integer,Object[#112]},{Uninitialized[#159],Uninitialized[#159],Integer,Object[#134]})
    full_frame(@252,{Object[#2],Integer,Integer,Integer,Integer,Integer,Object[#114],Object[#134],Object[#134],Object[#134],Object[#134],Top,Top,Object[#25],Object[#60],Integer,Integer,Object[#112]},{Uninitialized[#159],Uninitialized[#159],Integer,Object[#134]})
    full_frame(@312,{Object[#2],Integer,Integer,Integer,Integer,Integer,Object[#114],Object[#134],Object[#134],Object[#134],Object[#134],Object[#2],Top,Object[#25],Object[#60],Integer,Integer,Object[#112],Object[#25],Object[#60],Integer,Integer,Object[#112]},{Uninitialized[#262],Uninitialized[#262],Integer,Object[#134]})
    full_frame(@355,{Object[#2],Integer,Integer,Integer,Integer,Integer,Object[#114],Object[#134],Object[#134],Object[#134],Object[#134],Object[#2],Top,Object[#25],Object[#60],Integer,Integer,Object[#112],Object[#25],Object[#60],Integer,Integer,Object[#112]},{Uninitialized[#262],Uninitialized[#262],Integer,Object[#134]})
    full_frame(@395,{Object[#2],Integer},{})

bfg 1.13.0

homebrew version. also tried with --private and with repo name at the end.

javabrett commented 5 years ago

Check your JDK version, see https://stackoverflow.com/questions/40628310/scala-build-crashed .