Fixing crashes Windows Phone apps with crashinfo of dev dashboard - exception

I have a simple wp8.1 app published in the store (universal app) but it crashed. So I downloaded the excel file containing crash info from https://dev.windowsphone.com/en-us/DownloadReport
The crash(es) occur in the latest version of my app and the clients have 8.1 (because you cannot run universal apps otherwise)
Here is a small list of all problem functions and their exception type:
mscoree!CoreCLRRunner::CoreCLRInstance::RunAssembly (APPLICATION_FAULT)
windows_ni (STOWED_EXCEPTION_FINALIZER)
twinapi_appcore!Windows::ApplicationModel::Core::CoreApplication::ForwardLocalError (WRONG_SYMBOLS_kernel32legacy.dll)
windows_ui!Windows::UI::Core::CDispatcher::WaitAndProcessMessages (STOWED_EXCEPTION)
bad_dump!stowed_exception_structure_invalid (STATUS_STOWED_EXCEPTION)
but I'd like to focus on the top one, because that occurred the most.
This is the top Problem function mscoree!CoreCLRRunner::CoreCLRInstance::RunAssembly
So here is the related stacktrace:
Frame Image Function Offset
0 ntdll.dll LdrAppxHandleIntegrityFailure 0x0000011a
1 ntdll.dll LdrpFindOrMapDll 0x000004f6
2 ntdll.dll LdrpLoadDll 0x00000248
3 ntdll.dll LdrLoadDll 0x00000050
4 kernelbase.dll LoadLibraryExW 0x00000084
5 CoreClr.dll CLRLoadLibraryExWorker 0x0000003c
6 CoreClr.dll CLRLoadLibraryEx 0x00000012
7 CoreClr.dll LoadedImageLayout::LoadedImageLayout 0x0000004e
8 CoreClr.dll PEImageLayout::Load 0x0000002e
9 CoreClr.dll PEImage::GetLayoutInternal 0x00000042
10 CoreClr.dll PEImage::GetLayout 0x000000d8
11 CoreClr.dll PEImage::HasNativeHeader 0x00000030
12 CoreClr.dll BINDER_SPACE::AssemblyBinder::GetAssembly 0x00000094
13 CoreClr.dll BINDER_SPACE::AssemblyBinder::BindByTpaList 0x0000024a
14 CoreClr.dll BINDER_SPACE::AssemblyBinder::BindLocked 0x00000040
15 CoreClr.dll BINDER_SPACE::AssemblyBinder::BindLockedOrService 0x00000030
16 CoreClr.dll BINDER_SPACE::AssemblyBinder::BindWhereRef 0x000000b4
17 CoreClr.dll BINDER_SPACE::AssemblyBinder::BindAssembly 0x00000150
18 CoreClr.dll CLRPrivBinderCoreCLR::Bind 0x00000060
19 CoreClr.dll AssemblySpec::Bind 0x000001fe
20 CoreClr.dll AppDomain::BindAssemblySpec 0x00000372
21 CoreClr.dll AssemblySpec::LoadDomainAssembly 0x000000f6
22 CoreClr.dll AssemblySpec::LoadAssembly 0x00000014
23 CoreClr.dll AssemblySpec::LoadAssembly 0x00000042
24 CoreClr.dll CorHost2::ExecuteAssembly 0x00000088
25 MSCOREE.DLL CoreCLRRunner::CoreCLRInstance::RunAssembly 0x00000080
26 MSCOREE.DLL _lambda_0f67c82022084a65857b171f2e9c0e8b_::operator 0x000001d0
27 MSCOREE.DLL _CorExeMain 0x0000000a
28 ntdll.dll RtlUserThreadStart 0x00000016
and I have no idea to fix all of these 5 crashes. My wp app is so small, it should be easy to have it bug/crash free.

Related

How solve issue TypeError: strings.slice(...).reduce is not a function?

