Fixed
Status Update
Comments
uc...@google.com <uc...@google.com> #2
I haven't looks on repro yet, but there is no such thing as AlwaysOnLifecycle in latest versions, LiveData has strong references on all observers (including that were added as observeForever). If nothings keeps a livedata, then it is gced.
il...@gmail.com <il...@gmail.com> #3
ah I see: in observe with Lifecycle we add LiveData as observer to Lifecycle and it keeps it alive. However keeping observerforever + livedata, when nothing has reference on them, is a memory leak by definition: user can't clean this memory anyhow, because neither observer / livedata could be referenced.
il...@gmail.com <il...@gmail.com> #4
It is true, though from usage perspective, it is not obvious at all.
e.g. you are in a class, like a singleton repository where you want to observe the database for some query.
and you write:
MyRepository(dao : MyDao) {
dao.someLiveData().observeForever(....do something...);
}
And it suddenly stops working :/ which is very non-obvious from the developer's perspective.
If we kept the lifecycle in memory as long as it has observers, wouldn't it solve the problem since they can break the chain by calling stopObserving(observer) ?
When they use observeForever, they are already responsible to remove the observer so I think it is fine?
e.g. you are in a class, like a singleton repository where you want to observe the database for some query.
and you write:
MyRepository(dao : MyDao) {
dao.someLiveData().observeForever(....do something...);
}
And it suddenly stops working :/ which is very non-obvious from the developer's perspective.
If we kept the lifecycle in memory as long as it has observers, wouldn't it solve the problem since they can break the chain by calling stopObserving(observer) ?
When they use observeForever, they are already responsible to remove the observer so I think it is fine?
vs...@google.com <vs...@google.com>
en...@google.com <en...@google.com> #5
well, the issue is: no reference on observer, you can't break the chain because you don't have a reference. If you have a reference, LiveData (unfortunately) wouldn't be gc-ed, because even AlwaysActiveObserver inrenally has strong reference on livedata.
zy...@google.com <zy...@google.com> #6
It turns out I had an app with the exact above use case: a singleton repository observing a database. The code was working properly with arch components 1.0.0 but unpredictably with 1.1.0. I think this is a good example of a leaky abstraction.
Since I want to observe the database forever with no intention to remove the observer at any point, I had no reason to keep a reference to the LiveData and it ended up being GCed along with the observers in it.
You could also argue that the problem is not with LiveData but with Room using weak references to observers but the developer is not supposed to know the Room implementation details.
Since I want to observe the database forever with no intention to remove the observer at any point, I had no reason to keep a reference to the LiveData and it ended up being GCed along with the observers in it.
You could also argue that the problem is not with LiveData but with Room using weak references to observers but the developer is not supposed to know the Room implementation details.
en...@google.com <en...@google.com> #7
I think the real problem is that LiveData has no callback to know that no one wants it anymore; like onReset in Loader.
So there's 2 options for database observers:
1. It either has to un-register observer in onInactive and on next onActive re-query db. Problematic is if nothing has changed you have to filter values or dispatch unnecessarily, and you'll pay the price of query which could be expensive.
2. Register weak observer, or have wear ref to LiveData
Room uses option 2. I created my own LiveData and I used the same (https://bitbucket.org/snippets/Boza-s6/xe8749/sample-livedata-with-features-like-loaders#EmailContentLiveData.java-104 ), because it was obvious solution, but now I see it will not work in every possible case.
I think there should be statically referenced Lifecycle object to which LiveData subscribes when using observeForever() (and observer is anonymous class, maybe?).
So there's 2 options for database observers:
1. It either has to un-register observer in onInactive and on next onActive re-query db. Problematic is if nothing has changed you have to filter values or dispatch unnecessarily, and you'll pay the price of query which could be expensive.
2. Register weak observer, or have wear ref to LiveData
Room uses option 2. I created my own LiveData and I used the same (
I think there should be statically referenced Lifecycle object to which LiveData subscribes when using observeForever() (and observer is anonymous class, maybe?).
en...@google.com <en...@google.com> #8
I ran into the same problem yesterday. It tooked me hours to understand what is happening and why my observeForever-observer suddenly stopped being invoked.
I think it is a really bad design that someone should know the implementation details of generated Room DB Code.
I want to use observerForever the same way like i use the simple observe and dont want to ran into problems because of internal implementation details.
I think it is a really bad design that someone should know the implementation details of generated Room DB Code.
I want to use observerForever the same way like i use the simple observe and dont want to ran into problems because of internal implementation details.
jo...@googlemail.com <jo...@googlemail.com> #9
Project: platform/frameworks/support
Branch: androidx-master-dev
commit bab31cacd4ae98057b694f6ae4c781f5f25ee0c9
Author: Yigit Boyar <yboyar@google.com>
Date: Wed Oct 31 23:41:00 2018
Fix live data observe forever in room
This CL fixes a problem where if DAO returned LiveData is
observed with observeForever but there are no references
to the LiveData, it would eventually be garbage collected.
To avoid this, InvalidationTracker now manages these LiveData
objects and strongly references them as long as there is an
active observer.
To be 100%, we should actually do it when LiveData has observers
but right now that API does not exist in the LiveData side
to get notified when the observer count changes 0 and 1.
I've also cleaned up some test code to avoid duplicating the
test observers in each test.
I've also added an integration test that uses room w/o any of
the optional dependencies to ensure that we don't break the
contract on compileOnly dependencies.
Bug: 74477406
Test: LiveDataQueryTest, InvalidationTrackerTest, NoAppCompatTestApp
Change-Id: If88114306d7e20ddaed0312a1203a0d14b710145
M arch/core-testing/src/main/java/androidx/arch/core/executor/TaskExecutorWithFakeMainThread.java
M room/compiler/src/main/kotlin/androidx/room/solver/query/result/LiveDataQueryResultBinder.kt
M room/compiler/src/test/data/daoWriter/output/ComplexDao.java
A room/integration-tests/noappcompattestapp/.gitignore
A room/integration-tests/noappcompattestapp/README.md
A room/integration-tests/noappcompattestapp/build.gradle
A room/integration-tests/noappcompattestapp/src/androidTest/java/androidx/room/integration/noappcompat/BareDatabaseTest.java
A room/integration-tests/noappcompattestapp/src/main/AndroidManifest.xml
A room/integration-tests/noappcompattestapp/src/main/java/androidx/room/integration/noappcompat/BareDatabase.java
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/paging/DataSourceFactoryTest.java
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/InvalidationTrackerTest.java
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/LiveDataQueryTest.java
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/QueryTransactionTest.java
A room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/TestLifecycleOwner.java
A room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/TestObserver.java
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/TestUtil.java
M room/runtime/build.gradle
A room/runtime/src/main/java/androidx/room/InvalidationLiveDataContainer.java
M room/runtime/src/main/java/androidx/room/InvalidationTracker.java
A room/runtime/src/main/java/androidx/room/RoomTrackingLiveData.java
A room/runtime/src/test/java/androidx/room/InvalidationLiveDataContainerTest.kt
M room/runtime/src/test/java/androidx/room/InvalidationTrackerTest.java
M settings.gradle
https://android-review.googlesource.com/810053
https://goto.google.com/android-sha1/bab31cacd4ae98057b694f6ae4c781f5f25ee0c9
Branch: androidx-master-dev
commit bab31cacd4ae98057b694f6ae4c781f5f25ee0c9
Author: Yigit Boyar <yboyar@google.com>
Date: Wed Oct 31 23:41:00 2018
Fix live data observe forever in room
This CL fixes a problem where if DAO returned LiveData is
observed with observeForever but there are no references
to the LiveData, it would eventually be garbage collected.
To avoid this, InvalidationTracker now manages these LiveData
objects and strongly references them as long as there is an
active observer.
To be 100%, we should actually do it when LiveData has observers
but right now that API does not exist in the LiveData side
to get notified when the observer count changes 0 and 1.
I've also cleaned up some test code to avoid duplicating the
test observers in each test.
I've also added an integration test that uses room w/o any of
the optional dependencies to ensure that we don't break the
contract on compileOnly dependencies.
Bug: 74477406
Test: LiveDataQueryTest, InvalidationTrackerTest, NoAppCompatTestApp
Change-Id: If88114306d7e20ddaed0312a1203a0d14b710145
M arch/core-testing/src/main/java/androidx/arch/core/executor/TaskExecutorWithFakeMainThread.java
M room/compiler/src/main/kotlin/androidx/room/solver/query/result/LiveDataQueryResultBinder.kt
M room/compiler/src/test/data/daoWriter/output/ComplexDao.java
A room/integration-tests/noappcompattestapp/.gitignore
A room/integration-tests/noappcompattestapp/README.md
A room/integration-tests/noappcompattestapp/build.gradle
A room/integration-tests/noappcompattestapp/src/androidTest/java/androidx/room/integration/noappcompat/BareDatabaseTest.java
A room/integration-tests/noappcompattestapp/src/main/AndroidManifest.xml
A room/integration-tests/noappcompattestapp/src/main/java/androidx/room/integration/noappcompat/BareDatabase.java
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/paging/DataSourceFactoryTest.java
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/InvalidationTrackerTest.java
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/LiveDataQueryTest.java
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/QueryTransactionTest.java
A room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/TestLifecycleOwner.java
A room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/TestObserver.java
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/TestUtil.java
M room/runtime/build.gradle
A room/runtime/src/main/java/androidx/room/InvalidationLiveDataContainer.java
M room/runtime/src/main/java/androidx/room/InvalidationTracker.java
A room/runtime/src/main/java/androidx/room/RoomTrackingLiveData.java
A room/runtime/src/test/java/androidx/room/InvalidationLiveDataContainerTest.kt
M room/runtime/src/test/java/androidx/room/InvalidationTrackerTest.java
M settings.gradle
ch...@gmx.de <ch...@gmx.de> #10
FYI this requires client to update to Room 2.1.0-alpha03 but it is fully compatible with 1.x that WM uses.
ts...@gmail.com <ts...@gmail.com> #11
actually it won't work because the change is in generated code. I'll try to backport itinto WM.
yo...@gmail.com <yo...@gmail.com> #12
re-opening for WM part.
ch...@gmail.com <ch...@gmail.com> #13
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 3fb46bd8602faaf9c34aa969f8ae589c251c2f72
Author: Yigit Boyar <yboyar@google.com>
Date: Fri Nov 30 13:19:34 2018
Track LiveData returned by the WM
This CL works around a bug in Room 1.x where LiveData returned
by Room might be garbage collected.
Now work manager tracks any live data it returns as long as the
LiveData is active.
Bug: 74477406
Test: ObserForeverTest, WorkManagerLiveDataTrackerTest
Change-Id: I1e45dade1e8a3c29d6c35f7cb0c6e072c68ee658
A work/workmanager/src/androidTest/java/androidx/work/impl/ObserveForeverTest.java
M work/workmanager/src/main/java/androidx/work/impl/WorkManagerImpl.java
A work/workmanager/src/main/java/androidx/work/impl/WorkManagerLiveDataTracker.java
A work/workmanager/src/test/java/androidx/work/impl/WorkManagerLiveDataTrackerTest.java
https://android-review.googlesource.com/838833
https://goto.google.com/android-sha1/3fb46bd8602faaf9c34aa969f8ae589c251c2f72
Branch: androidx-master-dev
commit 3fb46bd8602faaf9c34aa969f8ae589c251c2f72
Author: Yigit Boyar <yboyar@google.com>
Date: Fri Nov 30 13:19:34 2018
Track LiveData returned by the WM
This CL works around a bug in Room 1.x where LiveData returned
by Room might be garbage collected.
Now work manager tracks any live data it returns as long as the
LiveData is active.
Bug: 74477406
Test: ObserForeverTest, WorkManagerLiveDataTrackerTest
Change-Id: I1e45dade1e8a3c29d6c35f7cb0c6e072c68ee658
A work/workmanager/src/androidTest/java/androidx/work/impl/ObserveForeverTest.java
M work/workmanager/src/main/java/androidx/work/impl/WorkManagerImpl.java
A work/workmanager/src/main/java/androidx/work/impl/WorkManagerLiveDataTracker.java
A work/workmanager/src/test/java/androidx/work/impl/WorkManagerLiveDataTrackerTest.java
bo...@gmail.com <bo...@gmail.com> #14
My Nexus 9 is on a bootloop and is locked so this was my way out of the bootloop but I've got the same error std::bad_alloc...
If someone has found a way to suppress this error let us know !
If someone has found a way to suppress this error let us know !
me...@morl.au <me...@morl.au> #15
As this bug is in 25.0.4 only, simply revert to platform tools 25.0.3 to successfully sideload the image. This solved both my 'std::bad_alloc' error and bootloop error (hopefully).
me...@morl.au <me...@morl.au> #17
update: bootloop still looping, but will boot successfully every few boots, which is better than I had.
ba...@gmail.com <ba...@gmail.com> #18
Same issue
ch...@gmx.de <ch...@gmx.de> #19
Thank you! With the earlier version of the platform tools it works very well!
ar...@gmail.com <ar...@gmail.com> #20
Reverted to earlier platform-tools and it works like a charm. Thanks for the link.
ar...@gmail.com <ar...@gmail.com> #21
Same problem, OnePlus 3, Open Beta 13 (http://downloads.oneplus.net/oneplus-3/oneplus_3_oxygenos_openbeta_13/ ), reverting to the platform-tools in #17 and using Large Address Aware 2.0.4 (https://www.techpowerup.com/forums/threads/large-address-aware.112556/ ) let me sideload with vanilla Oxygen Recovery (without LAA flag, it just says cannot read rom.zip)
full log:
C:\Android\SDK\platform-tools>adb sideload ../rom.zip
loading: '../rom.zip'...
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
full log:
C:\Android\SDK\platform-tools>adb sideload ../rom.zip
loading: '../rom.zip'...
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
fe...@gmail.com <fe...@gmail.com> #22
the same result by using latest adb version delivered by SDK Tools(Preview Channel) 26rc1.
ni...@gmail.com <ni...@gmail.com> #23
t....@gmail.com <t....@gmail.com> #24
Having same issue with Android SDK Platform tools 25.0.4 on Windows 10 with all latest updates. Was trying to install the April OTA patch on my Pixel.
ch...@gmail.com <ch...@gmail.com> #25
same issue here with adb and pixel
sa...@gmail.com <sa...@gmail.com> #26
Nikita gave the solution.
Download the LLA, go to Mode -> Advanced. Then, go to Add -> Files in folder recursive ... Select the folder where you have platform-tools installed (or unzipped). Select all the files in LLA then go to With selected -> Force Large Address Aware.
Tested on Win10, ran adb sideload <image> from cmd.exe with Administrative privilege. Installed 7.1.1 OTA on Nexus 6 without any issues.
Download the LLA, go to Mode -> Advanced. Then, go to Add -> Files in folder recursive ... Select the folder where you have platform-tools installed (or unzipped). Select all the files in LLA then go to With selected -> Force Large Address Aware.
Tested on Win10, ran adb sideload <image> from cmd.exe with Administrative privilege. Installed 7.1.1 OTA on Nexus 6 without any issues.
ma...@gmail.com <ma...@gmail.com> #27
same error for me flashing android 7.1.2 with latest adb version.
ad...@gmail.com <ad...@gmail.com> #28
Same problem. Win10 x64 latest of win updates and adb. Not going to give you more info. Same as everyone else. This issue is on n9 and n6 with april updates. Solution from " #17 m...@ajmorley.com" about using " https://dl.google.com/android/repository/platform-tools_r25.0.3-windows.zip " works great.
ak...@gmail.com <ak...@gmail.com> #30
[Comment deleted]
ak...@gmail.com <ak...@gmail.com> #31
Same issue on r25.0.4.
On old versions .3 and .1 I get cannot read "file".
Am I doing something wrong? It was a long time since I tried to sideload something.
On old versions .3 and .1 I get cannot read "file".
Am I doing something wrong? It was a long time since I tried to sideload something.
ma...@gmail.com <ma...@gmail.com> #33
Nexus 5X, I reflashed with ADB (25.0.3) but no luck! guess it's doomed
a6...@gmail.com <a6...@gmail.com> #34
Following #16,#23 and #26's suggestion (sorry I cannot view their full name), it works for me.
win10 x64
platform-tools r25.0.3 (link at #16)
oneplus 3t Oxygen OS
win10 x64
platform-tools r25.0.3 (link at #16)
oneplus 3t Oxygen OS
a6...@gmail.com <a6...@gmail.com> #35
Following #16,#23 and #26's suggestion (sorry I cannot view their full name), it works for me.
win10 x64
platform-tools r25.0.3 (link at #16)
oneplus 3t Oxygen OS
win10 x64
platform-tools r25.0.3 (link at #16)
oneplus 3t Oxygen OS
en...@google.com <en...@google.com> #36
yes, using the previous version (available at https://dl.google.com/android/repository/platform-tools_r25.0.3-windows.zip ) is the best workaround for now. 25.0.5 should be released at 10:00 America/Los_Angeles time on Monday, at which point adb.exe will only need 64KiB to sideload a package no matter how large it is.
en...@google.com <en...@google.com> #37
bl...@gmail.com <bl...@gmail.com> #38
Still receiving this error on 25.0.5 with Nexus 6p 7.1.2 OTA image. angler-ota-n2g47h-f3bffaba.zip
en...@google.com <en...@google.com> #39
@38: you're almost certainly not running the new adb.
sc...@gmail.com <sc...@gmail.com> #40
deleted old platform-tools dir, downloaded 25.0.5, extracted, still receiving this error
en...@google.com <en...@google.com> #41
output of "adb --version"?
bl...@gmail.com <bl...@gmail.com> #42
c:\> adb --version
Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
downloaded last night from:
https://developer.android.com/studio/releases/platform-tools.html
Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
downloaded last night from:
en...@google.com <en...@google.com> #43
screenshot of the full error output?
bl...@gmail.com <bl...@gmail.com> #44
screenshot attached
en...@google.com <en...@google.com> #45
huh. given the "falling back to older sideload method" message, this kinda makes sense --- i didn't touch the old sideload codepath.
but it doesn't really make sense: you really shouldn't be on that codepath talking to a 6P. i think JellyBean was the last release that used the older sideload method! it looks like we'll give the old method a go regardless of how the new method fails. so my suspicion is that your real problem is that adb isn't able to talk to your 6P and falls back to the old method just in case (even though we know that won't work because the 6P is too new, adb doesn't).
the output from
adb kill-server
set ADB_TRACE=all
adb sideload <whatever you've been doing>
might be informative.
but it doesn't really make sense: you really shouldn't be on that codepath talking to a 6P. i think JellyBean was the last release that used the older sideload method! it looks like we'll give the old method a go regardless of how the new method fails. so my suspicion is that your real problem is that adb isn't able to talk to your 6P and falls back to the old method just in case (even though we know that won't work because the 6P is too new, adb doesn't).
the output from
adb kill-server
set ADB_TRACE=all
adb sideload <whatever you've been doing>
might be informative.
bl...@gmail.com <bl...@gmail.com> #46
Hope this helps!
en...@google.com <en...@google.com> #47
yeah, the "no devices/emulators found" is pretty much what i was expecting to see. what does "adb devices" say? i'm assuming that can't see your device either.
(have you ever sideloaded before? you know that you have to get the device ready to receive before "adb sideload" will work?)
(have you ever sideloaded before? you know that you have to get the device ready to receive before "adb sideload" will work?)
am...@gmail.com <am...@gmail.com> #48
I had no devices connected. Had to unplug and reconnect my phone. Then it worked. You should add that step to the official instructions here: https://developers.google.com/android/ota
bl...@gmail.com <bl...@gmail.com> #49
C:\WINDOWS\system32>adb devices
List of devices attached
8XV7N15B24004979 device
Is that my device?
I have never sideloaded. I haven't messed with a rom since Samsung S3 days.
I would think that it sees my device since I can do the "adb reboot recovery"
List of devices attached
8XV7N15B24004979 device
Is that my device?
I have never sideloaded. I haven't messed with a rom since Samsung S3 days.
I would think that it sees my device since I can do the "adb reboot recovery"
en...@google.com <en...@google.com> #50
@daniel: i've no idea whether that's your device :-) but what i can tell you is that if your device was actually in sideload mode, it would say "sideload" rather than "device". so that seems like your problem. see step 4 of the instructions at https://developers.google.com/android/ota .
@miguel: that's actually a 6P bug where it drops off USB when it reboots. i'm assuming that's fixed in O, but you're right that it might be worth adding an "adb devices" step to the instructions. i'll see what i can do.
i've uploadedhttps://android-review.googlesource.com/387532/ to improve the error messages. a future version of adb asked to sideload without any devices connected will instead say:
$ adb sideload mysid-ota-424425.zip
adb: sideload connection failed: no devices/emulators found
adb: trying pre-KitKat sideload method...
adb: pre-KitKat sideload connection failed: no devices/emulators found
@miguel: that's actually a 6P bug where it drops off USB when it reboots. i'm assuming that's fixed in O, but you're right that it might be worth adding an "adb devices" step to the instructions. i'll see what i can do.
i've uploaded
$ adb sideload mysid-ota-424425.zip
adb: sideload connection failed: no devices/emulators found
adb: trying pre-KitKat sideload method...
adb: pre-KitKat sideload connection failed: no devices/emulators found
bl...@gmail.com <bl...@gmail.com> #51
i ran adb devices with phone just plugged in. previous time i ran the sideload i had followed step 4.
i unplugged and replugged in my phone and got a installing drivers screen. looks like it is working now???!!
I'm at the serving :~2% so far.
i unplugged and replugged in my phone and got a installing drivers screen. looks like it is working now???!!
I'm at the serving :~2% so far.
lo...@gmail.com <lo...@gmail.com> #52
I can confirm I no longer experience bad_alloc with 25.0.5 on Windows 10 x64
bl...@gmail.com <bl...@gmail.com> #53
Confirmed as well. Once i unplugged and replugged in my phone and got an installing drivers screen while in recovery mode.
cb...@gmail.com <cb...@gmail.com> #54
I am still getting the crash on the most recent version with a 6P. How do I check the version of adb that I am running? I only downloaded it from Google today.
cb...@gmail.com <cb...@gmail.com> #55
Follow up to #54, I also rebooted into recovery, selected update from adb, while on the screen waiting for the package, I unplugged and replugged in my phone, adb status changed to sideload, sent the package, loaded as usual.
en...@google.com <en...@google.com> #56
adb --version will tell you what version you're using. if you include the screenshot of your error message (or just look for " falling back to older sideload method..." and you're not trying to sideload to a pre-KitKat device) we can see if it's the same "adb can't see your device" problem as the other two folks. "adb devices" before "adb sideload" will show you whether (a) adb can see your device and (b) whether it's actually showing up in "sideload" mode.
ja...@gmail.com <ja...@gmail.com> #57
+1 same issue on Windows 10 with Android Debug Bridge version 1.0.39, platform-tools 25.0.5, Pixel XL.
opening '.\marlin-ota-n2g47o-61bf55a3.zip'...
connecting...
falling back to older sideload method...
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
I tried unplugging and plugging back in once recovery was up, no change.
opening '.\marlin-ota-n2g47o-61bf55a3.zip'...
connecting...
falling back to older sideload method...
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
I tried unplugging and plugging back in once recovery was up, no change.
ja...@gmail.com <ja...@gmail.com> #58
Update to #57, looks like I wasn't in sideload mode. Even with that, I think adb shouldn't crash but rather exit with an error message like 'no devices in sideload found' or something to that effect.
en...@google.com <en...@google.com> #59
@57: that's what we've done for a future release. see my comment #50 .
i've also updated the public instructions athttps://developers.google.com/android/ota to recommend folks check that their device is actually in sideload mode.
i've also updated the public instructions at
li...@gmail.com <li...@gmail.com> #60
Now unlock your device and confirm the backup operation...
PS C:\Users\wohen> adb reboot sideload "D:\download\Compressed\update.zip"
PS C:\Users\wohen> adb sideload "D:\download\Compressed\update.zip"
loading: 'D:\download\Compressed\update.zip'...
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
...........................................................
PS C:\Users\wohen> adb reboot sideload "D:\download\Compressed\update.zip"
PS C:\Users\wohen> adb sideload "D:\download\Compressed\update.zip"
loading: 'D:\download\Compressed\update.zip'...
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
...........................................................
en...@google.com <en...@google.com> #61
i can tell from the first line that you're running an old version. please upgrade to 25.0.5.
am...@gmail.com <am...@gmail.com> #62
Android lolipop 5.1.1
am...@gmail.com <am...@gmail.com> #63
Lyf wind 7
da...@gmail.com <da...@gmail.com> #64
All best tq
sa...@gmail.com <sa...@gmail.com> #65
Heloo semua
sa...@gmail.com <sa...@gmail.com> #66
#santosrudy05
al...@gmail.com <al...@gmail.com> #67
Hizmet
az...@gmail.com <az...@gmail.com> #68
[Deleted User] <[Deleted User]> #69
Brinton
10...@gmail.com <10...@gmail.com> #70
Fucker
[Deleted User] <[Deleted User]> #71
0633601601
ka...@gmail.com <ka...@gmail.com> #72
Cheng my device
[Deleted User] <[Deleted User]> #73
Hi
gi...@gmail.com <gi...@gmail.com> #76
Check out the one who's been trying to destroy people me and my children in particular and hurt little kids...ka....@gmail or LH@gmail. Now....Bo...at gmail. I'm Bo but the way the one who lost all three of my babys due to her and jr. Dunns decipt along with her little online friends she was my wife of 8 years moved me and the kids here after setting my up in my company by saying she'd do the books and I'd do the work not only did she do that ....talk about clash of clans...she molested a 14 year old girl. Raped her with her boyfriend I never new anything about ...the state tool all my children and both KAYLA BOAK AND JEFFREY GABBERD ARE IN MANATEE COUNTY JAIL. FACING LIFE FOR KIDNAPING RAPE ECT....JUST LOOK UP THEIR NAMES kayla boak Bradenton florida.....They supposedly ran a land escaping company together called the landscape connection 9412509643. And kayla's was 9412414667....she made flyers for this man and at least gave him a shot to be a business man. All I have now is deep depression fro me and my children and have nothing to show for 8 years....it was most likely because she didn't but in the effort she just wanted to set me up watch me fail and get 3 kids out of me ....I'm in florida now doing everything I can to get my kids and go home I'll never stop fighting...all I can do now I'd even if its just 100 a day if I can feed my kids and there with me and not some sick freaks I will be more thankful than ever ....don't expect kayla and Lowe and jr to hang on to much longer unless there just plain hatefull....the stare of florida is offering them life in prison...he has like a 500,000 bond and hers is pathetically incredible too...check out Google and type I'm kayla boak bradenton itll pull up. And if you want the real details of these sick fucks please feel free to google manatee cleark of courts web page put in her first and last name it tells all....I'm so sorry for that little girl and her family I hope to god I never see them again....she has shamed our whole family so she could use drugs and cheet on a good husband....oh well I'm a great person and so are my babys someone will love is and be loyal one day. I wont loose hope or stop fighting. Anyhow tha I you for the time ...if you do the research it's worth the read....ypu never really know someone I suppose. Please pray for me and my kids it's all i have to keep going foward. Tha is again . BO Edwards
gi...@gmail.com <gi...@gmail.com> #77
Ps . Please ask jr Dunn and the person who kayla set me up years ago in 2015 to remove that stupid repository on me ..I'd be .I'm not a bad man at all I gave it my all with her but she lied and cheated us out of our heard work . I have nothing to show in my life but a rented bedroom and a broke down SUV and a car I bought my 16year old son I'm lonely broken down and hurt as are my kids. So if you have any kinda hearts please leave us in peace now. Me and my kids. We would be very thankful
..and JR of you still want to be with some that evil to hurt little 14 and 12 year old girls go for it. And be sure and bring your gun like you promised in your encrypted letter I decoded.....I wasnt scared when I drove to Texas for kayla and my front door is open every night . So if that's who you are so be it I'm scared of no man! I just hope your not that stupid in both manners frankly but do as ye will. And I'll be waiting.
..and JR of you still want to be with some that evil to hurt little 14 and 12 year old girls go for it. And be sure and bring your gun like you promised in your encrypted letter I decoded.....I wasnt scared when I drove to Texas for kayla and my front door is open every night . So if that's who you are so be it I'm scared of no man! I just hope your not that stupid in both manners frankly but do as ye will. And I'll be waiting.
ab...@gmail.com <ab...@gmail.com> #78
انتهاك خصوصية
Description
Platform-tools rev.25.0.4
Steps to reproduce:
1. Run "adb sideload <file>".
2. Error is here.
On Platform-tools rev.25.0.3 its fine.