-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClassNotFoundException #49
Comments
@felipesangiorge I couldn't reproduce the issue on any of my devices. but, it seems error-related parcelable. I have tried this solution . Can you try this |
@a914-gowtham perfect, I'm generating now the version with this to test then i let you know, thank you! |
@a914-gowtham Hello, unfortunately its having the same error -> this is the Uid that is passed - > /com.gowtham.library.ui.ActVideoTrimmer (has extras)} from uid 10399 05-25 17:08:49.211 1000 5164 5957 E Parcel : Class not found when unmarshalling: com.gowtham.library.utils.TrimVideoOptions |
It's still the same issue. let me any other solution |
@felipesangiorge Can you give it a try for these snapshots. I hope second one should work |
@a914-gowtham Sure will try both then give you a feedback |
@a914-gowtham Hello, I tested both, in the device still with the same error, but a point from this first snapshot, the others versions were crashing the app in that device, that first snapshot implementation 'com.github.a914-gowtham:Android-video-trimmer:ea34fa0cf0' the app does not crash, it's like relaunching the navigation, but still with the same class not found exception, I notice another thing too, the video preview takes a little bit of time to appear in that device, I don't know if that info can help in something. |
@felipesangiorge Fine, now I have totally removed the parcelable implementation for trimVideoOption and compressOption class. That video preview time delay is a temporary fix of #40 and will be fixed. |
@a914-gowtham Hello sorry im not familiar with the ActivityResultLauncher how can i send my custom code for receive in the activity onActivityResult ? |
@felipesangiorge I forgot to mention it. //create a global variable
ActivityResultLauncher<Intent> videoTrimResultLauncher = registerForActivityResult(
new ActivityResultContracts.StartActivityForResult(),
result -> {
if (result.getResultCode() == Activity.RESULT_OK &&
result.getData() != null) {
Uri uri = Uri.parse(TrimVideo.getTrimmedVideoPath(result.getData()));
Log.d(TAG, "Trimmed path:: " + uri);
} else
LogMessage.v("videoTrimResultLauncher data is null");
}); TrimVideo.activity(data)
.setCompressOption(new CompressOption()) //pass empty constructor for default compress option
.start(this, videoTrimResultLauncher); //for Kotlin val startForResult = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) {
result: ActivityResult ->
if (result.resultCode == Activity.RESULT_OK) {
//handle data
}
}
TrimVideo.activity(data)
.setCompressOption(new CompressOption()) //pass empty constructor for default compress option
.start(this, videoTrimResultLauncher) |
@a914-gowtham You need to rename your dependency by putting all letters lowercase Rename: implementation 'com.github.a914-gowtham:Android-video-trimmer:1.6.5' |
@hantash07 I can do that by changing this repo name to lowercase. but, I'm afraid. it might make any issue related to jitpack |
@a914-gowtham I think this is the solution. You need to rename the repo. |
@hantash07 okay, I will rename it once the fix is verified of this issue. |
@felipesangiorge did you try that? |
@a914-gowtham Hello i sent the version for the person that have the crash to test, will receive the answer today yet then i keep you updated. Thanks |
@a914-gowtham Hello sorry for the late answer, i was little bit busy, so after check the log i could not find the error anymore, still crashing something after the trimmer but i dont think its related with the trimmer, its little bit hard because its not my device, but i think from your side that solution make effect. |
@felipesangiorge That's okay. thanks for spending your time. you can use this latest version @hantash07 |
Hello Good evening,
I have noticed that one Samsung device A41 is having that error ->
I know that you had an open issue before for this to be corrected on 1.6.4 but was close without an answer, can you cross-check that I'm using 1.6.5 for the trimmer and still with the error.
05-25 14:01:01.278 1000 5164 7708 E Parcel : Class not found when unmarshalling: com.gowtham.library.utils.TrimVideoOptions
05-25 14:01:01.278 1000 5164 7708 E Parcel : java.lang.ClassNotFoundException: com.gowtham.library.utils.TrimVideoOptions
05-25 14:01:01.278 1000 5164 7708 E Parcel : at java.lang.Class.classForName(Native Method)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at java.lang.Class.forName(Class.java:454)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at android.os.Parcel.readParcelableCreator(Parcel.java:3350)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at android.os.Parcel.readParcelable(Parcel.java:3284)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at android.os.Parcel.readValue(Parcel.java:3186)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at android.os.Parcel.readArrayMapInternal(Parcel.java:3579)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at android.os.BaseBundle.unparcel(BaseBundle.java:236)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at android.os.BaseBundle.getString(BaseBundle.java:1196)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at android.content.Intent.getStringExtra(Intent.java:8889)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:1128)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:894)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1710)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1560)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at com.android.server.wm.ActivityTaskManagerService.startActivity(ActivityTaskManagerService.java:1512)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at android.app.IActivityTaskManager$Stub.onTransact(IActivityTaskManager.java:1663)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at android.os.Binder.execTransactInternal(Binder.java:1195)
05-25 14:01:01.278 1000 5164 7708 E Parcel : at android.os.Binder.execTransact(Binder.java:1159)
05-25 14:01:01.278 1000 5164 7708 E Parcel : Caused by: java.lang.ClassNotFoundException: com.gowtham.library.utils.TrimVideoOptions
05-25 14:01:01.278 1000 5164 7708 E Parcel : ... 18 more
05-25 14:01:01.279 1000 5164 7708 W Bundle : Failed to parse Bundle, but defusing quietly
05-25 14:01:01.279 1000 5164 7708 W Bundle : android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.gowtham.library.utils.TrimVideoOptions
05-25 14:01:01.279 1000 5164 7708 W Bundle : at android.os.Parcel.readParcelableCreator(Parcel.java:3376)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at android.os.Parcel.readParcelable(Parcel.java:3284)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at android.os.Parcel.readValue(Parcel.java:3186)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at android.os.Parcel.readArrayMapInternal(Parcel.java:3579)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at android.os.BaseBundle.unparcel(BaseBundle.java:236)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at android.os.BaseBundle.getString(BaseBundle.java:1196)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at android.content.Intent.getStringExtra(Intent.java:8889)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:1128)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:894)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1710)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1560)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at com.android.server.wm.ActivityTaskManagerService.startActivity(ActivityTaskManagerService.java:1512)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at android.app.IActivityTaskManager$Stub.onTransact(IActivityTaskManager.java:1663)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at android.os.Binder.execTransactInternal(Binder.java:1195)
05-25 14:01:01.279 1000 5164 7708 W Bundle : at android.os.Binder.execTransact(Binder.java:1159)
The text was updated successfully, but these errors were encountered: