malloc() after installing Insta360 pro stitcher on wine > 6.0

Questions about Wine on Linux
Locked
Jcc10
Level 1
Level 1
Posts: 5
Joined: Sat Nov 20, 2021 3:30 am

malloc() after installing Insta360 pro stitcher on wine > 6.0

Post by Jcc10 »

To prefix this, I am using Bottles to handle my wine environments and what not.

Insta360 pro stitcher is software to stitch from the multiple sub-cameras in a 360 camera to a single image. Notably for video (and to a much lesser extent images) can be rendered much faster with gpu / cuda possessing over CPU, so I wanted to use more up-to-date software than what comes with my OS (hence bottles).

Current tests (All 64 Bit) :

sys-wine 5.0.3: Runs only with CPU support and a lot of broken text. (But actually works)
lutris-6.0: Runs, Crashes when trying to connect to camera (sometimes, other times when switching media the first time after connecting), renders don't seem to save to disk if rendering with GPU.
lutris-6.4 , 6.10 , 6.14 , 6.21: Installs fine, afterwards attempting to start stitcher, wine config, wine debug, uninstaller, control panel, etc are all met with malloc error.
vaniglia-6.21 , 6.20 , 6.11: See above.

Full error is as follows:

Code: Select all

2021-11-20 00:23:20 INFO: Running winecfg on the wineprefix…
malloc(): invalid size (unsorted)
Aborted (core dumped)
If someone could let me know what to do to to provide useful logs that are actually useful (I know a generic "I crashed due to bad memory allocation" is not really helpful) please let me know.

Program can be found at https://www.insta360.com/download/insta360-pro2 and requires the cookie

Code: Select all

insta360_has_submited_sn:"1"
you also need a account to use the stitcher, though right now I just want to know how it's managing to break wine in it's entirety.
Jcc10
Level 1
Level 1
Posts: 5
Joined: Sat Nov 20, 2021 3:30 am

Re: malloc() after installing Insta360 pro stitcher on wine > 6.0

Post by Jcc10 »

Cant figure out how to edit this but the download can be grabbed by checking the href of the link so I feel kinda stupid. So ignore that bit and just inspect the button for the download.
Jcc10
Level 1
Level 1
Posts: 5
Joined: Sat Nov 20, 2021 3:30 am

Re: malloc() after installing Insta360 pro stitcher on wine > 6.0

Post by Jcc10 »

Update, just tried sys-wine 6.22 and it also crashes with core dump.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: malloc() after installing Insta360 pro stitcher on wine > 6.0

Post by jkfloris »

I can confirm this bug.
Create a bug report. An installer should not kill an entire wineprefix/ bottle.

A temporary solution is to copy the "Program Files (x86)/Insta360Stitcher" folder from the broken prefix to a new prefix.
Jcc10
Level 1
Level 1
Posts: 5
Joined: Sat Nov 20, 2021 3:30 am

Re: malloc() after installing Insta360 pro stitcher on wine > 6.0

Post by Jcc10 »

Now I feel like a idiot for not trying that.

Rendering works with CPU but throws a bunch of fix-me's though obviously nothing that is really important.

But OpenCL errors without producing a image while throwing the following:

Code: Select all

0460:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (00000000004EF030 1 C) semi-stub
0460:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (00000000004EED80 1 C) semi-stub
0460:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (00000000004EE9E0 1 C) semi-stub
0460:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (00000000004EEA90 1 C) semi-stub
0460:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (00000000004EE050 1 C) semi-stub
0460:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (00000000004EE228 1 C) semi-stub
0460:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (00000000004EE260 1 C) semi-stub
0460:fixme:file:NtLockFile I/O completion on lock not implemented yet
0460:fixme:opencl:wrap_clSetEventCallback not yet implemented
The semi-stub's all show up with the CPU so those don't seem to be breaking the app. I'm not sure what would cause it to not save/produce the image, I think it would be the opencl though.

Anyway, just wanted to put this stuff here for future people, probably myself, to know what to look for. (Insta360 stitcher error 1012 )

Going to file bug now (edit: about the installer crash, not the opencl)

Edit: Is there a paid service or bug-bounty type program where I can put money up for someone fixing the opencl thing? I know it's outside my expertise.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: malloc() after installing Insta360 pro stitcher on wine > 6.0

Post by jkfloris »

Wine-staging has (limited) CUDA support. You might be able to use that.
Jcc10
Level 1
Level 1
Posts: 5
Joined: Sat Nov 20, 2021 3:30 am

Re: malloc() after installing Insta360 pro stitcher on wine > 6.0

Post by Jcc10 »

jkfloris wrote: Tue Nov 23, 2021 4:35 am Wine-staging has (limited) CUDA support. You might be able to use that.
I'm actually using 6.22, I think it's just that one open cl call that's doing it... Or how new the dxvk-nvapi is.
Locked