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.
Related
I did a diary study.
It was 5 days, 2 times a day (morning and afternoon).
Morning measures I have:
sleeping problems
Afternoon measures I have:
Emotions
Incivility
I want to test a mediation. First I want to teste the model with just the IV. But, when I do this on R:
summary(m1 <- lmer(sleepingproblems ~ incivility + (1 + incivility |code), data = data_within_measures))
I get the error:
**Error in h(simpleError(msg, call)) : **
** error in evaluating the argument 'object' in selecting a method for function 'summary': missing value where TRUE/FALSE needed
**
I get the error. The reason is that because in the morning I only have measures for SP and in the afternoon I only have data for incivility, so they don´t match. But I don´t know how to solve it.
I would like to know if there is a way I can match both (e.g. matching the data from day 1 morning with the afternoon data, and so on). The idea is to see whether who experiences incivility will most likely experience sleeping problems as well.
head(base_within_merged,6)[,c("code","register","sleepingproblems","expf2fwi","emotionalreactivity")]
code register sleepingproblems expf2fwi emotionalreactivity
1 aaja28 7 1.8 NA NA
2 aaja28 8 NA 1 1.000000
3 aaja28 5 2.0 NA NA
4 aaja28 6 NA 1 2.666667
5 aaja28 10 NA NA NA
6 aaja28 3 2.6 NA NA
library (nlme)
library (lme4)
m1 <- lmer(sleepingproblems ~ expf2fwi + (1|code), data = base_within_merged)
Error in lme4::lFormula(formula = sleepingproblems ~ expf2fwi + (1 | code), :0 (non-NA) cases
I appreciate the help!
Thank you!
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.
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 日 現在 )
I should probably delete this question, since I found an answer elsewhere on stackoverflow.
Using 'Vectorize' solved the problem.
outer(x,y,Vectorize(model))
I'll leave this up for a bit in case this helps anyone else. The issue I had is described below.
I am an occasional user of R, mostly for Scientific Programming. I want to evaluate a function on a grid of x,y values. Something similar to this simple example:
> x=seq(1,5,1)
> y=seq(1,5,1)
> model = function(a,b){a+b}
> (outer(x,y,model))
[,1] [,2] [,3] [,4] [,5]
[1,] 2 3 4 5 6
[2,] 3 4 5 6 7
[3,] 4 5 6 7 8
[4,] 5 6 7 8 9
[5,] 6 7 8 9 10
The input and output of my actual function looks like this (the volumetric flow rate of a 'Cross' fluid in a circular pipe):
> SimpleCrossModelCircPipe(eta_0 = 176.45, lambda = 2.4526, m=0.83122, mesh=1000,
pipe_length=1.925, press_drop=20.3609, pipe_diameter=0.0413)
[1] 0.005635064
I want to evaluate the function on a grid of values, for example, press_drop and pipe_diameter. So, define a function of these two variables.
> model = function(a,b){SimpleCrossModelCircPipe(eta_0 = 176.45, lambda = 2.4526,
m=0.83122, mesh=1000,pipe_length=1.925, press_drop=a, pipe_diameter=b)}
For just one pair of values this does work:
> model(1,2)
[1] 107249.8
But, if I use with 'outer', there is an error.
> (outer(x,y,model))
Error in seq.default(tau_wall, 0, length.out = mesh + 1) :
'from' must be of length 1
If I place a print statement for the local variable, tau_wall, using outer generates all 25 values, before moving to the line, which generates the error, since tau_wall should have length 1, not 25.
(outer(x,y,model))
[1] 352.5289 705.0579 1057.5868 1410.1158 1762.6447 705.0579 1410.1158 2115.1736
[9] 2820.2315 3525.2894 1057.5868 2115.1736 3172.7605 4230.3473 5287.9341 1410.1158
[17] 2820.2315 4230.3473 5640.4630 7050.5788 1762.6447 3525.2894 5287.9341 7050.5788
[25] 8813.2235
Is there a simple fix to make this work?
Best,
Steve
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.