I recently dicovered Gatsby and I want to use this template for my own website:
https://github.com/toboko/gatsby-starter-fine
When downloading it, manage to run it http://localhost:8000/ but I get this error which I can escape:
TypeError: strings.slice(...).reduce is not a function
I added my repository here so you can take a look too: https://github.com/melariza/gatsby-starter-fine
Could you take a look and help fix it?
Screenshot of the error:
enter image description here
Here's the error text:
TypeError: strings.slice(...).reduce is not a function
css
/Users/mga/Sites/gatsby-starter-fine/.cache/loading-indicator/style.js:5
2 |
3 | function css(strings, ...keys) {
4 | const lastIndex = strings.length - 1
> 5 | return (
6 | strings.slice(0, lastIndex).reduce((p, s, i) => p + s + keys[i], ``) +
7 | strings[lastIndex]
8 | )
View compiled
Style
/Users/mga/Sites/gatsby-starter-fine/.cache/loading-indicator/style.js:14
11 | const Style = () => (
12 | <style
13 | dangerouslySetInnerHTML={{
> 14 | __html: css`
15 | :host {
16 | --purple-60: #663399;
17 | --gatsby: var(--purple-60);
View compiled
▶ 18 stack frames were collapsed.
(anonymous function)
/Users/mga/Sites/gatsby-starter-fine/.cache/app.js:165
162 | dismissLoadingIndicator()
163 | }
164 |
> 165 | renderer(<Root />, rootElement, () => {
166 | apiRunner(`onInitialClientRender`)
167 |
168 | // Render query on demand overlay
View compiled
I guess the problem is related to Node and its dependencies. The repository is not an official Gatsby starter and the last commit dates from 3 years ago. Gatsby is now on version 4.14 while the starter is on ^2.0.50. Two major versions happened during the last 3 years only in Gatsby so imagine the rest of the dependencies.
The starter doesn't contain a .nvmrc file or engine property in the package.json so the Node version that runs that project is unknown. Be aware that if you clone or fork that project, you will have a lot of deprecated dependencies and you'll have several migrations to do (from v2 to v3 and from v3 to v4).
So my advice is to reject that repository and use one of the officials. If that's not an option, try playing around with the version of Node, starting from 12 onwards, reinstalling the node_modules each time you upgrade or downgrade the version.

How to improve OCR accuracy?

I have 2 images like shown below. A.png is perfectly read by tesseract but B.png is terribly bad accuracy even though the B.png is similar to A.png. How can I improve the accuracy? I have no idea where to start debugging?
A.png
B.png
Run OCR
# tesseract -v
tesseract 4.1.1-rc2-22-g08899
# tesseract A.png stdout -l jpn --psm 6
Warning: Invalid resolution 0 dpi. Using 70 instead.
第 3 期 決算 公告 令 和 2 年 2 月 7 日
大 阪 市 中 央 区 南 新町 一 丁目 3 番 10 号
株 式 会 社 Link_Mobile
代表 取締 役 佐々 木 勉
貸借 対照 表 の 要旨 (平成 31 年 3 月 31 日 現在 }
# tesseract B.png stdout -l jpn --psm 6
Warning: Invalid resolution 0 dpi. Using 70 instead.
。 人 加計
区 三 6 番 12 号
中 野 駅 前 ビル 5 | 、
am 人 mw
に て
貸借 対照 表 の 要旨 ( 令 和 元 年 11 月 30 日 現在 }
Update 1
Were both scanned using the same scanner, and at the same resolution?
Yes. The images that were originally included in the same PDF were cut out.
Are you taking advantage of any APIs which Tesseract exposes for pre-processing the images before doing OCR?
No. I did not know that. I am checking now about it.
It improved. I read "Tesseract documentation" and rescaled the image.
Rescaling
Tesseract works best on images which have a DPI of at least 300 dpi, so it may be beneficial to resize images. For more information see the FAQ.
Rescaled image
Run OCR
# tesseract B2.png stdout -l jpn --psm 6
第 54 期 決 算 公 告 _ 令 和 2 年 1 月 29 日
東京 都 中 野 区 中 野 三 丁目 36 番 12 号
中 野 駅 前 ビル 5 F
株 式 会 社 コ ー エ ー テ クニ カ
代表 取締 役 小 空 _ 修
貸借 対照 表 の 要旨 ( 令 和 元 年 11 月 30 日 現在 )

Issue using cocos2dx ui::TextField : textfield is not proper show in android device

textfield only show top upper side in android my textfield is working
proper in ios device but android device it is display upper top side i
have attach screenshot
auto namewithPlates = ui::Scale9Sprite::create("text_field.png");
namewithPlates->setAnchorPoint(Point(.53,.5));
auto tempplt = ui::Scale9Sprite::create("text_field.png");
tempplt->setScale(ratinaScaleX);
f_editemail = ui::EditBox::create(tempplt->getBoundingBox().size, namewithPlates);
f_editemail->setPosition(Point(plates->getPosition().x,signwithPlates->getPosition().y-signwithPlates->getBoundingBox().size.height/2 -tempplt->getBoundingBox().size.height/2));//added 11 Aug 2015s
f_editemail->setFont(fRockoUltraFLFBold, 20*ratinaScaleX);//Added 11 Aug 2015
f_editemail->setPlaceholderFont(fRockoUltraFLFBold, 20*ratinaScaleX);//Added 11 Aug 2015
f_editemail->setPlaceHolder("Email");
f_editemail->setPlaceholderFontColor(Color3B::RED);
f_editemail->setFontColor(TextColor);////Added 11 Aug 2015
mainLayer->addChild(f_editemail);
f_editemail->setLocalZOrder(4);//added 10 Aug 2015
f_editemail->setReturnType(ui::EditBox::KeyboardReturnType::DONE);
auto namewithPlates = ui::Scale9Sprite::create("text_field.png");
namewithPlates->setAnchorPoint(Point(.53,.5));
auto tempplt = ui::Scale9Sprite::create("text_field.png");
tempplt->setScale(ratinaScaleX);
f_editemail = ui::EditBox::create(tempplt->getBoundingBox().size, namewithPlates);
f_editemail->setPosition(Point(visibleSize/2));//added 11 Aug 2015s
f_editemail->setFont(fRockoUltraFLFBold, 20*ratinaScaleX);//Added 11 Aug 2015
f_editemail->setPlaceholderFont(fRockoUltraFLFBold, 20*ratinaScaleX);//Added 11 Aug 2015
f_editemail->setPlaceHolder("Email");
f_editemail->setPlaceholderFontColor(Color3B::RED);
f_editemail->setFontColor(TextColor);////Added 11 Aug 2015
mainLayer->addChild(f_editemail);
f_editemail->setLocalZOrder(4);//added 10 Aug 2015
f_editemail->setReturnType(ui::EditBox::KeyboardReturnType::DONE);
}
1.image1 is ios screenshot
2.image2 is android device

Universal App with localized app name crashes

After a small update to my app, it crashes quite often with the following stack trace:
Frame Image Function Offset
0 KERNELBASE.dll RaiseException 0x00000036
1 mrmcorer.dll Microsoft::Resources::ReportFatalException 0x00000052
2 mrmcorer.dll Windows::ApplicationModel::Resources::Core::CResourceManagerFactory::get_Current 0x0002b1b0
3 mrmcorer.dll Windows::ApplicationModel::Resources::Core::CResourceManagerFactory::GetCurrentResourceManagerInternal 0x0000004a
4 mrmcorer.dll _GetResourceManagerForCurrentApplicationInternal 0x00000026
5 mrmcorer.dll GetStringValueForManifestField 0x00000140
6 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplication::SetAppDisplayName 0x00000048
7 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplication::InitializeApplicationServer 0x0000012a
8 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplicationFactory::RunInternal 0x00000192
9 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplicationFactory::Run 0x00000012
10 backgroundTaskHost.exe main 0x0000006c
11 backgroundTaskHost.exe __mainCRTStartup 0x000000ec
12 backgroundTaskHost.exe mainCRTStartup 0x0000000e
13 ntdll.dll RtlUserThreadStart 0x00000016
The app name is localized in several languages, default language is "en".
Localized the "Display name" and "Package display name" in the Appxmanifest like this: "ms-resource:AppName".
Unfortunately, I couldn't reproduce the crash yet.

substitution within a vim function using regex

I'm trying to turn a macro into a Function. Whilst I can save the macro I'd like to make it a function I can call.
I'm de-duping a specific element in a large concatenation of xml files using the following
G$b"myw0"n4ywdd:264501?^Rn/\dcw^Rm^[
Which gets parts of the last line into registers m and n then goes to a known line above the dedupe data and searches backwards for the contents of register n and replaces the number in the line with register m. The known line is to make sure I find the first occurrence that's not part of the de-dedupe set. Works fine if a bit slow when running 600 times.
On the function I've managed to duplicate everything except the cw with the contents of register m part.
function! MakeUnique()
let i = 0
while i <= 1
:200
:let #n=""
:let #m=""
:normal! G
:normal! $
:normal! b
:normal! "myw
:normal! 0
:normal! "n4yw
:200
execute "call search('".#n."','b')"
let i += 1
endwhile
endfunction
I've tried a few combinations of substitutions along the lines of the following but with no success.
Try 1
Register n = <dataid>389 and register m = <dataid>333
I changed the Line at the end of the file for this try to and changed "nyw to ny$
<dataId>333<dataid> <dataId>389
I would expect that subcommand when executed would read . s/<dataId>333/<dataId>389/
let subCommand=". s/".#m"/'".#n."'/"
exec subCommand
But given the result it doesn't seem as if #n is expanding
Result:
</dataid>
Try 2
In this case #n = 389
let subCommand=". s/[0-9][0-9][0-9]/".#n."/"
exec subCommand
This one works but the \d+ part may b 3 - 5 digits and I can't get a regex to work in this case, ie
s/\(\d\+\)/".#m."/
doesn't work and I get a E486: Pattern not found d+
Questions:
Is there any way to use regex match in the let subcommand = bit eg let subCommand = ". s/\d+/".#n"/"
Alternatively how do I replace using something like
let subCommand=". s/".#m"/'".#n."'/"
Or is there a vimscript equivalent of cw^Rm ?
Data example, cut down to fit.
The first iteration of the macro will change 6415 to 8790 in the identified line below.
I'm trying to replicate that in a Function.
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <createsaleRequest>
3 <sale>
4 <saleNumber>9987166</saleNumber>
5 <dataId>6315</dataId>
6 </sale>
7 ...
8 </createsaleRequest>
9
10
11 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
12 <createsaleRequest>
13 <sale>
14 <saleNumber>9988166</saleNumber>
15 <dataId>6415</dataId>
16 </sale>
17 ...
18 </createsaleRequest>
19
20 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
21 <createsaleRequest>
22 <sale>
23 <saleNumber>9987921</saleNumber>
24 <dataId>6315</dataId>
25 </sale>
26 ...
27 </createsaleRequest>
28
29
30 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
31 <createsaleRequest>
32 <sale>
33 <saleNumber>9987411</saleNumber>
34 <dataId>6415</dataId> <!-- Change this on first run through -->
35 </sale>
36 ...
37 </createsaleRequest>
38
39 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
40 <createsaleRequest>
41 <sale>
42 <saleNumber>9987411</saleNumber>
43 <dataId>6193</dataId>
44 </sale>
45 ...
46 </createsaleRequest>
47
48
49
50
51 <dataId>6315</dataId> 6789
52 <dataId>6415</dataId> 8790
EDIT
Added a cut down data example to try and make the question make sense.
Edit
Found the problem. I'd left the second . out of the match portion. This let subCommand=". s/".#m."/".#n."/"works and is significantly faster than the macro. Don't know how to close the question.
I would like to know what ". ." means. I'm guessing it's an escape pattern that works in vimscript.